Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Noyrit2014-09-16 13:22:24 +0000
committerflorian noyrit2014-09-16 13:53:19 +0000
commit0bff0cabe4f177bc960b9712179d6ec23115372f (patch)
tree7cf9ff848bba1c0db3709a2344f46daf5ac3fa52 /extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src/org/eclipse/papyrus/dd/dg/provider/GradientItemProvider.java
parent78cba1539ee0cd37e6da28c33b6a7196e91af23d (diff)
downloadorg.eclipse.papyrus-0bff0cabe4f177bc960b9712179d6ec23115372f.tar.gz
org.eclipse.papyrus-0bff0cabe4f177bc960b9712179d6ec23115372f.tar.xz
org.eclipse.papyrus-0bff0cabe4f177bc960b9712179d6ec23115372f.zip
Updated Diagram-Defintion
Change-Id: I4ad2f54a63e70a05a90646c92e49c0f66923770f Signed-off-by: Florian Noyrit <florian.noyrit@cea.fr>
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src/org/eclipse/papyrus/dd/dg/provider/GradientItemProvider.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src/org/eclipse/papyrus/dd/dg/provider/GradientItemProvider.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src/org/eclipse/papyrus/dd/dg/provider/GradientItemProvider.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src/org/eclipse/papyrus/dd/dg/provider/GradientItemProvider.java
index dd72fbbc60c..57bc0b8f735 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src/org/eclipse/papyrus/dd/dg/provider/GradientItemProvider.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src/org/eclipse/papyrus/dd/dg/provider/GradientItemProvider.java
@@ -13,7 +13,6 @@ package org.eclipse.papyrus.dd.dg.provider;
import java.util.Collection;
import java.util.List;
-
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EStructuralFeature;
@@ -57,14 +56,15 @@ public class GradientItemProvider extends PaintServerItemProvider implements IEd
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
+ if(itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
}
return itemPropertyDescriptors;
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -72,7 +72,7 @@ public class GradientItemProvider extends PaintServerItemProvider implements IEd
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
- if (childrenFeatures == null) {
+ if(childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(DGPackage.Literals.GRADIENT__STOP);
}
@@ -100,7 +100,7 @@ public class GradientItemProvider extends PaintServerItemProvider implements IEd
*/
@Override
public String getText(Object object) {
- String label = ((Gradient) object).getId();
+ String label = ((Gradient)object).getId();
return label == null || label.length() == 0 ? getString("_UI_Gradient_type") : getString("_UI_Gradient_type") + " " + label;
}
@@ -115,7 +115,7 @@ public class GradientItemProvider extends PaintServerItemProvider implements IEd
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
- switch (notification.getFeatureID(Gradient.class)) {
+ switch(notification.getFeatureID(Gradient.class)) {
case DGPackage.GRADIENT__STOP:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;

Back to the top