| Summary: | Required to dynamically change the tooltip on a connection or shape | ||
|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Panneer Selvam <selvam.jp> |
| Component: | Core | Assignee: | Project Inbox <graphiti-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | hrr, juergen.pasch, michael.wenz |
| Version: | unspecified | Flags: | michael.wenz:
indigo+
|
| Target Milestone: | 0.8.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | Indigo M5 theme_round_offs | ||
|
Description
Panneer Selvam
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 |