use of com.archimatetool.editor.diagram.figures.ToolTipFigure in project archi by archimatetool.
the class SketchActorFigure method getToolTip.
@Override
public IFigure getToolTip() {
ToolTipFigure tooltip = (ToolTipFigure) super.getToolTip();
if (tooltip == null) {
return null;
}
String text = ArchiLabelProvider.INSTANCE.getLabel(getDiagramModelObject());
tooltip.setText(text);
tooltip.setType(Messages.SketchActorFigure_0);
return tooltip;
}
use of com.archimatetool.editor.diagram.figures.ToolTipFigure in project archi by archimatetool.
the class ZestViewerLabelProvider method getTooltip.
public IFigure getTooltip(Object entity) {
if (entity instanceof IArchimateConcept) {
ToolTipFigure l = new ToolTipFigure();
String type = ArchiLabelProvider.INSTANCE.getDefaultName(((EObject) entity).eClass());
l.setText(ArchiLabelProvider.INSTANCE.getLabel(entity));
// $NON-NLS-1$
l.setType(Messages.ZestViewerLabelProvider_0 + " " + type);
if (entity instanceof IArchimateRelationship) {
l.setRubric(ArchiLabelProvider.INSTANCE.getRelationshipSentence((IArchimateRelationship) entity));
}
return l;
}
return null;
}
use of com.archimatetool.editor.diagram.figures.ToolTipFigure in project archi by archimatetool.
the class DiagramModelReferenceFigure method getToolTip.
@Override
public IFigure getToolTip() {
ToolTipFigure tooltip = (ToolTipFigure) super.getToolTip();
if (tooltip == null) {
return null;
}
tooltip.setType(Messages.DiagramModelReferenceFigure_0);
return tooltip;
}
use of com.archimatetool.editor.diagram.figures.ToolTipFigure in project archi by archimatetool.
the class GroupFigure method getToolTip.
@Override
public IFigure getToolTip() {
ToolTipFigure tooltip = (ToolTipFigure) super.getToolTip();
if (tooltip == null) {
return null;
}
tooltip.setText(Messages.GroupFigure_0);
return tooltip;
}
use of com.archimatetool.editor.diagram.figures.ToolTipFigure in project archi by archimatetool.
the class LineConnectionFigure method getToolTip.
@Override
public IFigure getToolTip() {
ToolTipFigure tooltip = (ToolTipFigure) super.getToolTip();
if (tooltip == null) {
return null;
}
String text = ArchiLabelProvider.INSTANCE.getLabel(getModelConnection());
tooltip.setText(text);
tooltip.setType(Messages.LineConnectionFigure_0);
return tooltip;
}
Aggregations