Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/listeners/DepPlanListener.java')
-rw-r--r--extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/listeners/DepPlanListener.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/listeners/DepPlanListener.java b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/listeners/DepPlanListener.java
index b178405d924..f6773177432 100644
--- a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/listeners/DepPlanListener.java
+++ b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/listeners/DepPlanListener.java
@@ -1,14 +1,14 @@
/*****************************************************************************
* 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:
- * Ansgar Radermacher ansgar.radermacher@cea.fr
+ * Ansgar Radermacher ansgar.radermacher@cea.fr
*
*****************************************************************************/
@@ -29,24 +29,25 @@ import org.eclipse.uml2.uml.util.UMLUtil;
* in particular whether delete operations in a composite should immediately
* remove the associate slot in instance specifications of the composite and the
* referenced instance specifications.
- *
+ *
* @author ansgar
- *
+ *
*/
public class DepPlanListener implements IPapyrusListener {
+ @Override
public void notifyChanged(Notification notification) {
// TODO Auto-generated method stub
int evtType = notification.getEventType();
Object notifier = notification.getNotifier();
// String name = "";
- if(evtType == Notification.SET) {
+ if (evtType == Notification.SET) {
// Object oldValue = notification.getOldValue ();
- if(notifier instanceof Package) {
+ if (notifier instanceof Package) {
DeploymentPlan de = UMLUtil.getStereotypeApplication((Package) notifier, DeploymentPlan.class);
Object mainInstance = (de != null) ? de.getMainInstance() : null;
- if(mainInstance instanceof InstanceSpecification) {
+ if (mainInstance instanceof InstanceSpecification) {
// TODO user wants to declare the system component, the instance specification should be created
// automatically

Back to the top