Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » Is it possible to split an editor window in EMF
|
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 |
Ed Merks Messages: 33252 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 |
Dominic Renaud 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 |
Ed Merks Messages: 33252 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 |
Ed Willink Messages: 7679 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 #621281 is a reply to message #369637] |
Wed, 29 July 2009 16:56 |
Ed Merks Messages: 33252 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 |
Dominic Renaud 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 |
Ed Merks Messages: 33252 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 |
Ed Willink Messages: 7679 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....
>>
>>
|
|
| | |
Goto Forum:
Current Time: Sat Nov 09 01:26:57 GMT 2024
Powered by FUDForum. Page generated in 0.05128 seconds
|