Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to remove Zoom palette entry ?
How to remove Zoom palette entry ? [message #48428] Thu, 14 September 2006 23:51 Go to next message
Eclipse UserFriend
Hi,

I am wondering how to remove Zoom palette entry. I tried to specify that
in plugin.xml but it did not work:

<extension point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders" >
<paletteProvider
class=" org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteP rovider ">

<Priority name="High"/>
<contribution>
<predefinedEntry
id="zoomTool"
path="/standardGroup/selectionTool"
remove="true"/>
</contribution>
</paletteProvider>
</extension>

I have 20060831 1.0 Maintenance build.

Thanks.

Li
Re: How to remove Zoom palette entry ? [message #50960 is a reply to message #48428] Tue, 19 September 2006 08:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi Li

you could try the following:

<extension point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders" >
<paletteProvider
class=" org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteP rovider ">

<Priority name="High"/>
<contribution>
<predefinedEntry
id="standardGroup/zoomTool"
remove="true"/>
</contribution>
</paletteProvider>
</extension>

worked for my (1.0.0v20060627-1200)

Frank

Li Ding wrote:
> Hi,
>
> I am wondering how to remove Zoom palette entry. I tried to specify
> that in plugin.xml but it did not work:
> <extension point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders" >
> <paletteProvider
> class=" org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteP rovider ">
>
>
> <Priority name="High"/>
> <contribution>
> <predefinedEntry
> id="zoomTool"
> path="/standardGroup/selectionTool"
> remove="true"/>
> </contribution>
> </paletteProvider>
> </extension>
>
> I have 20060831 1.0 Maintenance build.
>
> Thanks.
>
> Li
>
Re: How to remove Zoom palette entry ? [message #51597 is a reply to message #50960] Tue, 19 September 2006 21:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Frank,

It works. Thanks for help.

Li
Is there a way to remove/add other standard-tools [message #51883 is a reply to message #51597] Wed, 20 September 2006 07:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi at all,

I wondered, if there might be a way to remove/add some other
standard-tools like the way the removal of Zoom worked?
I tried the same for the Note-dropdown-Tool, but I didn't manage to
remove it.
Does anyone know the correct id for this one?

Thanks for your answer

Greets Alex
Re: Is there a way to remove/add other standard-tools [message #52118 is a reply to message #51883] Wed, 20 September 2006 10:29 Go to previous messageGo to next message
Eclipse UserFriend
There's no other way than to place remove="true" xml right now, though we
are going to have complete description of the palette tools in the .gmftool
model some day.
As for note tools, next should remove all note-related tools from the
palette (put these next to zoom removal):

<predefinedEntry id="standardGroup/noteStack/noteTool" remove="true"/>
<predefinedEntry id="standardGroup/noteStack/textTool" remove="true"/>
<predefinedEntry id="standardGroup/noteStack/noteattachmentTool"
remove="true"/>

Artem

"Alex Haag" <Alexander.Haag@esg.de> wrote in message
news:eer7er$tum$1@utils.eclipse.org...
> Hi at all,
>
> I wondered, if there might be a way to remove/add some other
> standard-tools like the way the removal of Zoom worked?
> I tried the same for the Note-dropdown-Tool, but I didn't manage to remove
> it.
> Does anyone know the correct id for this one?
>
> Thanks for your answer
>
> Greets Alex
Re: Is there a way to remove/add other standard-tools [message #52376 is a reply to message #52118] Wed, 20 September 2006 13:18 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Specifying remove=true in plugin.xml works but it is not perfect. The
problem is it will interfere other GMF-based editor your product has. I
would like to remove Zoom tool in my editor ONLY, but Zoom is also removed
from other GMF-based editor.

Li
Re: Is there a way to remove/add other standard-tools [message #52435 is a reply to message #52376] Wed, 20 September 2006 13:54 Go to previous messageGo to next message
Eclipse UserFriend
Agree. That's why we are going to provide complete control over palette
content in the .gmftool model.

Artem

"Li Ding" <lding@ca.ibm.com> wrote in message
news:ba434920f40c5e66e2d14be5081df8b3$1@www.eclipse.org...
> Hi,
>
> Specifying remove=true in plugin.xml works but it is not perfect. The
> problem is it will interfere other GMF-based editor your product has. I
> would like to remove Zoom tool in my editor ONLY, but Zoom is also removed
> from other GMF-based editor.
> Li
>
Re: Is there a way to remove/add other standard-tools [message #53288 is a reply to message #52376] Thu, 21 September 2006 16:56 Go to previous message
Eclipse UserFriend
Li,

You need to provide criteria in the palette provider extension point to
indicate that it applies to your editor only.

e.g.
<editor id="LogicEditor">
</editor>

Does this not work?

- Cherie

Li Ding wrote:
> Hi,
>
> Specifying remove=true in plugin.xml works but it is not perfect. The
> problem is it will interfere other GMF-based editor your product has. I
> would like to remove Zoom tool in my editor ONLY, but Zoom is also
> removed from other GMF-based editor.
> Li
>
Previous Topic:is it possible for multiple plugins to contribute to the same editor?
Next Topic:Positioning a Label at the end (beginning) of a connection figure ...
Goto Forum:
  


Current Time: Sat Jul 05 12:41:42 EDT 2025

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

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

Back to the top