DefaultMultipageEditor uses StructuredTextEdtior for the text page,
extending it to interact with other pages.
DefaultMultipageEditor is disigned to work with objects of
org.jboss.tools.common.model.XModel, which is very specific.
If you already have some multi page editor with ui pages
based on your internal model, then the easiest way is to add
StructuredTextEdtior as text page.
You can look into code of DefaultMultipageEditor just for a hint,
what may be needed to make all pages of your multi-page editor
----- Original Message -----
From: "Dart Peng" <dpeng(a)redhat.com>
Sent: Monday, November 10, 2008 11:26 AM
Subject: [jbosstools-dev] a question about adding text tab on multi pageeditor.
I want to add a text editor page on my multi editor for editing text
source, so I think the first candidacy is StructuredTextEditor from WTP
, but I found
there is a DefaultMultipageEditor in org.jboss.tools.common plugin and
this editor has included a text editor already.
So I have two chooses :
1.Use StructuredTextEditor for the source tab.
2.Use the DefaultMultipageEditor for the top multi editor.
I want to know what's the differents between the StructuredTextEdtior
and the text editor of DefaultMultipageEditor , which one is best?
- Dart Peng
jbosstools-dev mailing list