Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Modify the palette and remove before the existing palette
Modify the palette and remove before the existing palette [message #218546] Thu, 12 February 2009 17:06 Go to next message
Sophie Andrieu is currently offline Sophie AndrieuFriend
Messages: 38
Registered: July 2009
Member
Hello ,

I want to customize the palette.
For that, I use the extension point paletteProvider and I redefine the
PaletteFactory... with the contributeToPalette method which is overrided.
But my problem is that I want to remove all entry of the existing palette
to put after my own entries : is there a solution whithout modifying the
diagram generated code ?

Thanks for your help,
Sophie
Re: Modify the palette and remove before the existing palette [message #218658 is a reply to message #218546] Fri, 13 February 2009 11:33 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sophie,

You can remove default "standard" tools contributed to this palette if you
define some (any) StandardTools in .gmftool file.
Another option is to modify generated code.

-----------------
Alex Shatalin
Re: Modify the palette and remove before the existing palette [message #218719 is a reply to message #218658] Fri, 13 February 2009 13:15 Go to previous message
Sophie Andrieu is currently offline Sophie AndrieuFriend
Messages: 38
Registered: July 2009
Member
Yes, but in my default palette I define some defaults entries associated
to the model (which is a general model) : I would want to customize
objects model and customize also my palette. So for this, I would want
remove the existing entries palette (and add new entries customized) or
modify them...
There is really no solution ?

Thanks,

Sophie
Previous Topic:add a figure in a gmf file programmatically
Next Topic:Diagram Creation Weirdness
Goto Forum:
  


Current Time: Thu Apr 25 21:27:31 GMT 2024

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

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

Back to the top