Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XText and GMF integration using multi page editor
XText and GMF integration using multi page editor [message #830194] Tue, 27 March 2012 10:14 Go to next message
Arvind Sharma is currently offline Arvind SharmaFriend
Messages: 17
Registered: December 2011
Junior Member
I have a RCP application which has a multi page editor with first page as xtext editor. I want to add second page as GMF based diagram editor.

1. Is it possible to use same file as input to both editors? The editorInput of multi page editor is a file editor input which referes to my model file. Will this editor input work well for graphical editor as well?

2. Is there an example somewhere which demostrates this?

Thanks
Arvind
Re: XText and GMF integration using multi page editor [message #830206 is a reply to message #830194] Tue, 27 March 2012 10:27 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Arvind

This used to be very difficult. I found a solution about four years ago
as part of the GMT/UMLX support but I'm afraid I've forgotten all the
details of the incompatibilities. MultiPageEditorPart seemed inflexible.

The distinction between editors and views is eliminated in e4, so the
3.x problems may vanish in e4, or at least may have a much simpler
solution. I suggest searching for the successors of MultiPageEditorPart
and any associated examples.

Regards

Ed Willink

On 27/03/2012 06:14, Arvind Sharma wrote:
> I have a RCP application which has a multi page editor with first page
> as xtext editor. I want to add second page as GMF based diagram editor.
>
> 1. Is it possible to use same file as input to both editors? The
> editorInput of multi page editor is a file editor input which referes
> to my model file. Will this editor input work well for graphical
> editor as well?
>
> 2. Is there an example somewhere which demostrates this?
>
> Thanks
> Arvind
Re: XText and GMF integration using multi page editor [message #830231 is a reply to message #830206] Tue, 27 March 2012 11:08 Go to previous messageGo to next message
Arvind Sharma is currently offline Arvind SharmaFriend
Messages: 17
Registered: December 2011
Junior Member
Hi Edward,

Thanks for your quick reply. I am using XText version 2.1. Will this work fine if I migrate to e4 or do i need to move to higher version of xText?

Also can you tell me what is the alternative to MultiPageEditor in e4

Thanks
Arvind
Re: XText and GMF integration using multi page editor [message #830254 is a reply to message #830231] Tue, 27 March 2012 11:42 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Arvind

I'm afraid that I cannot help further. Like many other Eclipse
committers, I check that my code will work on e4, but I do not exploit
the facilities of e4 since we cannot mandate that all our users switch
to e4.

Regards

Ed Willink

On 27/03/2012 07:08, Arvind Sharma wrote:
> Hi Edward,
>
> Thanks for your quick reply. I am using XText version 2.1. Will this
> work fine if I migrate to e4 or do i need to move to higher version of
> xText?
>
> Also can you tell me what is the alternative to MultiPageEditor in e4
>
> Thanks
> Arvind
Previous Topic:Resolve References through types
Next Topic:Manual linking
Goto Forum:
  


Current Time: Thu Apr 25 02:06:58 GMT 2024

Powered by FUDForum. Page generated in 0.02983 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top