Search in sources :

Example 1 with FeatureFigure

use of org.whole.lang.features.ui.figures.FeatureFigure in project whole by wholeplatform.

the class FeatureDownPart method refreshVisuals.

@Override
protected void refreshVisuals() {
    Feature entity = getModelEntity();
    FeatureFigure f = (FeatureFigure) getFigure();
    Toggle toggle = f.getFoldingToggle(0);
    if (entity.getFeatures().wIsEmpty() && !toggle.isSelected())
        toggle.doClick();
}
Also used : Toggle(org.eclipse.draw2d.Toggle) FeatureFigure(org.whole.lang.features.ui.figures.FeatureFigure) Feature(org.whole.lang.frames.model.Feature)

Example 2 with FeatureFigure

use of org.whole.lang.features.ui.figures.FeatureFigure in project whole by wholeplatform.

the class FeatureRightPart method refreshVisuals.

@Override
protected void refreshVisuals() {
    Feature entity = getModelEntity();
    FeatureFigure f = (FeatureFigure) getFigure();
    Toggle toggle = f.getFoldingToggle(0);
    if (entity.getFeatures().wIsEmpty() && !toggle.isSelected())
        toggle.doClick();
}
Also used : Toggle(org.eclipse.draw2d.Toggle) FeatureFigure(org.whole.lang.features.ui.figures.FeatureFigure) Feature(org.whole.lang.frames.model.Feature)

Aggregations

Toggle (org.eclipse.draw2d.Toggle)2 FeatureFigure (org.whole.lang.features.ui.figures.FeatureFigure)2 Feature (org.whole.lang.frames.model.Feature)2