[jbosstools-dev] a question about adding text tab on multi pageeditor.

Viacheslav Kabanovich scabanovich at exadel.com
Mon Nov 10 06:51:46 EST 2008


Hi, 

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 
interact smoothly.

Slava Kabanovich


----- Original Message ----- 
From: "Dart Peng" <dpeng at redhat.com>
To: <jbosstools-dev at lists.jboss.org>
Sent: Monday, November 10, 2008 11:26 AM
Subject: [jbosstools-dev] a question about adding text tab on multi pageeditor.


> Hi all,
> 
> 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?
> 
> best regards
> 
> - Dart Peng
> _______________________________________________
> jbosstools-dev mailing list
> jbosstools-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20081110/3acfc93c/attachment.html 


More information about the jbosstools-dev mailing list