Search in sources :

Example 1 with MethodDeclarationFigure

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

the class MethodDeclarationPart method refreshVisuals.

@Override
protected void refreshVisuals() {
    MethodDeclaration entity = getModelEntity();
    MethodDeclarationFigure methodDeclarationFigure = (MethodDeclarationFigure) getFigure();
    methodDeclarationFigure.showTypeParameters(!EntityUtils.isResolver(entity.getTypeParameters()));
    methodDeclarationFigure.showThrownExceptions(!EntityUtils.isResolver(entity.getThrownExceptions()));
    methodDeclarationFigure.showBodyDeclaration(!EntityUtils.isResolver(entity.getBody()));
}
Also used : MethodDeclarationFigure(org.whole.lang.java.ui.figures.MethodDeclarationFigure) MethodDeclaration(org.whole.lang.java.model.MethodDeclaration)

Aggregations

MethodDeclaration (org.whole.lang.java.model.MethodDeclaration)1 MethodDeclarationFigure (org.whole.lang.java.ui.figures.MethodDeclarationFigure)1