Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Hide pin/unpin tool in palette
Hide pin/unpin tool in palette [message #1716970] Wed, 09 December 2015 10:40 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 347
Registered: July 2009
Senior Member
Hi all,

can you please give me a hint how I can hide the pin/unpin button in the palette header?

I found the following which allows to hide standard tools from GEF/GMF, like zoom, notes and text elements:

    <extension point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders">
       <paletteProvider class="org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteProvider">
          <Priority name="High"/>
          <contribution>
      	    <predefinedEntry id="standardGroup/zoomTool" remove="true"/>
      	    <predefinedEntry id="standardGroup/noteStack/noteTool" remove="true"/
	    <predefinedEntry id="standardGroup/noteStack/textTool" remove="true"/>
          </contribution>
          <editor id="org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID"></editor>
       </paletteProvider>
    </extension>


Is a similar contribution possible for pin/unpin? If not which alternative approach is recommended?

TIA,
Axel

[Updated on: Wed, 09 December 2015 10:46]

Report message to a moderator

Re: Hide pin/unpin tool in palette [message #1717478 is a reply to message #1716970] Mon, 14 December 2015 10:10 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 253
Registered: August 2010
Senior Member
On 12/09/2015 11:40 AM, Axel Guckelsberger wrote:
> Hi all,

Hi Axel,

There is no API to simply hide those actions. They are added in
org.eclipse.sirius.diagram.ui.tools.internal.palette.PaletteManagerImpl.addDefaultTools(Diagram)
and defined statically in
org.eclipse.sirius.diagram/model/DiagramEnvironment.odesign.


Regards,

Florian

>
> can you please give me a hint how I can hide the pin/unpin button in the
> palette header?
>
> I found the following which allows to hide standard tools from GEF/GMF,
> like zoom, notes and text elements:
>
> <extension point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders">
> <paletteProvider
> class="org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteProvider">
>
> <Priority name="High"/>
> <contribution>
> <predefinedEntry id="standardGroup/zoomTool" remove="true"/>
> <predefinedEntry id="standardGroup/noteStack/noteTool"
> remove="true"/
> <predefinedEntry id="standardGroup/noteStack/textTool"
> remove="true"/>
> </contribution>
> <editor
> id="org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID"></editor>
> </paletteProvider>
> </extension>
>
> Is a similar contribution possible for pin/unpin? If not which
> alternative approach is recommended?
>
> TIA,
> Axel


--
Florian - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Programmatically layout a diagram
Next Topic:NullPointerException when copy/paste an element in diagram
Goto Forum:
  


Current Time: Thu Jan 21 19:19:44 GMT 2021

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

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

Back to the top