Search in sources :

Example 1 with Varargs

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

the class SingleVariableDeclarationPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    SingleVariableDeclaration entity = getModelEntity();
    Varargs varargs = entity.getVarargs();
    SingleVariableDeclarationFigure figure = (SingleVariableDeclarationFigure) getFigure();
    figure.showVarargs(!EntityUtils.isResolver(varargs) && varargs.wBooleanValue());
    List<IEntity> list = new ArrayList<IEntity>(4);
    list.add(entity.getModifiers());
    list.add(entity.getType());
    list.add(entity.getName());
    list.add(entity.getVarargsAnnotations());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) SingleVariableDeclaration(org.whole.lang.java.model.SingleVariableDeclaration) Varargs(org.whole.lang.java.model.Varargs) ArrayList(java.util.ArrayList) SingleVariableDeclarationFigure(org.whole.lang.java.ui.figures.SingleVariableDeclarationFigure)

Example 2 with Varargs

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

the class MethodRefParameterPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    MethodRefParameter methodRefParameter = getModelEntity();
    Varargs varargs = methodRefParameter.getVarargs();
    ((MethodRefParameterFigure) getFigure()).showVarargs(!EntityUtils.isResolver(varargs) && varargs.wBooleanValue());
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(methodRefParameter.getType());
    list.add(methodRefParameter.getName());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) Varargs(org.whole.lang.java.model.Varargs) MethodRefParameter(org.whole.lang.java.model.MethodRefParameter) ArrayList(java.util.ArrayList) MethodRefParameterFigure(org.whole.lang.java.ui.figures.MethodRefParameterFigure)

Aggregations

ArrayList (java.util.ArrayList)2 Varargs (org.whole.lang.java.model.Varargs)2 IEntity (org.whole.lang.model.IEntity)2 MethodRefParameter (org.whole.lang.java.model.MethodRefParameter)1 SingleVariableDeclaration (org.whole.lang.java.model.SingleVariableDeclaration)1 MethodRefParameterFigure (org.whole.lang.java.ui.figures.MethodRefParameterFigure)1 SingleVariableDeclarationFigure (org.whole.lang.java.ui.figures.SingleVariableDeclarationFigure)1