Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Hide Pin/Unpin in palette
Hide Pin/Unpin in palette [message #1766114] Fri, 16 June 2017 05:13 Go to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi,

I need to hide the Pin / Unpin action in the palette.

How can I do that?

Thanks.

Martin
Re: Hide Pin/Unpin in palette [message #1766123 is a reply to message #1766114] Fri, 16 June 2017 08:01 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Hi,

It's only possible in a transient manner: right-click in the palette area where these tools appear and select "Customize...". The under the "Standard" category, select "Pinning" and enable the "Hide" checkbox. The setting is not persisted though, so closing/reopening the diagram will revert to the default. To my knowledge there is currently no other way to control the visibility of these palette tools, which are provided by Sirius. The others are provided by GMF itself, and the configurations you set in the dialog are persisted. Please open a bugzilla.

Regards,
Pierre-Charles David


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Hide Pin/Unpin in palette [message #1766126 is a reply to message #1766123] Fri, 16 June 2017 08:34 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
I did it programmatically: implement a PartListenerAdapter and it's partOpened() method. There check if the part is an instance of DDiagramEditor. If yes use part.getAdapter() to retrieve the PaletteViewer instance. The palette viewer allows you to get the palette root and it's children which also contains a ToolGroupPaletteStack with the "Pinning" label. Use setVisible(false) on that. HTH
Previous Topic:[ANN] Sirius 4.1.5
Next Topic:[ANN] SiriusCon 2017
Goto Forum:
  


Current Time: Sat Apr 27 05:06:08 GMT 2024

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

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

Back to the top