Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ModelFeatureArchitectureFromWorkspaceHandler.java')
-rw-r--r--extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ModelFeatureArchitectureFromWorkspaceHandler.java27
1 files changed, 15 insertions, 12 deletions
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ModelFeatureArchitectureFromWorkspaceHandler.java b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ModelFeatureArchitectureFromWorkspaceHandler.java
index ca1a5bd7084..2d3eb49ed0f 100644
--- a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ModelFeatureArchitectureFromWorkspaceHandler.java
+++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ModelFeatureArchitectureFromWorkspaceHandler.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* 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
@@ -31,12 +31,14 @@ import org.eclipse.uml2.uml.Package;
/**
* this handler is used to generate the feature and plugin architecture from workspace
- *@deprecated
+ *
+ * @deprecated
*/
+@Deprecated
public class ModelFeatureArchitectureFromWorkspaceHandler extends ADLToolAbstractHandler {
-
+
/**
- *
+ *
* Constructor.
*
*/
@@ -44,8 +46,8 @@ public class ModelFeatureArchitectureFromWorkspaceHandler extends ADLToolAbstrac
}
public Object execute(ExecutionEvent event) throws ExecutionException {
- Element selectedElement=getSelection();
- ServicesRegistry registry=null;
+ Element selectedElement = getSelection();
+ ServicesRegistry registry = null;
try {
registry = ServiceUtilsForHandlers.getInstance().getServiceRegistry(event);
} catch (ServiceException e1) {
@@ -57,19 +59,20 @@ public class ModelFeatureArchitectureFromWorkspaceHandler extends ADLToolAbstrac
} catch (ServiceException e) {
throw new ExecutionException("Can't get ModelSet", e);
}
- FeatureArchitectureWizard bWizard=new FeatureArchitectureWizard(true);
- WizardDialog wizardDialog = new WizardDialog(new Shell(),bWizard);
+ FeatureArchitectureWizard bWizard = new FeatureArchitectureWizard(true);
+ WizardDialog wizardDialog = new WizardDialog(new Shell(), bWizard);
if (wizardDialog.open() == Window.OK) {
TransactionalEditingDomain dom = modelSet.getTransactionalEditingDomain();
- if( selectedElement instanceof Package){
- SimpleFeaturesArchitectureSnapshotCommand comd= new SimpleFeaturesArchitectureSnapshotCommand(dom, (Package)selectedElement, bWizard.getSelectedBundle());
+ if (selectedElement instanceof Package) {
+ SimpleFeaturesArchitectureSnapshotCommand comd = new SimpleFeaturesArchitectureSnapshotCommand(dom, (Package) selectedElement, bWizard.getSelectedBundle());
dom.getCommandStack().execute(comd);
}
- }
+ }
+
-
return null;
}
+
/**
* {@inheritDoc}
*/

Back to the top