Bug 401976 - Allow for "passive / non-active" decorators
Summary: Allow for "passive / non-active" decorators
Status: ASSIGNED
Alias: None
Product: Graphiti
Classification: Modeling
Component: Core (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 04:12 EST by Andreas Graf CLA
Modified: 2013-03-01 03:43 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Graf CLA 2013-02-28 04:12:49 EST
For illustration, here is the use case

* In our graphical notation, a port can either be an input port or an output port (depending on an attribute)

* We use a TextDecorator to show the actual direction (custom font, arrow pointing left or right).

* When the user tries to create a connection, it is possible when he moves the mouse into the port symbol, but as soon as he moves over the decorator, it seems that Graphiti considers this to be a different Pictogram Element.

* It would be great if Graphiti would additionaly support simple/plain/stupid decorators that add just some graphics/text, but otherwise would be considered a simple part of the pictorgram/shape that they are decorating.
Comment 1 Michael Wenz CLA 2013-03-01 03:43:44 EST
This behavior is reproducable in the Sketch editor. It seems it is caused by the fact that the decorators internally belong to the diagram (the sourcePictogramElement passed in the context is the diagram). This needs to be checked. Currently this looks more like a bug to me.

Andreas: I wonder if (text) decorators should really be used here. Wouldn't it be better to add a standard Text shape to the anchor?