Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/PathCommandImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/PathCommandImpl.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/PathCommandImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/PathCommandImpl.java
index 9601b765032..0e973108602 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/PathCommandImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/PathCommandImpl.java
@@ -12,9 +12,12 @@
package org.eclipse.papyrus.dd.dg.impl;
import org.eclipse.emf.common.notify.Notification;
+
import org.eclipse.emf.ecore.EClass;
+
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.papyrus.dd.dg.DGPackage;
import org.eclipse.papyrus.dd.dg.PathCommand;
@@ -89,7 +92,7 @@ public abstract class PathCommandImpl extends MinimalEObjectImpl.Container imple
public void setIsRelative(boolean newIsRelative) {
boolean oldIsRelative = isRelative;
isRelative = newIsRelative;
- if (eNotificationRequired()) {
+ if(eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.PATH_COMMAND__IS_RELATIVE, oldIsRelative, isRelative));
}
}
@@ -101,7 +104,7 @@ public abstract class PathCommandImpl extends MinimalEObjectImpl.Container imple
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
+ switch(featureID) {
case DGPackage.PATH_COMMAND__IS_RELATIVE:
return isRelative();
}
@@ -115,9 +118,9 @@ public abstract class PathCommandImpl extends MinimalEObjectImpl.Container imple
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
+ switch(featureID) {
case DGPackage.PATH_COMMAND__IS_RELATIVE:
- setIsRelative((Boolean) newValue);
+ setIsRelative((Boolean)newValue);
return;
}
super.eSet(featureID, newValue);
@@ -130,7 +133,7 @@ public abstract class PathCommandImpl extends MinimalEObjectImpl.Container imple
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
+ switch(featureID) {
case DGPackage.PATH_COMMAND__IS_RELATIVE:
setIsRelative(IS_RELATIVE_EDEFAULT);
return;
@@ -145,7 +148,7 @@ public abstract class PathCommandImpl extends MinimalEObjectImpl.Container imple
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
+ switch(featureID) {
case DGPackage.PATH_COMMAND__IS_RELATIVE:
return isRelative != IS_RELATIVE_EDEFAULT;
}
@@ -159,7 +162,7 @@ public abstract class PathCommandImpl extends MinimalEObjectImpl.Container imple
*/
@Override
public String toString() {
- if (eIsProxy()) {
+ if(eIsProxy()) {
return super.toString();
}
StringBuffer result = new StringBuffer(super.toString());

Back to the top