In eclipse plugin development,i am trying to combine two different editors (html and Java editors) in a single multipage editor.
Can anyone guide me on this.
Thanks in advance
regards Mathan
In eclipse plugin development,i am trying to combine two different editors (html and Java editors) in a single multipage editor.
Can anyone guide me on this.
Thanks in advance
regards Mathan
You can check out the Multi-page Editor Example, which adds an editor for files with the .mpe extension. It shows how to create an editor that uses multiple pages by defining both an editor and a page contributor that can add entries to an action bar.
Also Eclipse Wiki: "FAQ How do I make an editor that contains another editor?"
Both are based on Multi-page form editors.
Regarding the issue of "Compilation unit name must end with .java, or one of the registered java-like extensions", may be this SO answer can help (i.e. defining a new <content-type>
)