Search in sources :

Example 1 with ClassDeclarationFigure

use of org.whole.lang.java.ui.figures.ClassDeclarationFigure in project whole by wholeplatform.

the class ClassDeclarationPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    ClassDeclaration classDeclaration = getModelEntity();
    ((ClassDeclarationFigure) getFigure()).hideTypeParameters(EntityUtils.isResolver(classDeclaration.getTypeParameters()));
    ((ClassDeclarationFigure) getFigure()).hideSuperclassType(EntityUtils.isResolver(classDeclaration.getSuperclassType()));
    ((ClassDeclarationFigure) getFigure()).hideSuperInterfaceTypes(EntityUtils.isResolver(classDeclaration.getSuperInterfaceTypes()));
    List<IEntity> list = new ArrayList<IEntity>(7);
    list.add(classDeclaration.getJavadoc());
    list.add(classDeclaration.getModifiers());
    list.add(classDeclaration.getName());
    list.add(classDeclaration.getTypeParameters());
    list.add(classDeclaration.getSuperclassType());
    list.add(classDeclaration.getSuperInterfaceTypes());
    list.add(classDeclaration.getBodyDeclarations());
    return list;
}
Also used : ClassDeclaration(org.whole.lang.java.model.ClassDeclaration) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) ClassDeclarationFigure(org.whole.lang.java.ui.figures.ClassDeclarationFigure)

Aggregations

ArrayList (java.util.ArrayList)1 ClassDeclaration (org.whole.lang.java.model.ClassDeclaration)1 ClassDeclarationFigure (org.whole.lang.java.ui.figures.ClassDeclarationFigure)1 IEntity (org.whole.lang.model.IEntity)1