Community
Participate
Working Groups
Build Identifier: 0.7.0 Hi, Currently I define the tooltips for connections and shapes in ToolBehaviorProvider before the diagram is rendored. As a result I would not be able to change the tooltip later. I have a requirement that the names in shapes in the diagram can be changed by the user. In such cases, I would also expect the tooltip to be changed. Could you provide a way to specify the tootips dynamically either at the time mouse-over or at the time of changing the text for a shape? Regards, Panneer Reproducible: Always
Also other tooltips besides of strings should be supported
Of course M5 not M4
Hi Panneer, the functionality you requested is already available. Whenever business objects are changed, tooltips are also refreshed accordingly, e.g. when you are renaming a shape. I this O.K. for you? Regards, Juergen
Hi Panneer, add the following code snippet to the TutorialToolBehaviorProvider of our tutorial plug-in, which implements tooltips for EClass shapes: @Override public String getToolTip(GraphicsAlgorithm ga) { PictogramElement pe = ga.getPictogramElement(); Object bo = getFeatureProvider().getBusinessObjectForPictogramElement(pe); if (bo instanceof EClass) { return ((EClass) bo).getName(); } return super.getToolTip(ga); } You will see renaming an EClass will change the tooltip. Regards, Juergen
Part of Graphiti Indigo 0.8.0