Search in sources :

Example 1 with ImportDeclaration

use of org.whole.lang.java.model.ImportDeclaration in project whole by wholeplatform.

the class ImportDeclarationPart method refreshVisuals.

protected void refreshVisuals() {
    ImportDeclaration entity = getModelEntity();
    ImportModifier m1 = entity.getStatic();
    if (DataTypeUtils.getDataKind(m1).isBoolean())
        getImportDeclarationFigure().setStaticModifier(m1.wBooleanValue());
    else
        getImportDeclarationFigure().setStaticModifier(false);
    ImportModifier m2 = entity.getOnDemand();
    if (DataTypeUtils.getDataKind(m2).isBoolean())
        getImportDeclarationFigure().setOnDemandModifier(m2.wBooleanValue());
    else
        getImportDeclarationFigure().setOnDemandModifier(false);
}
Also used : ImportModifier(org.whole.lang.java.model.ImportModifier) ImportDeclaration(org.whole.lang.java.model.ImportDeclaration)

Example 2 with ImportDeclaration

use of org.whole.lang.java.model.ImportDeclaration in project whole by wholeplatform.

the class ImportDeclarationPart method getModelSpecificChildren.

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

Aggregations

ImportDeclaration (org.whole.lang.java.model.ImportDeclaration)2 ArrayList (java.util.ArrayList)1 ImportModifier (org.whole.lang.java.model.ImportModifier)1 IEntity (org.whole.lang.model.IEntity)1