独自の XML 形式を編集するためのエディターを開発しようとしています。ただし、他のエディター (JPA Persistence XML エディターなど) と同様に、「ソース」タブを提供したいと考えています。
私のエディタークラスは次のようになります
public class DPUEditor extends FormEditor {
public static final String ID = "de.lmu.ifi.dbs.knowing.ui.editor.DPUEditor"; //$NON-NLS-1$
@Override
protected void addPages() {
try {
addPage(new ConfigurationPage(this));
//addPage(new XMLEditor(..)) <- add the XML Editor
} catch (PartInitException e) {
e.printStackTrace();
}
}
...
}
org.eclipse.wst.xml が Eclipse 用の標準 XML エディターを提供することがわかりました。ここの短いチュートリアルは役に立ちませんでした:(
IFileEditorInput に入れることができるプレーンな IEditor が欲しいだけです。
thx、ムキ