Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-04-20 16:27:14 +0000
committeratikhomirov2006-04-20 16:27:14 +0000
commit8105849e419444e641b9fc740b5bf9c1babf2224 (patch)
tree6dbf8f05633bf24af9dec38601b87e722f701a01 /plugins/org.eclipse.gmf.codegen.edit
parent9e21a0427c44eb234b0a2efdb9e80d5c53642cda (diff)
downloadorg.eclipse.gmf-tooling-8105849e419444e641b9fc740b5bf9c1babf2224.tar.gz
org.eclipse.gmf-tooling-8105849e419444e641b9fc740b5bf9c1babf2224.tar.xz
org.eclipse.gmf-tooling-8105849e419444e641b9fc740b5bf9c1babf2224.zip
[mgolubev] #129362 Respect plug-in dependencies imposed on figure code - fix missing support for inner-class case
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen.edit')
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/plugin.properties5
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/ViewmapItemProvider.java26
2 files changed, 28 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
index d5cc5e880..87d6f7bca 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
+++ b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
@@ -133,16 +133,15 @@ _UI_GenDiagram_initDiagramFileActionClassName_feature = Init Diagram File Action
_UI_GenDiagram_providersPackageName_feature = Providers Package Name
_UI_GenBaseElement_notationViewFactoryClassName_feature = Notation View Factory Class Name
_UI_Viewmap_type = Viewmap
+_UI_Viewmap_attributes_feature = Attributes
+_UI_Viewmap_requiredPluginIDs_feature = Required Plugin IDs
_UI_Attributes_type = Attributes
_UI_ShapeAttributes_type = Shape Attributes
-_UI_BasicViewmap_type = Basic Viewmap
_UI_DecoratedConnectionViewmap_type = Decorated Connection Viewmap
_UI_LinkDecoration_type = Link Decoration
_UI_GenBaseElement_viewmap_feature = Viewmap
-_UI_Viewmap_attributes_feature = Attributes
_UI_ShapeAttributes_lineWidth_feature = Line Width
_UI_ShapeAttributes_lineStyle_feature = Line Style
-_UI_BasicViewmap_figureQualifiedClassName_feature = Figure Qualified Class Name
_UI_DecoratedConnectionViewmap_figureQualifiedClassName_feature = Figure Qualified Class Name
_UI_DecoratedConnectionViewmap_source_feature = Source
_UI_DecoratedConnectionViewmap_target_feature = Target
diff --git a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/ViewmapItemProvider.java b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/ViewmapItemProvider.java
index 272358681..dad72831e 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/ViewmapItemProvider.java
+++ b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/ViewmapItemProvider.java
@@ -13,11 +13,13 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.eclipse.gmf.codegen.gmfgen.GMFGenFactory;
@@ -59,11 +61,32 @@ public class ViewmapItemProvider
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
+ addRequiredPluginIDsPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
+ * This adds a property descriptor for the Required Plugin IDs feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRequiredPluginIDsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Viewmap_requiredPluginIDs_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Viewmap_requiredPluginIDs_feature", "_UI_Viewmap_type"),
+ GMFGenPackage.eINSTANCE.getViewmap_RequiredPluginIDs(),
+ true,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
* 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}.
@@ -100,6 +123,9 @@ public class ViewmapItemProvider
updateChildren(notification);
switch (notification.getFeatureID(Viewmap.class)) {
+ case GMFGenPackage.VIEWMAP__REQUIRED_PLUGIN_IDS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
case GMFGenPackage.VIEWMAP__ATTRIBUTES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;

Back to the top