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/PaintItemProvider.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PaintItemProvider.java48
1 files changed, 12 insertions, 36 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PaintItemProvider.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PaintItemProvider.java
index 70730e2d6a0..7a6918aacad 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PaintItemProvider.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/PaintItemProvider.java
@@ -37,6 +37,7 @@ import org.eclipse.papyrus.dd.provider.DDEditPlugin;
* This is the item provider adapter for a {@link org.eclipse.papyrus.dd.dg.Paint} object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @generated
*/
public class PaintItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, IItemColorProvider, IItemFontProvider {
@@ -59,9 +60,8 @@ public class PaintItemProvider extends ItemProviderAdapter implements IEditingDo
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
+ if(itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
-
addColorPropertyDescriptor(object);
addPaintServerPropertyDescriptor(object);
}
@@ -75,19 +75,7 @@ public class PaintItemProvider extends ItemProviderAdapter implements IEditingDo
* @generated
*/
protected void addColorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Paint_color_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Paint_color_feature", "_UI_Paint_type"),
- DGPackage.Literals.PAINT__COLOR,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Paint_color_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Paint_color_feature", "_UI_Paint_type"), DGPackage.Literals.PAINT__COLOR, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
@@ -97,24 +85,13 @@ public class PaintItemProvider extends ItemProviderAdapter implements IEditingDo
* @generated
*/
protected void addPaintServerPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Paint_paintServer_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Paint_paintServer_feature", "_UI_Paint_type"),
- DGPackage.Literals.PAINT__PAINT_SERVER,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Paint_paintServer_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Paint_paintServer_feature", "_UI_Paint_type"), DGPackage.Literals.PAINT__PAINT_SERVER, true, false, true, null, null, null));
}
/**
* This returns Paint.gif.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -126,15 +103,14 @@ public class PaintItemProvider extends ItemProviderAdapter implements IEditingDo
* This returns the label text for the adapted class.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
Color labelValue = ((Paint)object).getColor();
String label = labelValue == null ? null : labelValue.toString();
- return label == null || label.length() == 0 ?
- getString("_UI_Paint_type") :
- getString("_UI_Paint_type") + " " + label;
+ return label == null || label.length() == 0 ? getString("_UI_Paint_type") : getString("_UI_Paint_type") + " " + label;
}
/**
@@ -142,16 +118,16 @@ public class PaintItemProvider extends ItemProviderAdapter implements IEditingDo
* 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(Paint.class)) {
- case DGPackage.PAINT__COLOR:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ switch(notification.getFeatureID(Paint.class)) {
+ case DGPackage.PAINT__COLOR:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}

Back to the top