Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PathCommandItemProvider.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PathCommandItemProvider.java29
1 files changed, 9 insertions, 20 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PathCommandItemProvider.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PathCommandItemProvider.java
index cf3d1bfda0e..76f1438aee3 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PathCommandItemProvider.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PathCommandItemProvider.java
@@ -36,6 +36,7 @@ import org.eclipse.papyrus.dd.provider.DDEditPlugin;
* This is the item provider adapter for a {@link org.eclipse.papyrus.dd.dg.PathCommand} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class PathCommandItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, IItemColorProvider, IItemFontProvider {
@@ -58,9 +59,8 @@ public class PathCommandItemProvider extends ItemProviderAdapter implements IEdi
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
+ if(itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
-
addIsRelativePropertyDescriptor(object);
}
return itemPropertyDescriptors;
@@ -73,25 +73,14 @@ public class PathCommandItemProvider extends ItemProviderAdapter implements IEdi
* @generated
*/
protected void addIsRelativePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_PathCommand_isRelative_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_PathCommand_isRelative_feature", "_UI_PathCommand_type"),
- DGPackage.Literals.PATH_COMMAND__IS_RELATIVE,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_PathCommand_isRelative_feature"), getString("_UI_PropertyDescriptor_description", "_UI_PathCommand_isRelative_feature", "_UI_PathCommand_type"), DGPackage.Literals.PATH_COMMAND__IS_RELATIVE, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -105,16 +94,16 @@ public class PathCommandItemProvider extends ItemProviderAdapter implements IEdi
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
-
- switch (notification.getFeatureID(PathCommand.class)) {
- case DGPackage.PATH_COMMAND__IS_RELATIVE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ switch(notification.getFeatureID(PathCommand.class)) {
+ case DGPackage.PATH_COMMAND__IS_RELATIVE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}

Back to the top