Search in sources :

Example 1 with CreateJavaClassInstance

use of org.whole.lang.workflows.model.CreateJavaClassInstance in project whole by wholeplatform.

the class CreateJavaClassInstancePart method refreshVisuals.

@Override
protected void refreshVisuals() {
    CreateJavaClassInstance entity = getModelEntity();
    Expression e = entity.getConstructor();
    String name = Matcher.matchImpl(WorkflowsEntityDescriptorEnum.StringLiteral, e) ? e.wStringValue() : "?";
    int endIndex = name.indexOf('(');
    if (endIndex > 0)
        name = name.substring(0, endIndex);
    getFigure().setConstructorName(name);
    super.refreshVisuals();
}
Also used : Expression(org.whole.lang.workflows.model.Expression) CreateJavaClassInstance(org.whole.lang.workflows.model.CreateJavaClassInstance)

Example 2 with CreateJavaClassInstance

use of org.whole.lang.workflows.model.CreateJavaClassInstance in project whole by wholeplatform.

the class CreateJavaClassInstancePart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    CreateJavaClassInstance entity = getModelEntity();
    List<IEntity> children = new ArrayList<IEntity>(6);
    children.add(entity.getLabel());
    children.add(entity.getClassName());
    children.add(entity.getConstructor());
    // children.add(entity.getTypeArguments());
    children.add(entity.getArguments());
    children.add(entity.getResult());
    return children;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) CreateJavaClassInstance(org.whole.lang.workflows.model.CreateJavaClassInstance)

Aggregations

CreateJavaClassInstance (org.whole.lang.workflows.model.CreateJavaClassInstance)2 ArrayList (java.util.ArrayList)1 IEntity (org.whole.lang.model.IEntity)1 Expression (org.whole.lang.workflows.model.Expression)1