|Re: Inactive PE disappears [message #668019 is a reply to message #667873]
||Tue, 03 May 2011 12:17
| Michael Wenz
Registered: July 2009
Location: Walldorf, Germany
to achieve this behavior of "pinning" an object, I would recommend to
disable move, resize and potentially the delete and remove features for that
object (e.g. by setting a property for the PE when the user action is
The inactive flag's intention is slightly different; its basic intention is
to make PEs not respond to dropping request (basically not EditPart is
created for inactive PEs).
Nevertheless there are 2 issues indicated by you:
1) There is no real documentation available for the inactive flag. Graphiti
should provide this. Would you open a bugzilla for this missing docu?
2) The behavior is inconsistent: after setting the inactive flag theEditPart
should be removed as it is not being created on opening a new editor. It
seems, Graphiti can currently not handle switching the inactive flag for
already existing PEs. Would you open a second bugzilla to track this?
"Volker Wegert" wrote in message news:firstname.lastname@example.org...
I'm not sure whether this is a bug... I've added an action to my editor to
"pin" a certain background element in place so that it isn't selectable.
This makes it easier for users to handle the foreground elements that have
to be moved around inside this element. I've done this by setting the
'active' property of the background element to false to pin it in place. As
long as I keep the editor open, everything works as desired.
The 'active' flag is persisted with the diagram model, with an unexpected
side effect: The next time I open the editor, the background element is not
displayed at all. Now if I set the 'active' property back to true and then
save and reopen the editor, the element appears again.
Unfortunately, the documentation on the active attribute only consists of
"If the meaning of the 'active' attribute isn't clear, there really should
be more of a description here...", so I was guessing that an element being
'active' only concerns its 'selectability' - especially since there's a
separate attribute 'visible'.
Did I make a mistake here or did I trigger a bug?
Powered by FUDForum
. Page generated in 0.02053 seconds