diff options
Diffstat (limited to 'extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adl4eclipsetool/assistant/SimplePluginImport.java')
-rw-r--r-- | extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adl4eclipsetool/assistant/SimplePluginImport.java | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adl4eclipsetool/assistant/SimplePluginImport.java b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adl4eclipsetool/assistant/SimplePluginImport.java index a856a1b66d4..1a64354a659 100644 --- a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adl4eclipsetool/assistant/SimplePluginImport.java +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adl4eclipsetool/assistant/SimplePluginImport.java @@ -16,10 +16,7 @@ package org.eclipse.papyrus.adl4eclipsetool.assistant; import java.util.Set;
import org.eclipse.papyrus.adltool.ADL4EclipseUtils;
-import org.eclipse.papyrus.adltool.command.CompleteArchitectureSnapshotCommand;
-import org.eclipse.papyrus.adltool.designer.ReverseSettings;
import org.eclipse.papyrus.adltool.reversible.project.ReversibleProject;
-import org.eclipse.uml2.uml.Package;
/**
* This class is used to do the reverse engineering from workspace plug-in. It adds only in the platform dependencies.
@@ -30,29 +27,10 @@ public class SimplePluginImport extends AbstractImportWizard { public SimplePluginImport() {
super(ADVANCED_MODE);
-
- reversibleList = ADL4EclipseUtils.getWorkspacePlugins();
}
@Override
- public boolean performFinish() {
- Set<ReversibleProject> selectedBundles = bundleSelectionPage.getResult();
-
- // One bundle must be selected
- if (selectedBundles.size() > 0) {
- Package selection = bundleSelectionPage.getSelectedModel();
-
- if (selection != null) {
- ReverseSettings reverseSettings = bundleSelectionPage.getReverseSettings();
-
- // Launch the simple reverse engineering
- CompleteArchitectureSnapshotCommand comd = new CompleteArchitectureSnapshotCommand(transactionalEditingDomain, selection, selectedBundles, reverseSettings);
- transactionalEditingDomain.getCommandStack().execute(comd);
-
- return true;
- }
- }
-
- return false;
+ protected Set<ReversibleProject> getReversibleList() {
+ return ADL4EclipseUtils.getWorkspacePlugins();
}
}
|