Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to add a splitter to GEF editor?
How to add a splitter to GEF editor? [message #211495] Mon, 13 March 2006 10:00 Go to next message
Eclipse UserFriend
Originally posted by: shruthi.cn.in.bosch.com

Hello everybody,

Is it possible to have a splitter in the GEF editor. Right now, i am
planning to use GEF editor only as a view and not as an editor.

On left side of the splitter, i want to draw one EMF model and on the
right side of the splitter, i want to draw another EMF model.

Is this possible?
If so, how?.
Any samples or links would help me.

Thank you very much
Best Regards
Shruthi
Re: How to add a splitter to GEF editor? [message #211569 is a reply to message #211495] Tue, 14 March 2006 04:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ytgyazilim.gmail.com

Shruthi wrote:
> Hello everybody,
>
> Is it possible to have a splitter in the GEF editor. Right now, i am
> planning to use GEF editor only as a view and not as an editor.
>
> On left side of the splitter, i want to draw one EMF model and on the
> right side of the splitter, i want to draw another EMF model.
> Is this possible?
> If so, how?. Any samples or links would help me.
>
> Thank you very much
> Best Regards
> Shruthi
>

By deriving the EditorPart and creating two graphical viewers just like
composites contained in a sash, you might archive this...

H.Ceylan
Re: How to add a splitter to GEF editor? [message #211577 is a reply to message #211569] Tue, 14 March 2006 04:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: harsh.ti.com

I am really interested to see how this would work because there can only
be one root edit part per graphical viewer and from what I know, a one to
one mapping between a viewer and a palette.

Harsh
Re: How to add a splitter to GEF editor? [message #211608 is a reply to message #211577] Tue, 14 March 2006 10:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ytgyazilim.gmail.com

Harsh Sabikhi wrote:
> I am really interested to see how this would work because there can only
> be one root edit part per graphical viewer and from what I know, a one
> to one mapping between a viewer and a palette.
>
> Harsh
>

Thats why I said I think you should start down from EditPart and build
up your TWO graphicalviewers.

You can trick with using the same composite to display palette by
notifying the composite that holds the palette by whick graphical viewer
is active or has the control (up to you can be mouse over event or focus
event).

On the other hand you may also think of using the multitabeditor. Thats
usually how it is done when there needs to be two+ way of displaying the
edit domain. Ref: Visual form editors. Code and visual display of your
forms contents. Comparing to that example you will need to implement the
second graphical viewer in the second tab as opposed the texteditor.

Hope makes more sense now.

if you go with multitabeditor it is easy. You will develop virtually to
editors on each tab using the same model domain.

Or if you go with the two graphical viewers on the same page,
have a look at the GraphicalEditor class. It will give you a staring
point. You should throw a sash form and put two graphical viewers.

If you have SWTDesigner you will understand what I meean. If you do not have
they have trial download for a month. Download and install. Editor has
two tabs and first tab is GEF. It has Actions and Controls viewers
stacked on top of each other. Although it is closed source it will give
you the idea...

Hope it makes more sense now...

H.Ceylan
Re: How to add a splitter to GEF editor? [message #211667 is a reply to message #211495] Tue, 14 March 2006 17:00 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

That sounds like an SWT question. GEF can be used anywhere you can create a
Canvas, so just create a SashForm, and put a GraphicalViewer on either side
of it.

"Shruthi" <shruthi.cn@in.bosch.com> wrote in message
news:3ea51f2708fc9f57fbd52392a46c27de$1@www.eclipse.org...
> Hello everybody,
>
> Is it possible to have a splitter in the GEF editor. Right now, i am
> planning to use GEF editor only as a view and not as an editor.
>
> On left side of the splitter, i want to draw one EMF model and on the
> right side of the splitter, i want to draw another EMF model.
> Is this possible?
> If so, how?. Any samples or links would help me.
>
> Thank you very much
> Best Regards
> Shruthi
>
Previous Topic:Zooming in the center of the visible user area
Next Topic:How to prevent resize feedback in a LayoutEditPolicy?
Goto Forum:
  


Current Time: Wed Nov 30 15:21:56 GMT 2022

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

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

Back to the top