Search in sources :

Example 81 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class FolderPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Folder entity = getModelEntity();
    List<IEntity> children = new ArrayList<IEntity>(3);
    children.add(entity.getPath());
    children.add(entity.getPersistence());
    children.add(entity.getContent());
    return children;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) Folder(org.whole.lang.reusables.model.Folder)

Example 82 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class ReusePart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Reuse entity = getModelEntity();
    // FIXME
    // if (EntityUtils.isResolver(entity.getAdapted())) {
    // InterpretModelRunnable runnable = new InterpretModelRunnable(
    // getViewer().getContext(), getViewer().getContextBindings(), "Derive reusable");
    // if (runnable.getBindings().wIsSet("self"))
    // runnable.getBindings().wSet("self", entity);
    // else {
    // runnable.getBindings().wDef("self", entity);
    // runnable.getBindings().wDefValue("viewer", getViewer());
    // }
    // 
    // final RunnableJob job = new RunnableJob("Executing Reuse operation...", runnable);
    // job.setUser(false);
    // job.setPriority(Job.INTERACTIVE);
    // job.schedule();
    // }
    List<IEntity> children = new ArrayList<IEntity>(5);
    children.add(entity.getResource());
    children.add(entity.getOriginal());
    children.add(entity.getAdapter());
    children.add(entity.getAdapted());
    // children.add(entity.getAdaptedRevision());
    return children;
}
Also used : IEntity(org.whole.lang.model.IEntity) Reuse(org.whole.lang.reusables.model.Reuse) ArrayList(java.util.ArrayList)

Example 83 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class TransitionPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Transition entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getSourceConfiguration());
    list.add(entity.getTargetConfiguration());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) Transition(org.whole.lang.semantics.model.Transition) ArrayList(java.util.ArrayList)

Example 84 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class IfTemplateRowPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    IfTemplate entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getExpression());
    list.add(entity.getCondition());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) IfTemplate(org.whole.lang.semantics.model.IfTemplate)

Example 85 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class InputBindingRowPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    InputBinding entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getIdentifier());
    list.add(entity.getExpression());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) InputBinding(org.whole.lang.semantics.model.InputBinding)

Aggregations

IEntity (org.whole.lang.model.IEntity)1407 ArrayList (java.util.ArrayList)604 Test (org.junit.Test)241 IBindingManager (org.whole.lang.bindings.IBindingManager)141 PathExpression (org.whole.lang.queries.model.PathExpression)68 ITemplateManager (org.whole.lang.templates.ITemplateManager)61 Grammar (org.whole.lang.grammars.model.Grammar)50 TestXmlGrammar (org.whole.lang.grammars.util.TestXmlGrammar)46 FeatureDescriptor (org.whole.lang.reflect.FeatureDescriptor)43 Model (org.whole.lang.models.model.Model)40 InternalIEntity (org.whole.lang.model.InternalIEntity)38 VisitException (org.whole.lang.visitors.VisitException)35 IEntityPartViewer (org.whole.lang.ui.viewers.IEntityPartViewer)30 ModelsModel (org.whole.lang.models.codebase.ModelsModel)27 WholeIllegalArgumentException (org.whole.lang.exceptions.WholeIllegalArgumentException)26 StreamPersistenceProvider (org.whole.lang.codebase.StreamPersistenceProvider)24 ModelBuilderOperation (org.whole.lang.builders.ModelBuilderOperation)22 XmlModel (org.whole.lang.models.codebase.XmlModel)22 MissingVariableException (org.whole.lang.visitors.MissingVariableException)22 IEntityPart (org.whole.lang.ui.editparts.IEntityPart)21