Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Disable tool palette when opening an editor
Disable tool palette when opening an editor [message #825076] Tue, 20 March 2012 08:34 Go to next message
M F is currently offline M F
Messages: 1
Registered: March 2012
Junior Member
Hi!
I am working with GMF and trying to open a *.modeling_diagram file in the editor but I want to disable the tool palette so that it does not appear. The purpose of this is that the user only is allowed to see the diagram but not to put new elements in it. Is it possible to do that in some way?

Any help is appreciated!
Thanks in advance!

[Updated on: Tue, 20 March 2012 08:35]

Report message to a moderator

Re: Disable tool palette when opening an editor [message #825079 is a reply to message #825076] Tue, 20 March 2012 08:44 Go to previous message
Andreas Muelder is currently offline Andreas Muelder
Messages: 71
Registered: July 2011
Member
Hi,

take a look at the constructor of class DiagramDocumentEditor. You can pass in a boolean flag indicating if the editor should have a palette or not.

Regards,
Andreas

Previous Topic:Restricting attribute value choice
Next Topic:[GMF] Containment Bug
Goto Forum:
  


Current Time: Fri Apr 18 11:53:55 EDT 2014

Powered by FUDForum. Page generated in 0.01942 seconds