Search in sources :

Example 1 with IModelsEntity

use of org.whole.lang.models.model.IModelsEntity in project whole by wholeplatform.

the class ModelsJavaModelGeneratorVisitor method visit.

public void visit(ModelDeclarations modelBody) {
    IOperationProgressMonitor progressMonitor = getOperation().getProgressMonitor();
    progressMonitor.beginTask("Building entities", IOperationProgressMonitor.TOTAL_WORK, modelBody.wSize());
    for (int i = 0, size = modelBody.wSize(); i < size; i++) {
        ((IModelsEntity) modelBody.wGet(i)).accept(this);
        progressMonitor.worked(1);
        handleCancelRequest();
    }
    progressMonitor.endTask();
}
Also used : IModelsEntity(org.whole.lang.models.model.IModelsEntity) IOperationProgressMonitor(org.whole.lang.operations.IOperationProgressMonitor)

Aggregations

IModelsEntity (org.whole.lang.models.model.IModelsEntity)1 IOperationProgressMonitor (org.whole.lang.operations.IOperationProgressMonitor)1