[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How to integrate XML editor into my RCP application?

Thanks!

I tried it with your instruction.
In fact, it's not too difficult to use XMLMultiPageEditorPart which is internal to WST though there is some change/upgrade risk.
Furthermore, this XML eidtor is very similar as the default one of eclipse.


Here is sample code:

## XMLEditor.java
import org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart;

public class XMLEditor extends XMLMultiPageEditorPart
{
}

## plugin.xml
  ...
  <extension
        point="org.eclipse.ui.editors">
     <editor
           class="MySample.XMLEditor"
           default="true"
           extensions="xml"
           icon="icons/sample.gif"
           id="MySample.XMLEditor"
           name="MySample XMLEditor">
     </editor>
  </extension>
  ...