|Making a diagram read-only [message #213866]
||Tue, 11 April 2006 11:44
Originally posted by: markp.softlanding.com|
I am using GEF 3.0.0. I have a diagram app that is loosely based on
the Shapes example. I want to be able to allow a user to open this
diagram in "read-only" mode. Is there some easy way to do this? It is
relatively easy to make changes so that you do not save anything, but
the user can still manipulate the diagram and see and use the palette.
Is the only way to do this to create a second editor?
|Re: Making a diagram read-only [message #214782 is a reply to message #213958]
||Sun, 23 April 2006 01:01
Originally posted by: prostephen1983.hotmail.com|
I think a short way is let all the EditPart install this
EditPolicy ----- RootComponentEditPolicy
this editpolicy make your model and view can not be removed.And you may
can not create a connection in your diagram.
I come from china and just a B.S in university.
And this is my first time here.
|Re: Making a diagram read-only [message #519277 is a reply to message #213958]
||Mon, 08 March 2010 06:11
Registered: July 2009
you can try --> [ActiveEditor] .getDiagramEditPart().disableEditMode();
you should do .disableEditMode for all the ShapeNodeEditPart of the editor.
However this method don't let you move the objects on the editor, but you can still change their property in the relativi sheet
[Updated on: Mon, 08 March 2010 06:40]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02979 seconds