Skip to content

Commit

Permalink
[541322] Avoids updating manifest files on non-PDE projects
Browse files Browse the repository at this point in the history
Change-Id: I6068891319d44dde448e1d034f957dffe7a88ca0
Signed-off-by: Zoltan Ujhelyi <[email protected]>
  • Loading branch information
ujhelyiz committed Nov 20, 2018
1 parent c178511 commit 0c320f9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard;
import org.eclipse.viatra.query.tooling.core.generator.genmodel.IVQGenmodelProvider;
import org.eclipse.viatra.query.tooling.core.project.ProjectGenerationHelper;
import org.eclipse.viatra.query.tooling.core.project.ViatraQueryNature;
import org.eclipse.viatra.query.tooling.ui.wizards.internal.operations.CompositeWorkspaceModifyOperation;
import org.eclipse.viatra.query.tooling.ui.wizards.internal.operations.CreateGenmodelOperation;
Expand Down Expand Up @@ -82,8 +83,8 @@ public boolean performFinish() {
WorkspaceModifyOperation projectOp = new EnsureProjectDependencies(project, genmodelDependencies);
WorkspaceModifyOperation genmodelOp = new CreateGenmodelOperation(project, genmodelPage.getSelectedGenmodels(),
genmodelProvider, resourceSetProvider);
op = new CompositeWorkspaceModifyOperation(new WorkspaceModifyOperation[] { projectOp, genmodelOp },
"Creating generator model");
WorkspaceModifyOperation[] operations = (ProjectGenerationHelper.isOpenPDEProject(project)) ? new WorkspaceModifyOperation[] { projectOp, genmodelOp } : new WorkspaceModifyOperation[] {genmodelOp};
op = new CompositeWorkspaceModifyOperation(operations,"Creating generator model");

try {
getContainer().run(true, true, op);
Expand Down

0 comments on commit 0c320f9

Please sign in to comment.