|Shortcuts to read-only models [message #660991]
||Tue, 22 March 2011 15:36
Registered: February 2011
I want to make selected models read-only.
Let's say I created 2 models <modelBase.mindmap> and <modelsub.mindmap> in my editor. modelBase holds a few classes e.g. classBase.
In modelSub.mindmap I create a new class classSub which inherits from a shortcut to classBase in modelBase.mindmap.
Now I don't want classes from modelBase to be editable.
I tried setting the file modelBase.mindmap to read-only via the OS. But when I try to save my modelSub.mindmap_dia it says "File modelBase.mindmap is read-only. Do you want the make it writeable?". Obviously not. But after clicking <No> the whole modelSub.mindmap_dia diagram is suddenly read.only.
I suspect this is beacause i have the shortcut to classBase on my diagram and GMF isn't smart enough to make only that specific class object read-only..
Do you have any idea how i could tackle this issue?
Maybe via EMFs "editable" attribute? The problem with this is that I dont want all models to be non-editable but only specific instances.
[Updated on: Tue, 22 March 2011 19:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02163 seconds