Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool/src/org/eclipse/papyrus/adltool/designer/wizard/PluginArchitectureWizard.java')
-rw-r--r--extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool/src/org/eclipse/papyrus/adltool/designer/wizard/PluginArchitectureWizard.java62
1 files changed, 62 insertions, 0 deletions
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool/src/org/eclipse/papyrus/adltool/designer/wizard/PluginArchitectureWizard.java b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool/src/org/eclipse/papyrus/adltool/designer/wizard/PluginArchitectureWizard.java
new file mode 100644
index 00000000000..0e31f5dde22
--- /dev/null
+++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool/src/org/eclipse/papyrus/adltool/designer/wizard/PluginArchitectureWizard.java
@@ -0,0 +1,62 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.adltool.designer.wizard;
+
+
+
+import java.util.ArrayList;
+
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.papyrus.adltool.designer.ArchitectureSnapshotDesigner;
+
+/**
+ * this wizard is used to display plugin from workspace and the platform
+ *
+ */
+
+public class PluginArchitectureWizard extends Wizard {
+
+ protected BundleSelectionPage bundleSelectionPage;
+ protected boolean onlyWorkspace=true;
+
+ public PluginArchitectureWizard(boolean onlyWorkspace) {
+ super();
+ setNeedsProgressMonitor(true);
+ this.onlyWorkspace=onlyWorkspace;
+ }
+
+ @Override
+ public void addPages() {
+ ArrayList<Object> bundleList= new ArrayList<Object>();
+ bundleList.addAll(ArchitectureSnapshotDesigner.getWorkspaceBundle());
+ //do not look for loaded plugin in the case of a simple research
+ if(!onlyWorkspace){
+ bundleList.addAll(ArchitectureSnapshotDesigner.getLoadedBundles());
+ }
+ bundleSelectionPage = new BundleSelectionPage(bundleList);
+ addPage(bundleSelectionPage);
+ }
+
+ public ArrayList<Object> getSelectedBundle(){
+ return bundleSelectionPage.getResult();
+ }
+ @Override
+ public boolean performFinish() {
+ if(bundleSelectionPage.getResult().size()>0){
+
+ return true;
+ }
+ return false;
+ }
+}

Back to the top