Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to add a toolbar into the GEF editor
How to add a toolbar into the GEF editor [message #241831] Tue, 18 March 2008 19:16 Go to next message
Eclipse UserFriend
Originally posted by: yifanzhou.gmx.de

Hi,

i need some help to implment to add a toolbar into the gef editor, just like the UML editor in Borland Together, there a beautiful toolbar in it, could someone can give me some hints.
Thank you very much

yifan
Re: How to add a toolbar into the GEF editor [message #241842 is a reply to message #241831] Wed, 19 March 2008 02:06 Go to previous messageGo to next message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
Hi,
Do you mean toolbar on top of the gef editor?
If so, you must override or overload the GEFEditor class, such as
GraphicalEditor, provide yourself createpartcontrol, at that point, add
a toolbar control, and the GraphicalViewer, which is gefEditor's core.

But there is a hatable thing, too many toolbar objects if tool many
editor opened, it's waste of system resources.

Cheers,
Qinxian

Yifan Zhou 写道:
> Hi,
>
> i need some help to implment to add a toolbar into the gef editor, just like the UML editor in Borland Together, there a beautiful toolbar in it, could someone can give me some hints.
> Thank you very much
>
> yifan
>
Re: How to add a toolbar into the GEF editor [message #241847 is a reply to message #241831] Wed, 19 March 2008 06:28 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Extend ActionBarContributor and add it in the contributionClass
attribute in your editor's extension

- Prakash

Eclipse Tips: http://blog.cypal-solutions.com
Eclipse Search: http://www.cypal.in/eclipsesearch


Yifan Zhou wrote:
> Hi,
>
> i need some help to implment to add a toolbar into the gef editor, just like the UML editor in Borland Together, there a beautiful toolbar in it, could someone can give me some hints.
> Thank you very much
>
> yifan
>
Previous Topic:[Announce] GEF 3.4.0 I200803111830 is available
Next Topic:How to implement the coolbar in the composite
Goto Forum:
  


Current Time: Mon Sep 23 09:58:55 GMT 2024

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

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

Back to the top