Community
Participate
Working Groups
For text added as a connection decorator, when invoking direct-editing on it, I noticed the following issues: 1. When the text decorator has focus, a resizable handle appears around the text. However, if you try to resize it, it won't resize. 2. The cell editor used for direct editing seems to have fixed size. Calling gaService.setLocationAndSize() on the text doesn't have any effect on the cell editor size. This behaves differently from the cell editor used by node. 3. While editing the text on the connection, the cell editor won't adjust its size accordingly. But it re-adjusts the size after direct editing is finished.
Currently everything works as designed from my point of view. But you are right. We can do some improvements. Please, can you describe the expected behaviour for all of your issues? We will treat them as enhancement requests.
(In reply to comment #1) > Currently everything works as designed from my point of view. > > But you are right. We can do some improvements. Please, can you describe the > expected behaviour for all of your issues? > > We will treat them as enhancement requests. Let me try: 1. If the connection label (added as connection decorator) isn't resizable, then the resize handle should not appear when the connection label is selected. 2. When the connection label is in "direct-edit" mode, the positioning of the highlight obscures the text at the left. 3. The direct editing box of the connection label is not consistent with the direct editing box of a node. With a node, I can specify the width and height of the text label and when the text is in direct editing mode, the cell editor uses that width and height. But for connection label, setting the label width and height has no effect on the cell editor size. For small labels, with the issue described in 2, it's very hard to see the text.
1. It's fixed for Indigo SR1 2. and 3. Please override the method public boolean stretchFieldToFitText() in your direct editing feature which is responsible for your label decorator.
See last comment.
Marked as part of Juno
Part of Graphiti 0.9.0 (Eclipse Juno)