Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Remove GMF generated tool from palette
Remove GMF generated tool from palette [message #125696] Thu, 10 May 2007 12:05 Go to next message
Eclipse UserFriend
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 #125725 is a reply to message #125696] Thu, 10 May 2007 12:26 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Remove GMF generated tool from palette [message #125801 is a reply to message #125725] Thu, 10 May 2007 13:44 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Installing GMF M6 Stream Stable Build
Next Topic:Re: Proggrammaticaly add an element for the "root" model element (access the roo
Goto Forum:
  


Current Time: Tue May 13 06:42:07 EDT 2025

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

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

Back to the top