Search in sources :

Example 1 with ToolTipFigure

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;
}
Also used : ToolTipFigure(com.archimatetool.editor.diagram.figures.ToolTipFigure)

Example 2 with ToolTipFigure

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;
}
Also used : ToolTipFigure(com.archimatetool.editor.diagram.figures.ToolTipFigure) IArchimateConcept(com.archimatetool.model.IArchimateConcept) IArchimateRelationship(com.archimatetool.model.IArchimateRelationship)

Example 3 with ToolTipFigure

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;
}
Also used : ToolTipFigure(com.archimatetool.editor.diagram.figures.ToolTipFigure)

Example 4 with ToolTipFigure

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;
}
Also used : ToolTipFigure(com.archimatetool.editor.diagram.figures.ToolTipFigure)

Example 5 with ToolTipFigure

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;
}
Also used : ToolTipFigure(com.archimatetool.editor.diagram.figures.ToolTipFigure)

Aggregations

ToolTipFigure (com.archimatetool.editor.diagram.figures.ToolTipFigure)7 IArchimateRelationship (com.archimatetool.model.IArchimateRelationship)2 IAccessRelationship (com.archimatetool.model.IAccessRelationship)1 IArchimateConcept (com.archimatetool.model.IArchimateConcept)1