[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Editors in multipage editor

No not exactly. In the editor produced by EMF, The added components are SWT widgets, and not editors. The difference is pretty big, because SWT widgets does not come with toolbars, save options, etc.. contrary to editors. Actually that's why i have difficulties to add editors to my multipage editor : all these abilities don't work, and i have to make them work...

Ben

rbbnjmn wrote:

I believe the generated code for an EMF model editor is an example of such a multi-page
editor.

Roy

"benjamin" <tigroublb@xxxxxxxxxx> wrote in message news:2ead1d4aeab8937ae12a001584ad800a$1@xxxxxxxxxxxxxxxxxx
I'd be very glad if someone could answer me.. i'have been working on that for now 3 days and I really need a specialist to help me :)

ben


benjamin wrote:

Hello, I've already posted the same message on the swt newsgroup, and i've been advised to rather post it here.

So here is my point :

I'd like to create a multipage editor (using MultiPageEditorPart) with 3 pages, each using a different editor :
- a source page (using StructuredTextEditor)
- a treeview page (using an Editor produced by EMF)
- a graph page (using an Editor produced by GMF)

Obviously, all would work on the same file.

The problem is that each editor uses (obviously) a different contributor object (more exactly a EditorActionBarContributor), and so they have to be connected somehow to the contributor of the MutliPageEditorPart (the MultiPageEditorActionBarContributor).

I've searched many newslists, and found many things but I'm not sure to understand exactly how it really works. First, does someone know if such a multipageeditor already exists ?

Else, what i'd like to do is to create and store the contributor of each page in the multipage contributor, and delegate method-calls to the good one (ie depending of the current shown page). Then, i would create specific EditorSite objects, overiding the getActionBarContributor method to give to each editor its coresponding contributor.
Would it be possible ?

Thanks in advance,

ben