Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Is it possible to split an editor window in EMF
Is it possible to split an editor window in EMF [message #369637] Tue, 28 July 2009 22:59 Go to next message
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
Hey,

I've been working with an EMF based modeling tool (FMP, U of Waterloo) and
I have been trying to get the editor window to split horizontally, such
that the current modeling view is on the left, and a future modeling view,
related to the first, is on the right. I've tried several different ways
of mixing in Composite and Composite-based objects, but either I get
errors or they have no effect. Am I going about this correctly? Is there
even any way of doing this sort of split in EMF?

Thanks,
Dominic
Re: Is it possible to split an editor window in EMF [message #374601 is a reply to message #369637] Wed, 29 July 2009 16:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Dominic,

Hey, I was up on the Burnaby Mountain at the SFU campus just last
week... :-)

I'm not sure exactly what you've tried. You can certainly create a
split pane within an editor (the mapping editors do this) but I don't
think you can dock a view in the editor area of an Eclipse perspective....


Dominic Renaud wrote:
> Hey,
>
> I've been working with an EMF based modeling tool (FMP, U of Waterloo)
> and I have been trying to get the editor window to split horizontally,
> such that the current modeling view is on the left, and a future
> modeling view, related to the first, is on the right. I've tried
> several different ways of mixing in Composite and Composite-based
> objects, but either I get errors or they have no effect. Am I going
> about this correctly? Is there even any way of doing this sort of
> split in EMF?
>
> Thanks,
> Dominic
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Is it possible to split an editor window in EMF [message #381740 is a reply to message #374601] Wed, 29 July 2009 21:52 Go to previous messageGo to next message
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
Well, actually, I'm at the Surrey campus for this job.

Anyway, what I'm trying to do is split a window in a CTabFolder, from the
main editor code, which is based off of MultiPageEditorPart. I've tried
both modifying the overridden createPages() method-such that a pair of
Composite objects are created between the CTabFolder and the TreeViewers
that actually display the content-and overriding ViewerPane-such that I
could override the createControl method to set a pair of Composite objects
between the CTabFolder and the TreeViewers.
Both attempts and variants have failed, as I either get a "Widget has the
wrong parent" error, since the ViewerPane's Control's parent is now not
the container, or there is no effect.

Hope that clarifies,
Dominic

Ed Merks wrote:

> Dominic,

> Hey, I was up on the Burnaby Mountain at the SFU campus just last
> week... :-)

> I'm not sure exactly what you've tried. You can certainly create a
> split pane within an editor (the mapping editors do this) but I don't
> think you can dock a view in the editor area of an Eclipse perspective....
Re: Is it possible to split an editor window in EMF [message #428562 is a reply to message #381740] Thu, 30 July 2009 14:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Dominic,

I've not been to the Surrey campus for a while. I visited Rob Cameron
there the last time I went...

The org.eclipse.emf.mapping.presentation.MappingEditor would maybe be a
good example to look at because it has a split pane. You could create
an Ecore to Ecore mapping and then open that to see what the editor
looks like. In any case, your question is more of a basic SWT/JFace
question than an EMF one...


Dominic Renaud wrote:
> Well, actually, I'm at the Surrey campus for this job.
> Anyway, what I'm trying to do is split a window in a CTabFolder, from
> the main editor code, which is based off of MultiPageEditorPart. I've
> tried both modifying the overridden createPages() method-such that a
> pair of Composite objects are created between the CTabFolder and the
> TreeViewers that actually display the content-and overriding
> ViewerPane-such that I could override the createControl method to set
> a pair of Composite objects between the CTabFolder and the
> TreeViewers. Both attempts and variants have failed, as I either get a
> "Widget has the wrong parent" error, since the ViewerPane's Control's
> parent is now not the container, or there is no effect.
>
> Hope that clarifies,
> Dominic
>
> Ed Merks wrote:
>
>> Dominic,
>
>> Hey, I was up on the Burnaby Mountain at the SFU campus just last
>> week... :-)
>
>> I'm not sure exactly what you've tried. You can certainly create a
>> split pane within an editor (the mapping editors do this) but I don't
>> think you can dock a view in the editor area of an Eclipse
>> perspective....
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Is it possible to split an editor window in EMF [message #433359 is a reply to message #428562] Thu, 30 July 2009 18:17 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi Dominic

I think there is some confusion as to what you want. You started asking
about a split view which is two views of the same information and this
is what Ed has responded to. You then refer to trying multiple tabs,
which is rather different. If you want simple multiple tabs you could
check the multiple tabs that the default generated EMF editor gives you.
These use Viewers. If you want multiple EditorPart tabs you will have
to work hard; a fully-fledged MultiPageEditorPart is sadly lacking.

Regards

Ed Willink

Ed Merks wrote:
> Dominic,
>
> I've not been to the Surrey campus for a while. I visited Rob Cameron
> there the last time I went...
>
> The org.eclipse.emf.mapping.presentation.MappingEditor would maybe be a
> good example to look at because it has a split pane. You could create
> an Ecore to Ecore mapping and then open that to see what the editor
> looks like. In any case, your question is more of a basic SWT/JFace
> question than an EMF one...
>
>
> Dominic Renaud wrote:
>> Well, actually, I'm at the Surrey campus for this job.
>> Anyway, what I'm trying to do is split a window in a CTabFolder, from
>> the main editor code, which is based off of MultiPageEditorPart. I've
>> tried both modifying the overridden createPages() method-such that a
>> pair of Composite objects are created between the CTabFolder and the
>> TreeViewers that actually display the content-and overriding
>> ViewerPane-such that I could override the createControl method to set
>> a pair of Composite objects between the CTabFolder and the
>> TreeViewers. Both attempts and variants have failed, as I either get a
>> "Widget has the wrong parent" error, since the ViewerPane's Control's
>> parent is now not the container, or there is no effect.
>>
>> Hope that clarifies,
>> Dominic
>>
>> Ed Merks wrote:
>>
>>> Dominic,
>>
>>> Hey, I was up on the Burnaby Mountain at the SFU campus just last
>>> week... :-)
>>
>>> I'm not sure exactly what you've tried. You can certainly create a
>>> split pane within an editor (the mapping editors do this) but I don't
>>> think you can dock a view in the editor area of an Eclipse
>>> perspective....
>>
>>
Re: Is it possible to split an editor window in EMF [message #434253 is a reply to message #428562] Thu, 30 July 2009 19:11 Go to previous messageGo to next message
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
Hey,

I asked around on the SWT group, and although I got some decent
meta-advice, as I was debugging, I figured that perhaps it would be wise
to ask whether there is some EMF thing in there that is limiting me.

Thanks for pointing me to the MappingEditor thing, however. I'll take a
look at that.

Ed Merks wrote:

> Dominic,

> I've not been to the Surrey campus for a while. I visited Rob Cameron
> there the last time I went...

> The org.eclipse.emf.mapping.presentation.MappingEditor would maybe be a
> good example to look at because it has a split pane. You could create
> an Ecore to Ecore mapping and then open that to see what the editor
> looks like. In any case, your question is more of a basic SWT/JFace
> question than an EMF one...
Re: Is it possible to split an editor window in EMF [message #434254 is a reply to message #433359] Thu, 30 July 2009 19:13 Go to previous message
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
Hey,

Yes, there is a small misunderstanding. What I wish is to have a split
view, within one of the tabs. So what I want is two tabs, one contains a
standard view, the other contains a split view. The tabs already exist,
all I have to do is make one of the tabs contain a split view.

Sorry about that,
Dominic

Ed Willink wrote:

> Hi Dominic

> I think there is some confusion as to what you want. You started asking
> about a split view which is two views of the same information and this
> is what Ed has responded to. You then refer to trying multiple tabs,
> which is rather different. If you want simple multiple tabs you could
> check the multiple tabs that the default generated EMF editor gives you.
> These use Viewers. If you want multiple EditorPart tabs you will have
> to work hard; a fully-fledged MultiPageEditorPart is sadly lacking.

> Regards

> Ed Willink
Re: Is it possible to split an editor window in EMF [message #621281 is a reply to message #369637] Wed, 29 July 2009 16:56 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Dominic,

Hey, I was up on the Burnaby Mountain at the SFU campus just last
week... :-)

I'm not sure exactly what you've tried. You can certainly create a
split pane within an editor (the mapping editors do this) but I don't
think you can dock a view in the editor area of an Eclipse perspective....


Dominic Renaud wrote:
> Hey,
>
> I've been working with an EMF based modeling tool (FMP, U of Waterloo)
> and I have been trying to get the editor window to split horizontally,
> such that the current modeling view is on the left, and a future
> modeling view, related to the first, is on the right. I've tried
> several different ways of mixing in Composite and Composite-based
> objects, but either I get errors or they have no effect. Am I going
> about this correctly? Is there even any way of doing this sort of
> split in EMF?
>
> Thanks,
> Dominic
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Is it possible to split an editor window in EMF [message #621282 is a reply to message #374601] Wed, 29 July 2009 21:52 Go to previous message
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
Well, actually, I'm at the Surrey campus for this job.

Anyway, what I'm trying to do is split a window in a CTabFolder, from the
main editor code, which is based off of MultiPageEditorPart. I've tried
both modifying the overridden createPages() method-such that a pair of
Composite objects are created between the CTabFolder and the TreeViewers
that actually display the content-and overriding ViewerPane-such that I
could override the createControl method to set a pair of Composite objects
between the CTabFolder and the TreeViewers.
Both attempts and variants have failed, as I either get a "Widget has the
wrong parent" error, since the ViewerPane's Control's parent is now not
the container, or there is no effect.

Hope that clarifies,
Dominic

Ed Merks wrote:

> Dominic,

> Hey, I was up on the Burnaby Mountain at the SFU campus just last
> week... :-)

> I'm not sure exactly what you've tried. You can certainly create a
> split pane within an editor (the mapping editors do this) but I don't
> think you can dock a view in the editor area of an Eclipse perspective....
Re: Is it possible to split an editor window in EMF [message #621283 is a reply to message #381740] Thu, 30 July 2009 14:30 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Dominic,

I've not been to the Surrey campus for a while. I visited Rob Cameron
there the last time I went...

The org.eclipse.emf.mapping.presentation.MappingEditor would maybe be a
good example to look at because it has a split pane. You could create
an Ecore to Ecore mapping and then open that to see what the editor
looks like. In any case, your question is more of a basic SWT/JFace
question than an EMF one...


Dominic Renaud wrote:
> Well, actually, I'm at the Surrey campus for this job.
> Anyway, what I'm trying to do is split a window in a CTabFolder, from
> the main editor code, which is based off of MultiPageEditorPart. I've
> tried both modifying the overridden createPages() method-such that a
> pair of Composite objects are created between the CTabFolder and the
> TreeViewers that actually display the content-and overriding
> ViewerPane-such that I could override the createControl method to set
> a pair of Composite objects between the CTabFolder and the
> TreeViewers. Both attempts and variants have failed, as I either get a
> "Widget has the wrong parent" error, since the ViewerPane's Control's
> parent is now not the container, or there is no effect.
>
> Hope that clarifies,
> Dominic
>
> Ed Merks wrote:
>
>> Dominic,
>
>> Hey, I was up on the Burnaby Mountain at the SFU campus just last
>> week... :-)
>
>> I'm not sure exactly what you've tried. You can certainly create a
>> split pane within an editor (the mapping editors do this) but I don't
>> think you can dock a view in the editor area of an Eclipse
>> perspective....
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Is it possible to split an editor window in EMF [message #621284 is a reply to message #428562] Thu, 30 July 2009 18:17 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi Dominic

I think there is some confusion as to what you want. You started asking
about a split view which is two views of the same information and this
is what Ed has responded to. You then refer to trying multiple tabs,
which is rather different. If you want simple multiple tabs you could
check the multiple tabs that the default generated EMF editor gives you.
These use Viewers. If you want multiple EditorPart tabs you will have
to work hard; a fully-fledged MultiPageEditorPart is sadly lacking.

Regards

Ed Willink

Ed Merks wrote:
> Dominic,
>
> I've not been to the Surrey campus for a while. I visited Rob Cameron
> there the last time I went...
>
> The org.eclipse.emf.mapping.presentation.MappingEditor would maybe be a
> good example to look at because it has a split pane. You could create
> an Ecore to Ecore mapping and then open that to see what the editor
> looks like. In any case, your question is more of a basic SWT/JFace
> question than an EMF one...
>
>
> Dominic Renaud wrote:
>> Well, actually, I'm at the Surrey campus for this job.
>> Anyway, what I'm trying to do is split a window in a CTabFolder, from
>> the main editor code, which is based off of MultiPageEditorPart. I've
>> tried both modifying the overridden createPages() method-such that a
>> pair of Composite objects are created between the CTabFolder and the
>> TreeViewers that actually display the content-and overriding
>> ViewerPane-such that I could override the createControl method to set
>> a pair of Composite objects between the CTabFolder and the
>> TreeViewers. Both attempts and variants have failed, as I either get a
>> "Widget has the wrong parent" error, since the ViewerPane's Control's
>> parent is now not the container, or there is no effect.
>>
>> Hope that clarifies,
>> Dominic
>>
>> Ed Merks wrote:
>>
>>> Dominic,
>>
>>> Hey, I was up on the Burnaby Mountain at the SFU campus just last
>>> week... :-)
>>
>>> I'm not sure exactly what you've tried. You can certainly create a
>>> split pane within an editor (the mapping editors do this) but I don't
>>> think you can dock a view in the editor area of an Eclipse
>>> perspective....
>>
>>
Re: Is it possible to split an editor window in EMF [message #621286 is a reply to message #428562] Thu, 30 July 2009 19:11 Go to previous message
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
Hey,

I asked around on the SWT group, and although I got some decent
meta-advice, as I was debugging, I figured that perhaps it would be wise
to ask whether there is some EMF thing in there that is limiting me.

Thanks for pointing me to the MappingEditor thing, however. I'll take a
look at that.

Ed Merks wrote:

> Dominic,

> I've not been to the Surrey campus for a while. I visited Rob Cameron
> there the last time I went...

> The org.eclipse.emf.mapping.presentation.MappingEditor would maybe be a
> good example to look at because it has a split pane. You could create
> an Ecore to Ecore mapping and then open that to see what the editor
> looks like. In any case, your question is more of a basic SWT/JFace
> question than an EMF one...
Re: Is it possible to split an editor window in EMF [message #621287 is a reply to message #433359] Thu, 30 July 2009 19:13 Go to previous message
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
Hey,

Yes, there is a small misunderstanding. What I wish is to have a split
view, within one of the tabs. So what I want is two tabs, one contains a
standard view, the other contains a split view. The tabs already exist,
all I have to do is make one of the tabs contain a split view.

Sorry about that,
Dominic

Ed Willink wrote:

> Hi Dominic

> I think there is some confusion as to what you want. You started asking
> about a split view which is two views of the same information and this
> is what Ed has responded to. You then refer to trying multiple tabs,
> which is rather different. If you want simple multiple tabs you could
> check the multiple tabs that the default generated EMF editor gives you.
> These use Viewers. If you want multiple EditorPart tabs you will have
> to work hard; a fully-fledged MultiPageEditorPart is sadly lacking.

> Regards

> Ed Willink
Previous Topic:MergeService doesn't copy a child non-containment reference
Next Topic:[EMF Compare] MergeService doesn't copy a child non-containment reference
Goto Forum:
  


Current Time: Wed Dec 04 21:52:06 GMT 2024

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

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

Back to the top