Remove GMF generated tool from palette [message #125696] |
Thu, 10 May 2007 12:05  |
Eclipse User |
|
|
|
Hello,
I'm trying to remove some GMF generated tools from the palette using
the extension
point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders" as described
in the GMF tutorial.
This method works ok when removing the zoomTool and noteStack/*
predefined tools, but I've not been able to remove any tool generated
with GMF, as no id is given to those tools; and even giving them an id
(adding some code in the palette factory class) does not seem to work.
So, long story short, any idea on how to remove a GMF generated tool
from the palette via extension points?
Any help will be greatly appreciated.
Thanks in advance,
Javi :)
--
|
|
|
|
Re: Remove GMF generated tool from palette [message #125801 is a reply to message #125725] |
Thu, 10 May 2007 13:44  |
Eclipse User |
|
|
|
Hello Alex,
Well, actually there's a bit of trouble regenerating code.
I'm working with the UML2Tools project from the Model Development Tools
(MDT) project, and currently regenerating from their .gmfmap is kind of
troublesome because of the "hacks" introduced in the code.
I guess i can delete some lines of code to get what I want; it's dirty
but it works.
Anyway, thanks for claryfing this subject.
-----------
Javi
--
Alex Shatalin wrote:
> Hello Francisco,
>
> Currently you can do it only by modifying .gmftool model and
> regenerating code (statically). What's the problem with doing it?
>
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.27693 seconds