Search in sources :

Example 1 with InterfaceDeclarationFigure

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

the class InterfaceDeclarationPart method getModelSpecificChildren.

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

Aggregations

ArrayList (java.util.ArrayList)1 InterfaceDeclaration (org.whole.lang.java.model.InterfaceDeclaration)1 InterfaceDeclarationFigure (org.whole.lang.java.ui.figures.InterfaceDeclarationFigure)1 IEntity (org.whole.lang.model.IEntity)1