I use RCP to create a special javascripts editor with special functions and I want to expand the js editor from JSDT by adding new functions to the context menu and to the content assistant. But how can I start. Here is my thinking: 1) rewrite the jscript editor that extends CompilationUnitEditor by importing org.eclipse.wst.jsdt.internal.ui.javaeditor.CompilationUnitEditor; But it does not seem to work, it has only a part of the functions from JSDT, there are no color spots in the text.
import org.eclipse.wst.jsdt.internal.ui.javaeditor.CompilationUnitEditor; public class Jscript extends CompilationUnitEditor { public static final String ID="com.test.scripteditor.editor3"; public Jscript(){ super(); } }
2) Is it possible to add exentsions directly from the plugin.xml file to speed up this process?
Thanks for any suggestions. I really don't know how to do this.
source share