The invention provides a
Java editor plug-in implementation method and
system based on an
Eclipse platform, and the method comprises the steps: carrying out the initialization configuration and registration of a plug-in, constructing a text editor interface capable of embedding
Eclipse, achieving a grammar highlighting function, achieving a code completion function, achieving a code formatting function, and carrying out the deployment and operation of the plug-in. According to the mode, a novel plug-in
system independent of a native JDT editor is constructed, visual editing of the.
Java file is achieved, core functions such as grammar highlighting, code complementing and code formatting are integrated, meanwhile,
butt joint with a JDT language
server is supported to improve semantic analysis capacity, and finally on the premise that lightweight deployment and high compatibility are guaranteed, the semantic analysis capability of the.
Java file is improved. And the Java development efficiency and the user experience are improved. By means of the technical scheme, the technical problems that in the prior art, an
Eclipse Java editor plug-in is low in function integration level, insufficient in semantic support and lack of key editing functions are solved.