Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to disable palette
How to disable palette [message #1823224] Mon, 23 March 2020 06:38 Go to next message
Mohit Advani is currently offline Mohit AdvaniFriend
Messages: 28
Registered: May 2019
Junior Member
Hi,
Can i disable palette while opening diagram editor based on some condition.
Node creation has pre condition criteria, but i want whole palette to be disable.


Thanks and Regards
Mohit Advani
Re: How to disable palette [message #1823239 is a reply to message #1823224] Mon, 23 March 2020 12:41 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 548
Registered: July 2009
Senior Member
Hi,

No, this is not possible. The closest you can do is to manually hide/close it (using the small triangle in the top-right of the palette), but this must be done for each individual diagram.

Regards,
Pierre-Charles


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to disable palette [message #1823332 is a reply to message #1823224] Wed, 25 March 2020 06:57 Go to previous messageGo to next message
Mohit Advani is currently offline Mohit AdvaniFriend
Messages: 28
Registered: May 2019
Junior Member
Thanks for your quick reply, there should be some way to disable palette grammatically, because it is a graphical object so ideally there should be way to disable it grammatically, can you please confirm again.

Thanks and Regards
Mohit Advani
Re: How to disable palette [message #1823345 is a reply to message #1823332] Wed, 25 March 2020 10:31 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 548
Registered: July 2009
Senior Member
The palette component is part of the editor itself, not inside the diagram's content. See org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.createPaletteRoot(PaletteRoot existingPaletteRoot) for example (it is overriden in Sirius but the overall palette creation is defined in GMF). The only way to avoid the creation of the palette would be to define a custom editor implementation for your specific diagrams, but this is not supported. Even if you found a way to subclass Sirius's DDiagramEditorImpl to be used in your case, I'm not confident that other parts of the Sirius would not break in non-obvious and unpredicatble ways if the palette component was not created.


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Getting to the "root" element by AQL query
Next Topic:Changing a diagram element's color without changing its model
Goto Forum:
  


Current Time: Wed Oct 28 18:03:41 GMT 2020

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

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

Back to the top