Search in sources :

Example 1 with Feature

use of org.whole.lang.frames.model.Feature in project whole by wholeplatform.

the class FeatureDownPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Feature entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getName());
    list.add(entity.getFeatures());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) Feature(org.whole.lang.frames.model.Feature)

Example 2 with Feature

use of org.whole.lang.frames.model.Feature 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 3 with Feature

use of org.whole.lang.frames.model.Feature 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

Feature (org.whole.lang.frames.model.Feature)3 Toggle (org.eclipse.draw2d.Toggle)2 FeatureFigure (org.whole.lang.features.ui.figures.FeatureFigure)2 ArrayList (java.util.ArrayList)1 IEntity (org.whole.lang.model.IEntity)1