Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » editor with no palette..Possible?
editor with no palette..Possible? [message #147968] Tue, 17 August 2004 20:00 Go to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
I have a GEF editor that now has just two palette entries, the selection
tool and the connection tool.

To save space I want to move these two tools to the toolbar, or the like.
This will allow me to remove th palette compeletely.

Can this be done...? For example make a button press choose the selection
tool.?

Thanks,
Mark.
Re: editor with no palette..Possible? [message #147977 is a reply to message #147968] Tue, 17 August 2004 21:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaslade.yahoo.com

I did this once, so, yes, it is possible. But I ditched it as my editor
looked way too different to all the other IBM GEF based graphical editors.
Another option you might consider is instead of having the tools on the
toolbar, having then as part of your context pop-up menu.

Guy

mark wrote:
> I have a GEF editor that now has just two palette entries, the selection
> tool and the connection tool.
>
> To save space I want to move these two tools to the toolbar, or the like.
> This will allow me to remove th palette compeletely.
>
> Can this be done...? For example make a button press choose the selection
> tool.?
>
> Thanks,
> Mark.
>
Re: editor with no palette..Possible? [message #147987 is a reply to message #147968] Wed, 18 August 2004 06:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eostroukhov.hotmail.com

Sure. Take a look at GraphicalEditor class.

"mark" <mark.geib@echostar.com> wrote in message
news:cfto5c$4et$1@eclipse.org...
> I have a GEF editor that now has just two palette entries, the selection
> tool and the connection tool.
>
> To save space I want to move these two tools to the toolbar, or the like.
> This will allow me to remove th palette compeletely.
>
> Can this be done...? For example make a button press choose the selection
> tool.?
>
> Thanks,
> Mark.
>
Re: editor with no palette..Possible? [message #148295 is a reply to message #147987] Sat, 21 August 2004 15:16 Go to previous message
Eclipse UserFriend
Originally posted by: gupolet.ulb.ac.be

What about a GraphicalEditorWithFlyoutPalette ?

The palette docks itself automatically so it only takes a few pixels from
the view. It also allows you to lock the dockstate or to switch the palette
in a independent view.

The class is quite easy to implement and all you have to do is provide a
regular palette like before, GEF will handle all the troubles:-)

Guillaume

"Eugene Ostroukhov" <eostroukhov@hotmail.com> a
Previous Topic:MultiLineLabel parent Composite from Draw2D Panel?
Next Topic:coordinate mapping
Goto Forum:
  


Current Time: Fri Sep 27 11:31:08 GMT 2024

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

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

Back to the top