[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?
|
- From: novelxy@xxxxxxxxx (Neo)
- Date: Sat, 19 Apr 2008 02:05:52 +0000 (UTC)
- Newsgroups: eclipse.platform.rcp
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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>
...