### Eclipse Workspace Patch 1.0 #P org.eclipse.gmf.graphdef.edit Index: plugin.properties =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.edit/plugin.properties,v retrieving revision 1.5 diff -u -r1.5 plugin.properties --- plugin.properties 13 Jan 2006 00:51:56 -0000 1.5 +++ plugin.properties 9 Feb 2006 18:41:40 -0000 @@ -224,3 +224,60 @@ _UI_FontStyle_NORMAL_literal = NORMAL _UI_FontStyle_BOLD_literal = BOLD _UI_FontStyle_ITALIC_literal = ITALIC +_UI_LayoutData_type = Layout Data +_UI_Layoutable_type = Layoutable +_UI_Layout_type = Layout +_UI_ImplementationAware_type = Implementation Aware +_UI_LayoutData_grabExcessHorizontalSpace_feature = Grab Excess Horizontal Space +_UI_LayoutData_grabExcessVerticalSpace_feature = Grab Excess Vertical Space +_UI_LayoutData_verticalAlignment_feature = Vertical Alignment +_UI_LayoutData_horizontalAlignment_feature = Horizontal Alignment +_UI_LayoutData_verticalSpan_feature = Vertical Span +_UI_LayoutData_horizontalSpan_feature = Horizontal Span +_UI_LayoutData_horizontalIndent_feature = Horizontal Indent +_UI_LayoutData_sizeHint_feature = Size Hint +_UI_LayoutData_owner_feature = Owner +_UI_Layoutable_data_feature = Data +_UI_Layoutable_layout_feature = Layout +_UI_Layout_numColumns_feature = Num Columns +_UI_Layout_equalWidth_feature = Equal Width +_UI_Layout_margins_feature = Margins +_UI_Layout_spacing_feature = Spacing +_UI_Alignment_BEGINNING_literal = BEGINNING +_UI_Alignment_CENTER_literal = CENTER +_UI_Alignment_END_literal = END +_UI_Alignment_FILL_literal = FILL +_UI_GridLayoutData_type = Grid Layout Data +_UI_GridLayout_type = Grid Layout +_UI_GridLayoutData_qualifiedClassName_feature = Qualified Class Name +_UI_GridLayoutData_bundleName_feature = Bundle Name +_UI_GridLayoutData_grabExcessHorizontalSpace_feature = Grab Excess Horizontal Space +_UI_GridLayoutData_grabExcessVerticalSpace_feature = Grab Excess Vertical Space +_UI_GridLayoutData_verticalAlignment_feature = Vertical Alignment +_UI_GridLayoutData_horizontalAlignment_feature = Horizontal Alignment +_UI_GridLayoutData_verticalSpan_feature = Vertical Span +_UI_GridLayoutData_horizontalSpan_feature = Horizontal Span +_UI_GridLayoutData_horizontalIndent_feature = Horizontal Indent +_UI_GridLayoutData_sizeHint_feature = Size Hint +_UI_GridLayout_qualifiedClassName_feature = Qualified Class Name +_UI_GridLayout_bundleName_feature = Bundle Name +_UI_GridLayout_numColumns_feature = Num Columns +_UI_GridLayout_equalWidth_feature = Equal Width +_UI_GridLayout_margins_feature = Margins +_UI_GridLayout_spacing_feature = Spacing +_UI_BorderLayoutData_type = Border Layout Data +_UI_BorderLayout_type = Border Layout +_UI_BorderLayoutData_alignment_feature = Alignment +_UI_BorderLayoutData_isVertical_feature = Is Vertical +_UI_BorderLayout_spacing_feature = Spacing +_UI_BorderLayoutData_vertical_feature = Vertical +_UI_CustomConfigurableClass_type = Custom Configurable Class +_UI_CustomAttribute_type = Custom Attribute +_UI_CustomConfigurableClass_attributes_feature = Attributes +_UI_CustomAttribute_type_feature = Type +_UI_CustomAttribute_value_feature = Value +_UI_CustomAttribute_directAccess_feature = Direct Access +_UI_CustomAttribute_multiStatementValue_feature = Multi Statement Value +_UI_CustomAttribute_name_feature = Name +_UI_CustomLayoutData_type = Custom Layout Data +_UI_CustomLayout_type = Custom Layout Index: src/org/eclipse/gmf/gmfgraph/provider/LabelItemProvider.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.edit/src/org/eclipse/gmf/gmfgraph/provider/LabelItemProvider.java,v retrieving revision 1.2 diff -u -r1.2 LabelItemProvider.java --- src/org/eclipse/gmf/gmfgraph/provider/LabelItemProvider.java 5 Jan 2006 17:33:16 -0000 1.2 +++ src/org/eclipse/gmf/gmfgraph/provider/LabelItemProvider.java 9 Feb 2006 18:41:40 -0000 @@ -61,47 +61,68 @@ if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); + addDataPropertyDescriptor(object); + addLayoutPropertyDescriptor(object); addNamePropertyDescriptor(object); - addLayoutManagerPropertyDescriptor(object); addTextPropertyDescriptor(object); } return itemPropertyDescriptors; } /** - * This adds a property descriptor for the Name feature. + * This adds a property descriptor for the Data feature. * * * @generated */ - protected void addNamePropertyDescriptor(Object object) { + protected void addDataPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Identity_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Identity_name_feature", "_UI_Identity_type"), - GMFGraphPackage.eINSTANCE.getIdentity_Name(), + getString("_UI_Layoutable_data_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_data_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Data(), true, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null, null)); } /** - * This adds a property descriptor for the Layout Manager feature. + * This adds a property descriptor for the Layout feature. * * * @generated */ - protected void addLayoutManagerPropertyDescriptor(Object object) { + protected void addLayoutPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Figure_layoutManager_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Figure_layoutManager_feature", "_UI_Figure_type"), - GMFGraphPackage.eINSTANCE.getFigure_LayoutManager(), + getString("_UI_Layoutable_layout_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_layout_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Name feature. + * + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Identity_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Identity_name_feature", "_UI_Identity_type"), + GMFGraphPackage.eINSTANCE.getIdentity_Name(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, @@ -139,6 +160,8 @@ public Collection getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Data()); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Layout()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_Children()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor()); @@ -201,7 +224,6 @@ switch (notification.getFeatureID(Label.class)) { case GMFGraphPackage.LABEL__NAME: - case GMFGraphPackage.LABEL__LAYOUT_MANAGER: case GMFGraphPackage.LABEL__TEXT: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; @@ -234,6 +256,36 @@ newChildDescriptors.add (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createGridLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createBorderLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createGridLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createBorderLayout())); + + newChildDescriptors.add + (createChildParameter (GMFGraphPackage.eINSTANCE.getFigure_Children(), GMFGraphFactory.eINSTANCE.createFigureRef())); Index: src/org/eclipse/gmf/gmfgraph/provider/CustomFigureItemProvider.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.edit/src/org/eclipse/gmf/gmfgraph/provider/CustomFigureItemProvider.java,v retrieving revision 1.2 diff -u -r1.2 CustomFigureItemProvider.java --- src/org/eclipse/gmf/gmfgraph/provider/CustomFigureItemProvider.java 5 Jan 2006 17:33:16 -0000 1.2 +++ src/org/eclipse/gmf/gmfgraph/provider/CustomFigureItemProvider.java 9 Feb 2006 18:41:40 -0000 @@ -61,8 +61,9 @@ if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); + addDataPropertyDescriptor(object); + addLayoutPropertyDescriptor(object); addNamePropertyDescriptor(object); - addLayoutManagerPropertyDescriptor(object); addQualifiedClassNamePropertyDescriptor(object); addBundleNamePropertyDescriptor(object); } @@ -70,39 +71,59 @@ } /** - * This adds a property descriptor for the Name feature. + * This adds a property descriptor for the Data feature. * * * @generated */ - protected void addNamePropertyDescriptor(Object object) { + protected void addDataPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Identity_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Identity_name_feature", "_UI_Identity_type"), - GMFGraphPackage.eINSTANCE.getIdentity_Name(), + getString("_UI_Layoutable_data_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_data_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Data(), true, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null, null)); } /** - * This adds a property descriptor for the Layout Manager feature. + * This adds a property descriptor for the Layout feature. * * * @generated */ - protected void addLayoutManagerPropertyDescriptor(Object object) { + protected void addLayoutPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Figure_layoutManager_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Figure_layoutManager_feature", "_UI_Figure_type"), - GMFGraphPackage.eINSTANCE.getFigure_LayoutManager(), + getString("_UI_Layoutable_layout_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_layout_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Name feature. + * + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Identity_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Identity_name_feature", "_UI_Identity_type"), + GMFGraphPackage.eINSTANCE.getIdentity_Name(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, @@ -160,6 +181,8 @@ public Collection getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Data()); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Layout()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_Children()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor()); @@ -222,7 +245,6 @@ switch (notification.getFeatureID(CustomFigure.class)) { case GMFGraphPackage.CUSTOM_FIGURE__NAME: - case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT_MANAGER: case GMFGraphPackage.CUSTOM_FIGURE__QUALIFIED_CLASS_NAME: case GMFGraphPackage.CUSTOM_FIGURE__BUNDLE_NAME: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); @@ -256,6 +278,36 @@ newChildDescriptors.add (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createGridLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createBorderLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createGridLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createBorderLayout())); + + newChildDescriptors.add + (createChildParameter (GMFGraphPackage.eINSTANCE.getFigure_Children(), GMFGraphFactory.eINSTANCE.createFigureRef())); Index: src/org/eclipse/gmf/gmfgraph/provider/LabeledContainerItemProvider.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.edit/src/org/eclipse/gmf/gmfgraph/provider/LabeledContainerItemProvider.java,v retrieving revision 1.2 diff -u -r1.2 LabeledContainerItemProvider.java --- src/org/eclipse/gmf/gmfgraph/provider/LabeledContainerItemProvider.java 5 Jan 2006 17:33:16 -0000 1.2 +++ src/org/eclipse/gmf/gmfgraph/provider/LabeledContainerItemProvider.java 9 Feb 2006 18:41:40 -0000 @@ -61,46 +61,67 @@ if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); + addDataPropertyDescriptor(object); + addLayoutPropertyDescriptor(object); addNamePropertyDescriptor(object); - addLayoutManagerPropertyDescriptor(object); } return itemPropertyDescriptors; } /** - * This adds a property descriptor for the Name feature. + * This adds a property descriptor for the Data feature. * * * @generated */ - protected void addNamePropertyDescriptor(Object object) { + protected void addDataPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Identity_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Identity_name_feature", "_UI_Identity_type"), - GMFGraphPackage.eINSTANCE.getIdentity_Name(), + getString("_UI_Layoutable_data_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_data_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Data(), true, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null, null)); } /** - * This adds a property descriptor for the Layout Manager feature. + * This adds a property descriptor for the Layout feature. * * * @generated */ - protected void addLayoutManagerPropertyDescriptor(Object object) { + protected void addLayoutPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Figure_layoutManager_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Figure_layoutManager_feature", "_UI_Figure_type"), - GMFGraphPackage.eINSTANCE.getFigure_LayoutManager(), + getString("_UI_Layoutable_layout_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_layout_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Name feature. + * + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Identity_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Identity_name_feature", "_UI_Identity_type"), + GMFGraphPackage.eINSTANCE.getIdentity_Name(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, @@ -118,6 +139,8 @@ public Collection getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Data()); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Layout()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_Children()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor()); @@ -180,7 +203,6 @@ switch (notification.getFeatureID(LabeledContainer.class)) { case GMFGraphPackage.LABELED_CONTAINER__NAME: - case GMFGraphPackage.LABELED_CONTAINER__LAYOUT_MANAGER: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; case GMFGraphPackage.LABELED_CONTAINER__CHILDREN: @@ -212,6 +234,36 @@ newChildDescriptors.add (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createGridLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createBorderLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createGridLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createBorderLayout())); + + newChildDescriptors.add + (createChildParameter (GMFGraphPackage.eINSTANCE.getFigure_Children(), GMFGraphFactory.eINSTANCE.createFigureRef())); Index: src/org/eclipse/gmf/gmfgraph/provider/FigureRefItemProvider.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.edit/src/org/eclipse/gmf/gmfgraph/provider/FigureRefItemProvider.java,v retrieving revision 1.1 diff -u -r1.1 FigureRefItemProvider.java --- src/org/eclipse/gmf/gmfgraph/provider/FigureRefItemProvider.java 6 Dec 2005 22:12:04 -0000 1.1 +++ src/org/eclipse/gmf/gmfgraph/provider/FigureRefItemProvider.java 9 Feb 2006 18:41:40 -0000 @@ -13,6 +13,8 @@ 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.ecore.EStructuralFeature; + import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,6 +22,7 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; import org.eclipse.emf.edit.provider.ITreeItemContentProvider; import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.gmf.gmfgraph.GMFGraphFactory; import org.eclipse.gmf.gmfgraph.GMFGraphPackage; /** @@ -56,12 +59,54 @@ if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); + addDataPropertyDescriptor(object); + addLayoutPropertyDescriptor(object); addFigurePropertyDescriptor(object); } return itemPropertyDescriptors; } /** + * This adds a property descriptor for the Data feature. + * + * + * @generated + */ + protected void addDataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Layoutable_data_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_data_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Layout feature. + * + * + * @generated + */ + protected void addLayoutPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Layoutable_layout_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_layout_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + true, + null, + null, + null)); + } + + /** * This adds a property descriptor for the Figure feature. * * @@ -82,6 +127,35 @@ } /** + * 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}. + * + * + * @generated + */ + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Data()); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Layout()); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** * This returns FigureRef.gif. * * @@ -122,6 +196,36 @@ */ protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createGridLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createBorderLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createGridLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createBorderLayout())); } /** Index: src/org/eclipse/gmf/gmfgraph/provider/ShapeItemProvider.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.edit/src/org/eclipse/gmf/gmfgraph/provider/ShapeItemProvider.java,v retrieving revision 1.4 diff -u -r1.4 ShapeItemProvider.java --- src/org/eclipse/gmf/gmfgraph/provider/ShapeItemProvider.java 5 Jan 2006 17:33:16 -0000 1.4 +++ src/org/eclipse/gmf/gmfgraph/provider/ShapeItemProvider.java 9 Feb 2006 18:41:41 -0000 @@ -61,8 +61,9 @@ if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); + addDataPropertyDescriptor(object); + addLayoutPropertyDescriptor(object); addNamePropertyDescriptor(object); - addLayoutManagerPropertyDescriptor(object); addOutlinePropertyDescriptor(object); addFillPropertyDescriptor(object); addLineWidthPropertyDescriptor(object); @@ -75,39 +76,59 @@ } /** - * This adds a property descriptor for the Name feature. + * This adds a property descriptor for the Data feature. * * * @generated */ - protected void addNamePropertyDescriptor(Object object) { + protected void addDataPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Identity_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Identity_name_feature", "_UI_Identity_type"), - GMFGraphPackage.eINSTANCE.getIdentity_Name(), + getString("_UI_Layoutable_data_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_data_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Data(), true, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null, null)); } /** - * This adds a property descriptor for the Layout Manager feature. + * This adds a property descriptor for the Layout feature. * * * @generated */ - protected void addLayoutManagerPropertyDescriptor(Object object) { + protected void addLayoutPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Figure_layoutManager_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Figure_layoutManager_feature", "_UI_Figure_type"), - GMFGraphPackage.eINSTANCE.getFigure_LayoutManager(), + getString("_UI_Layoutable_layout_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Layoutable_layout_feature", "_UI_Layoutable_type"), + GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Name feature. + * + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Identity_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Identity_name_feature", "_UI_Identity_type"), + GMFGraphPackage.eINSTANCE.getIdentity_Name(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, @@ -265,6 +286,8 @@ public Collection getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Data()); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getLayoutable_Layout()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_Children()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor()); childrenFeatures.add(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor()); @@ -317,7 +340,6 @@ switch (notification.getFeatureID(Shape.class)) { case GMFGraphPackage.SHAPE__NAME: - case GMFGraphPackage.SHAPE__LAYOUT_MANAGER: case GMFGraphPackage.SHAPE__OUTLINE: case GMFGraphPackage.SHAPE__FILL: case GMFGraphPackage.SHAPE__LINE_WIDTH: @@ -355,6 +377,36 @@ newChildDescriptors.add (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createGridLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Data(), + GMFGraphFactory.eINSTANCE.createBorderLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayoutData())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createCustomLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createGridLayout())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getLayoutable_Layout(), + GMFGraphFactory.eINSTANCE.createBorderLayout())); + + newChildDescriptors.add + (createChildParameter (GMFGraphPackage.eINSTANCE.getFigure_Children(), GMFGraphFactory.eINSTANCE.createFigureRef())); Index: src/org/eclipse/gmf/gmfgraph/provider/GMFGraphItemProviderAdapterFactory.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.edit/src/org/eclipse/gmf/gmfgraph/provider/GMFGraphItemProviderAdapterFactory.java,v retrieving revision 1.2 diff -u -r1.2 GMFGraphItemProviderAdapterFactory.java --- src/org/eclipse/gmf/gmfgraph/provider/GMFGraphItemProviderAdapterFactory.java 5 Jan 2006 17:33:16 -0000 1.2 +++ src/org/eclipse/gmf/gmfgraph/provider/GMFGraphItemProviderAdapterFactory.java 9 Feb 2006 18:41:40 -0000 @@ -778,6 +778,182 @@ } /** + * This keeps track of the one adapter used for all {@link org.eclipse.gmf.gmfgraph.CustomLayoutData} instances. + * + * + * @generated + */ + protected CustomLayoutDataItemProvider customLayoutDataItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.gmf.gmfgraph.CustomLayoutData}. + * + * + * @generated + */ + public Adapter createCustomLayoutDataAdapter() { + if (customLayoutDataItemProvider == null) { + customLayoutDataItemProvider = new CustomLayoutDataItemProvider(this); + } + + return customLayoutDataItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.gmf.gmfgraph.GridLayoutData} instances. + * + * + * @generated + */ + protected GridLayoutDataItemProvider gridLayoutDataItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.gmf.gmfgraph.GridLayoutData}. + * + * + * @generated + */ + public Adapter createGridLayoutDataAdapter() { + if (gridLayoutDataItemProvider == null) { + gridLayoutDataItemProvider = new GridLayoutDataItemProvider(this); + } + + return gridLayoutDataItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.gmf.gmfgraph.BorderLayoutData} instances. + * + * + * @generated + */ + protected BorderLayoutDataItemProvider borderLayoutDataItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.gmf.gmfgraph.BorderLayoutData}. + * + * + * @generated + */ + public Adapter createBorderLayoutDataAdapter() { + if (borderLayoutDataItemProvider == null) { + borderLayoutDataItemProvider = new BorderLayoutDataItemProvider(this); + } + + return borderLayoutDataItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.gmf.gmfgraph.CustomLayout} instances. + * + * + * @generated + */ + protected CustomLayoutItemProvider customLayoutItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.gmf.gmfgraph.CustomLayout}. + * + * + * @generated + */ + public Adapter createCustomLayoutAdapter() { + if (customLayoutItemProvider == null) { + customLayoutItemProvider = new CustomLayoutItemProvider(this); + } + + return customLayoutItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.gmf.gmfgraph.GridLayout} instances. + * + * + * @generated + */ + protected GridLayoutItemProvider gridLayoutItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.gmf.gmfgraph.GridLayout}. + * + * + * @generated + */ + public Adapter createGridLayoutAdapter() { + if (gridLayoutItemProvider == null) { + gridLayoutItemProvider = new GridLayoutItemProvider(this); + } + + return gridLayoutItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.gmf.gmfgraph.BorderLayout} instances. + * + * + * @generated + */ + protected BorderLayoutItemProvider borderLayoutItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.gmf.gmfgraph.BorderLayout}. + * + * + * @generated + */ + public Adapter createBorderLayoutAdapter() { + if (borderLayoutItemProvider == null) { + borderLayoutItemProvider = new BorderLayoutItemProvider(this); + } + + return borderLayoutItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.gmf.gmfgraph.CustomConfigurableClass} instances. + * + * + * @generated + */ + protected CustomConfigurableClassItemProvider customConfigurableClassItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.gmf.gmfgraph.CustomConfigurableClass}. + * + * + * @generated + */ + public Adapter createCustomConfigurableClassAdapter() { + if (customConfigurableClassItemProvider == null) { + customConfigurableClassItemProvider = new CustomConfigurableClassItemProvider(this); + } + + return customConfigurableClassItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.gmf.gmfgraph.CustomAttribute} instances. + * + * + * @generated + */ + protected CustomAttributeItemProvider customAttributeItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.gmf.gmfgraph.CustomAttribute}. + * + * + * @generated + */ + public Adapter createCustomAttributeAdapter() { + if (customAttributeItemProvider == null) { + customAttributeItemProvider = new CustomAttributeItemProvider(this); + } + + return customAttributeItemProvider; + } + + /** * This returns the root adapter factory that contains this factory. * * @@ -905,6 +1081,14 @@ if (marginBorderItemProvider != null) marginBorderItemProvider.dispose(); if (compoundBorderItemProvider != null) compoundBorderItemProvider.dispose(); if (customBorderItemProvider != null) customBorderItemProvider.dispose(); + if (customLayoutDataItemProvider != null) customLayoutDataItemProvider.dispose(); + if (gridLayoutDataItemProvider != null) gridLayoutDataItemProvider.dispose(); + if (borderLayoutDataItemProvider != null) borderLayoutDataItemProvider.dispose(); + if (customLayoutItemProvider != null) customLayoutItemProvider.dispose(); + if (gridLayoutItemProvider != null) gridLayoutItemProvider.dispose(); + if (borderLayoutItemProvider != null) borderLayoutItemProvider.dispose(); + if (customConfigurableClassItemProvider != null) customConfigurableClassItemProvider.dispose(); + if (customAttributeItemProvider != null) customAttributeItemProvider.dispose(); } } Index: icons/full/ctool16/CreateBorderLayout_spacing_Dimension.gif =================================================================== RCS file: icons/full/ctool16/CreateBorderLayout_spacing_Dimension.gif diff -N icons/full/ctool16/CreateBorderLayout_spacing_Dimension.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateBorderLayout_spacing_Dimension.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ÀÀÀœœœ€€€™3fÿÿ_Ÿ_?ÿß?€€€‚Ö¬SÆŒ9¬s,†Yº—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: icons/full/obj16/GridLayout.gif =================================================================== RCS file: icons/full/obj16/GridLayout.gif diff -N icons/full/obj16/GridLayout.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/GridLayout.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿÀÀÀÌfÌ€€€@@@!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: icons/full/ctool16/CreateLayoutable_layout_CustomLayout.gif =================================================================== RCS file: icons/full/ctool16/CreateLayoutable_layout_CustomLayout.gif diff -N icons/full/ctool16/CreateLayoutable_layout_CustomLayout.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateLayoutable_layout_CustomLayout.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ûõõìÅÅߟŸÒyyÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœÒ¦y@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: icons/full/obj16/BorderLayout.gif =================================================================== RCS file: icons/full/obj16/BorderLayout.gif diff -N icons/full/obj16/BorderLayout.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/BorderLayout.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿ‚Ö¬SÆŒ9¬s,†Y!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: src/org/eclipse/gmf/gmfgraph/provider/CustomConfigurableClassItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/CustomConfigurableClassItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/CustomConfigurableClassItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/CustomConfigurableClassItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,199 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.CustomConfigurableClass; +import org.eclipse.gmf.gmfgraph.GMFGraphFactory; +import org.eclipse.gmf.gmfgraph.GMFGraphPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.CustomConfigurableClass} object. + * + * + * @generated + */ +public class CustomConfigurableClassItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public CustomConfigurableClassItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + 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}. + * + * + * @generated + */ + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getCustomConfigurableClass_Attributes()); + } + return childrenFeatures; + } + + /** + * This returns CustomConfigurableClass.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/CustomConfigurableClass"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((CustomConfigurableClass)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_CustomConfigurableClass_type") : + getString("_UI_CustomConfigurableClass_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(CustomConfigurableClass.class)) { + case GMFGraphPackage.CUSTOM_CONFIGURABLE_CLASS__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.CUSTOM_CONFIGURABLE_CLASS__BUNDLE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case GMFGraphPackage.CUSTOM_CONFIGURABLE_CLASS__ATTRIBUTES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getCustomConfigurableClass_Attributes(), + GMFGraphFactory.eINSTANCE.createCustomAttribute())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: icons/full/obj16/CustomLayoutData.gif =================================================================== RCS file: icons/full/obj16/CustomLayoutData.gif diff -N icons/full/obj16/CustomLayoutData.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/CustomLayoutData.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿÀÀÀœœœ€€€3™™!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: src/org/eclipse/gmf/gmfgraph/provider/LayoutItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/LayoutItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/LayoutItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/LayoutItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,174 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.GMFGraphPackage; +import org.eclipse.gmf.gmfgraph.Layout; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.Layout} object. + * + * + * @generated + */ +public class LayoutItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public LayoutItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns Layout.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/Layout"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((Layout)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_Layout_type") : + getString("_UI_Layout_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Layout.class)) { + case GMFGraphPackage.LAYOUT__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.LAYOUT__BUNDLE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: src/org/eclipse/gmf/gmfgraph/provider/CustomAttributeItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/CustomAttributeItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/CustomAttributeItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/CustomAttributeItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,240 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.CustomAttribute; +import org.eclipse.gmf.gmfgraph.GMFGraphPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.CustomAttribute} object. + * + * + * @generated + */ +public class CustomAttributeItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public CustomAttributeItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + addTypePropertyDescriptor(object); + addValuePropertyDescriptor(object); + addDirectAccessPropertyDescriptor(object); + addMultiStatementValuePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomAttribute_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomAttribute_name_feature", "_UI_CustomAttribute_type"), + GMFGraphPackage.eINSTANCE.getCustomAttribute_Name(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Type feature. + * + * + * @generated + */ + protected void addTypePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomAttribute_type_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomAttribute_type_feature", "_UI_CustomAttribute_type"), + GMFGraphPackage.eINSTANCE.getCustomAttribute_Type(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Value feature. + * + * + * @generated + */ + protected void addValuePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomAttribute_value_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomAttribute_value_feature", "_UI_CustomAttribute_type"), + GMFGraphPackage.eINSTANCE.getCustomAttribute_Value(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Direct Access feature. + * + * + * @generated + */ + protected void addDirectAccessPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomAttribute_directAccess_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomAttribute_directAccess_feature", "_UI_CustomAttribute_type"), + GMFGraphPackage.eINSTANCE.getCustomAttribute_DirectAccess(), + true, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Multi Statement Value feature. + * + * + * @generated + */ + protected void addMultiStatementValuePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomAttribute_multiStatementValue_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomAttribute_multiStatementValue_feature", "_UI_CustomAttribute_type"), + GMFGraphPackage.eINSTANCE.getCustomAttribute_MultiStatementValue(), + true, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns CustomAttribute.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/CustomAttribute"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((CustomAttribute)object).getName(); + return label == null || label.length() == 0 ? + getString("_UI_CustomAttribute_type") : + getString("_UI_CustomAttribute_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(CustomAttribute.class)) { + case GMFGraphPackage.CUSTOM_ATTRIBUTE__NAME: + case GMFGraphPackage.CUSTOM_ATTRIBUTE__TYPE: + case GMFGraphPackage.CUSTOM_ATTRIBUTE__VALUE: + case GMFGraphPackage.CUSTOM_ATTRIBUTE__DIRECT_ACCESS: + case GMFGraphPackage.CUSTOM_ATTRIBUTE__MULTI_STATEMENT_VALUE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: icons/full/ctool16/CreateGridLayoutData_sizeHint_Dimension.gif =================================================================== RCS file: icons/full/ctool16/CreateGridLayoutData_sizeHint_Dimension.gif diff -N icons/full/ctool16/CreateGridLayoutData_sizeHint_Dimension.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateGridLayoutData_sizeHint_Dimension.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ÀÀÀœœœ€€€™3fÿÿ_Ÿ_?ÿß?€€€ÀÀÀfÌf€€€@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: src/org/eclipse/gmf/gmfgraph/provider/BorderLayoutItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/BorderLayoutItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/BorderLayoutItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/BorderLayoutItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,199 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.BorderLayout; +import org.eclipse.gmf.gmfgraph.GMFGraphFactory; +import org.eclipse.gmf.gmfgraph.GMFGraphPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.BorderLayout} object. + * + * + * @generated + */ +public class BorderLayoutItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public BorderLayoutItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + 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}. + * + * + * @generated + */ + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getBorderLayout_Spacing()); + } + return childrenFeatures; + } + + /** + * This returns BorderLayout.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/BorderLayout"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((BorderLayout)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_BorderLayout_type") : + getString("_UI_BorderLayout_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(BorderLayout.class)) { + case GMFGraphPackage.BORDER_LAYOUT__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.BORDER_LAYOUT__BUNDLE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case GMFGraphPackage.BORDER_LAYOUT__SPACING: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getBorderLayout_Spacing(), + GMFGraphFactory.eINSTANCE.createDimension())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: src/org/eclipse/gmf/gmfgraph/provider/BorderLayoutDataItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/BorderLayoutDataItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/BorderLayoutDataItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/BorderLayoutDataItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,240 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.Alignment; +import org.eclipse.gmf.gmfgraph.BorderLayoutData; +import org.eclipse.gmf.gmfgraph.GMFGraphPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.BorderLayoutData} object. + * + * + * @generated + */ +public class BorderLayoutDataItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public BorderLayoutDataItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + addOwnerPropertyDescriptor(object); + addAlignmentPropertyDescriptor(object); + addVerticalPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Owner feature. + * + * + * @generated + */ + protected void addOwnerPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_LayoutData_owner_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_LayoutData_owner_feature", "_UI_LayoutData_type"), + GMFGraphPackage.eINSTANCE.getLayoutData_Owner(), + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Alignment feature. + * + * + * @generated + */ + protected void addAlignmentPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_BorderLayoutData_alignment_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_BorderLayoutData_alignment_feature", "_UI_BorderLayoutData_type"), + GMFGraphPackage.eINSTANCE.getBorderLayoutData_Alignment(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Vertical feature. + * + * + * @generated + */ + protected void addVerticalPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_BorderLayoutData_vertical_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_BorderLayoutData_vertical_feature", "_UI_BorderLayoutData_type"), + GMFGraphPackage.eINSTANCE.getBorderLayoutData_Vertical(), + true, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns BorderLayoutData.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/BorderLayoutData"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((BorderLayoutData)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_BorderLayoutData_type") : + getString("_UI_BorderLayoutData_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(BorderLayoutData.class)) { + case GMFGraphPackage.BORDER_LAYOUT_DATA__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.BORDER_LAYOUT_DATA__BUNDLE_NAME: + case GMFGraphPackage.BORDER_LAYOUT_DATA__ALIGNMENT: + case GMFGraphPackage.BORDER_LAYOUT_DATA__VERTICAL: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: icons/full/ctool16/CreateGridLayout_spacing_Dimension.gif =================================================================== RCS file: icons/full/ctool16/CreateGridLayout_spacing_Dimension.gif diff -N icons/full/ctool16/CreateGridLayout_spacing_Dimension.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateGridLayout_spacing_Dimension.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ÀÀÀœœœ€€€™3fÿÿ_Ÿ_?ÿß?€€€ÀÀÀÌfÌ€€€@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: src/org/eclipse/gmf/gmfgraph/provider/CustomLayoutItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/CustomLayoutItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/CustomLayoutItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/CustomLayoutItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,199 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.CustomLayout; +import org.eclipse.gmf.gmfgraph.GMFGraphFactory; +import org.eclipse.gmf.gmfgraph.GMFGraphPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.CustomLayout} object. + * + * + * @generated + */ +public class CustomLayoutItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public CustomLayoutItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + 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}. + * + * + * @generated + */ + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getCustomConfigurableClass_Attributes()); + } + return childrenFeatures; + } + + /** + * This returns CustomLayout.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/CustomLayout"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((CustomLayout)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_CustomLayout_type") : + getString("_UI_CustomLayout_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(CustomLayout.class)) { + case GMFGraphPackage.CUSTOM_LAYOUT__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.CUSTOM_LAYOUT__BUNDLE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case GMFGraphPackage.CUSTOM_LAYOUT__ATTRIBUTES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getCustomConfigurableClass_Attributes(), + GMFGraphFactory.eINSTANCE.createCustomAttribute())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: icons/full/obj16/CustomLayout.gif =================================================================== RCS file: icons/full/obj16/CustomLayout.gif diff -N icons/full/obj16/CustomLayout.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/CustomLayout.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿûõõìÅÅߟŸÒyy!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: icons/full/obj16/Layout.gif =================================================================== RCS file: icons/full/obj16/Layout.gif diff -N icons/full/obj16/Layout.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/Layout.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿ¼è¼ŒÙŒfÌf@À@!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: icons/full/ctool16/CreateLayoutable_layout_Layout.gif =================================================================== RCS file: icons/full/ctool16/CreateLayoutable_layout_Layout.gif diff -N icons/full/ctool16/CreateLayoutable_layout_Layout.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateLayoutable_layout_Layout.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_¼è¼ŒÙŒfÌf@À@ÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœÒ¦y@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: icons/full/obj16/CustomConfigurableClass.gif =================================================================== RCS file: icons/full/obj16/CustomConfigurableClass.gif diff -N icons/full/obj16/CustomConfigurableClass.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/CustomConfigurableClass.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿÀÀÀœœœ€€€ÆSŒ!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: icons/full/ctool16/CreateLayoutable_layout_CustomLayoutData.gif =================================================================== RCS file: icons/full/ctool16/CreateLayoutable_layout_CustomLayoutData.gif diff -N icons/full/ctool16/CreateLayoutable_layout_CustomLayoutData.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateLayoutable_layout_CustomLayoutData.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ÀÀÀœœœ€€€3™™ÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœÒ¦y@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: icons/full/ctool16/CreateLayoutable_layout_GridLayout.gif =================================================================== RCS file: icons/full/ctool16/CreateLayoutable_layout_GridLayout.gif diff -N icons/full/ctool16/CreateLayoutable_layout_GridLayout.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateLayoutable_layout_GridLayout.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ÀÀÀÌfÌ€€€@@@ÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœÒ¦y@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: icons/full/ctool16/CreateGridLayout_margins_Dimension.gif =================================================================== RCS file: icons/full/ctool16/CreateGridLayout_margins_Dimension.gif diff -N icons/full/ctool16/CreateGridLayout_margins_Dimension.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateGridLayout_margins_Dimension.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ÀÀÀœœœ€€€™3fÿÿ_Ÿ_?ÿß?€€€ÀÀÀÌfÌ€€€@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: icons/full/ctool16/CreateCustomConfigurableClass_attributes_CustomAttribute.gif =================================================================== RCS file: icons/full/ctool16/CreateCustomConfigurableClass_attributes_CustomAttribute.gif diff -N icons/full/ctool16/CreateCustomConfigurableClass_attributes_CustomAttribute.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateCustomConfigurableClass_attributes_CustomAttribute.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_‚ÖÖSÆÆ9¬¬,††ÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœ€€€ÆSŒº—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: icons/full/obj16/CustomAttribute.gif =================================================================== RCS file: icons/full/obj16/CustomAttribute.gif diff -N icons/full/obj16/CustomAttribute.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/CustomAttribute.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿ‚ÖÖSÆÆ9¬¬,††!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: src/org/eclipse/gmf/gmfgraph/provider/GridLayoutDataItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/GridLayoutDataItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/GridLayoutDataItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/GridLayoutDataItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,374 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.GMFGraphFactory; +import org.eclipse.gmf.gmfgraph.GMFGraphPackage; +import org.eclipse.gmf.gmfgraph.GridLayoutData; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.GridLayoutData} object. + * + * + * @generated + */ +public class GridLayoutDataItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public GridLayoutDataItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + addOwnerPropertyDescriptor(object); + addGrabExcessHorizontalSpacePropertyDescriptor(object); + addGrabExcessVerticalSpacePropertyDescriptor(object); + addVerticalAlignmentPropertyDescriptor(object); + addHorizontalAlignmentPropertyDescriptor(object); + addVerticalSpanPropertyDescriptor(object); + addHorizontalSpanPropertyDescriptor(object); + addHorizontalIndentPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Owner feature. + * + * + * @generated + */ + protected void addOwnerPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_LayoutData_owner_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_LayoutData_owner_feature", "_UI_LayoutData_type"), + GMFGraphPackage.eINSTANCE.getLayoutData_Owner(), + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Grab Excess Horizontal Space feature. + * + * + * @generated + */ + protected void addGrabExcessHorizontalSpacePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayoutData_grabExcessHorizontalSpace_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayoutData_grabExcessHorizontalSpace_feature", "_UI_GridLayoutData_type"), + GMFGraphPackage.eINSTANCE.getGridLayoutData_GrabExcessHorizontalSpace(), + true, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Grab Excess Vertical Space feature. + * + * + * @generated + */ + protected void addGrabExcessVerticalSpacePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayoutData_grabExcessVerticalSpace_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayoutData_grabExcessVerticalSpace_feature", "_UI_GridLayoutData_type"), + GMFGraphPackage.eINSTANCE.getGridLayoutData_GrabExcessVerticalSpace(), + true, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Vertical Alignment feature. + * + * + * @generated + */ + protected void addVerticalAlignmentPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayoutData_verticalAlignment_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayoutData_verticalAlignment_feature", "_UI_GridLayoutData_type"), + GMFGraphPackage.eINSTANCE.getGridLayoutData_VerticalAlignment(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Horizontal Alignment feature. + * + * + * @generated + */ + protected void addHorizontalAlignmentPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayoutData_horizontalAlignment_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayoutData_horizontalAlignment_feature", "_UI_GridLayoutData_type"), + GMFGraphPackage.eINSTANCE.getGridLayoutData_HorizontalAlignment(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Vertical Span feature. + * + * + * @generated + */ + protected void addVerticalSpanPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayoutData_verticalSpan_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayoutData_verticalSpan_feature", "_UI_GridLayoutData_type"), + GMFGraphPackage.eINSTANCE.getGridLayoutData_VerticalSpan(), + true, + ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Horizontal Span feature. + * + * + * @generated + */ + protected void addHorizontalSpanPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayoutData_horizontalSpan_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayoutData_horizontalSpan_feature", "_UI_GridLayoutData_type"), + GMFGraphPackage.eINSTANCE.getGridLayoutData_HorizontalSpan(), + true, + ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Horizontal Indent feature. + * + * + * @generated + */ + protected void addHorizontalIndentPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayoutData_horizontalIndent_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayoutData_horizontalIndent_feature", "_UI_GridLayoutData_type"), + GMFGraphPackage.eINSTANCE.getGridLayoutData_HorizontalIndent(), + true, + ItemPropertyDescriptor.INTEGRAL_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}. + * + * + * @generated + */ + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getGridLayoutData_SizeHint()); + } + return childrenFeatures; + } + + /** + * This returns GridLayoutData.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/GridLayoutData"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((GridLayoutData)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_GridLayoutData_type") : + getString("_UI_GridLayoutData_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(GridLayoutData.class)) { + case GMFGraphPackage.GRID_LAYOUT_DATA__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.GRID_LAYOUT_DATA__BUNDLE_NAME: + case GMFGraphPackage.GRID_LAYOUT_DATA__GRAB_EXCESS_HORIZONTAL_SPACE: + case GMFGraphPackage.GRID_LAYOUT_DATA__GRAB_EXCESS_VERTICAL_SPACE: + case GMFGraphPackage.GRID_LAYOUT_DATA__VERTICAL_ALIGNMENT: + case GMFGraphPackage.GRID_LAYOUT_DATA__HORIZONTAL_ALIGNMENT: + case GMFGraphPackage.GRID_LAYOUT_DATA__VERTICAL_SPAN: + case GMFGraphPackage.GRID_LAYOUT_DATA__HORIZONTAL_SPAN: + case GMFGraphPackage.GRID_LAYOUT_DATA__HORIZONTAL_INDENT: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case GMFGraphPackage.GRID_LAYOUT_DATA__SIZE_HINT: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getGridLayoutData_SizeHint(), + GMFGraphFactory.eINSTANCE.createDimension())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: icons/full/obj16/LayoutData.gif =================================================================== RCS file: icons/full/obj16/LayoutData.gif diff -N icons/full/obj16/LayoutData.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/LayoutData.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿûõûìÅìߟßÒyÒ!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: src/org/eclipse/gmf/gmfgraph/provider/CustomLayoutDataItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/CustomLayoutDataItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/CustomLayoutDataItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/CustomLayoutDataItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,199 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.CustomLayoutData; +import org.eclipse.gmf.gmfgraph.GMFGraphFactory; +import org.eclipse.gmf.gmfgraph.GMFGraphPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.CustomLayoutData} object. + * + * + * @generated + */ +public class CustomLayoutDataItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public CustomLayoutDataItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + 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}. + * + * + * @generated + */ + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getCustomConfigurableClass_Attributes()); + } + return childrenFeatures; + } + + /** + * This returns CustomLayoutData.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/CustomLayoutData"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((CustomLayoutData)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_CustomLayoutData_type") : + getString("_UI_CustomLayoutData_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(CustomLayoutData.class)) { + case GMFGraphPackage.CUSTOM_LAYOUT_DATA__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.CUSTOM_LAYOUT_DATA__BUNDLE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case GMFGraphPackage.CUSTOM_LAYOUT_DATA__ATTRIBUTES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getCustomConfigurableClass_Attributes(), + GMFGraphFactory.eINSTANCE.createCustomAttribute())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: icons/full/obj16/BorderLayoutData.gif =================================================================== RCS file: icons/full/obj16/BorderLayoutData.gif diff -N icons/full/obj16/BorderLayoutData.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/BorderLayoutData.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿè¼ÒÙŒ²Ìf™À@€!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: icons/full/ctool16/CreateLayoutable_data_LayoutData.gif =================================================================== RCS file: icons/full/ctool16/CreateLayoutable_data_LayoutData.gif diff -N icons/full/ctool16/CreateLayoutable_data_LayoutData.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateLayoutable_data_LayoutData.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ûõûìÅìߟßÒyÒÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœÒ¦y@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: src/org/eclipse/gmf/gmfgraph/provider/LayoutDataItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/LayoutDataItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/LayoutDataItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/LayoutDataItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,195 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.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.gmfgraph.GMFGraphPackage; +import org.eclipse.gmf.gmfgraph.LayoutData; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.LayoutData} object. + * + * + * @generated + */ +public class LayoutDataItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public LayoutDataItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + addOwnerPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Owner feature. + * + * + * @generated + */ + protected void addOwnerPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_LayoutData_owner_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_LayoutData_owner_feature", "_UI_LayoutData_type"), + GMFGraphPackage.eINSTANCE.getLayoutData_Owner(), + true, + null, + null, + null)); + } + + /** + * This returns LayoutData.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/LayoutData"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((LayoutData)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_LayoutData_type") : + getString("_UI_LayoutData_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(LayoutData.class)) { + case GMFGraphPackage.LAYOUT_DATA__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.LAYOUT_DATA__BUNDLE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: icons/full/obj16/GridLayoutData.gif =================================================================== RCS file: icons/full/obj16/GridLayoutData.gif diff -N icons/full/obj16/GridLayoutData.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/obj16/GridLayoutData.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89a³€€€€ÀÀÀ€€€ÿÿÀÀÀÿÿÿÿÿÿÀÀÀfÌf€€€@@@!ù ,.0ÉI«½8ëôö$áqE·5Úd`J ¡õ<.ñ–&Õ6wŒ©)-§‰FÄ‘; Index: icons/full/ctool16/CreateLayoutable_data_BorderLayoutData.gif =================================================================== RCS file: icons/full/ctool16/CreateLayoutable_data_BorderLayoutData.gif diff -N icons/full/ctool16/CreateLayoutable_data_BorderLayoutData.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateLayoutable_data_BorderLayoutData.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_è¼ÒÙŒ²Ìf™À@€ÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœÒ¦y@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: src/org/eclipse/gmf/gmfgraph/provider/GridLayoutItemProvider.java =================================================================== RCS file: src/org/eclipse/gmf/gmfgraph/provider/GridLayoutItemProvider.java diff -N src/org/eclipse/gmf/gmfgraph/provider/GridLayoutItemProvider.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/gmf/gmfgraph/provider/GridLayoutItemProvider.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,286 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.gmf.gmfgraph.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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +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.gmfgraph.GMFGraphFactory; +import org.eclipse.gmf.gmfgraph.GMFGraphPackage; +import org.eclipse.gmf.gmfgraph.GridLayout; + +/** + * This is the item provider adapter for a {@link org.eclipse.gmf.gmfgraph.GridLayout} object. + * + * + * @generated + */ +public class GridLayoutItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public GridLayoutItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addQualifiedClassNamePropertyDescriptor(object); + addBundleNamePropertyDescriptor(object); + addNumColumnsPropertyDescriptor(object); + addEqualWidthPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Qualified Class Name feature. + * + * + * @generated + */ + protected void addQualifiedClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_qualifiedClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_qualifiedClassName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_QualifiedClassName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Name feature. + * + * + * @generated + */ + protected void addBundleNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_CustomClass_bundleName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_CustomClass_bundleName_feature", "_UI_CustomClass_type"), + GMFGraphPackage.eINSTANCE.getCustomClass_BundleName(), + true, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Num Columns feature. + * + * + * @generated + */ + protected void addNumColumnsPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayout_numColumns_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayout_numColumns_feature", "_UI_GridLayout_type"), + GMFGraphPackage.eINSTANCE.getGridLayout_NumColumns(), + true, + ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Equal Width feature. + * + * + * @generated + */ + protected void addEqualWidthPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_GridLayout_equalWidth_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_GridLayout_equalWidth_feature", "_UI_GridLayout_type"), + GMFGraphPackage.eINSTANCE.getGridLayout_EqualWidth(), + true, + ItemPropertyDescriptor.BOOLEAN_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}. + * + * + * @generated + */ + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getGridLayout_Margins()); + childrenFeatures.add(GMFGraphPackage.eINSTANCE.getGridLayout_Spacing()); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns GridLayout.gif. + * + * + * @generated + */ + public Object getImage(Object object) { + return getResourceLocator().getImage("full/obj16/GridLayout"); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + public String getText(Object object) { + String label = ((GridLayout)object).getQualifiedClassName(); + return label == null || label.length() == 0 ? + getString("_UI_GridLayout_type") : + getString("_UI_GridLayout_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(GridLayout.class)) { + case GMFGraphPackage.GRID_LAYOUT__QUALIFIED_CLASS_NAME: + case GMFGraphPackage.GRID_LAYOUT__BUNDLE_NAME: + case GMFGraphPackage.GRID_LAYOUT__NUM_COLUMNS: + case GMFGraphPackage.GRID_LAYOUT__EQUAL_WIDTH: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case GMFGraphPackage.GRID_LAYOUT__MARGINS: + case GMFGraphPackage.GRID_LAYOUT__SPACING: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing all of the children that can be created under this object. + * + * + * @generated + */ + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getGridLayout_Margins(), + GMFGraphFactory.eINSTANCE.createDimension())); + + newChildDescriptors.add + (createChildParameter + (GMFGraphPackage.eINSTANCE.getGridLayout_Spacing(), + GMFGraphFactory.eINSTANCE.createDimension())); + } + + /** + * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. + * + * + * @generated + */ + public String getCreateChildText(Object owner, Object feature, Object child, Collection selection) { + Object childFeature = feature; + Object childObject = child; + + boolean qualify = + childFeature == GMFGraphPackage.eINSTANCE.getGridLayout_Margins() || + childFeature == GMFGraphPackage.eINSTANCE.getGridLayout_Spacing(); + + if (qualify) { + return getString + ("_UI_CreateChild_text2", + new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); + } + return super.getCreateChildText(owner, feature, child, selection); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return GMFGraphEditPlugin.INSTANCE; + } + +} Index: icons/full/ctool16/CreateLayoutable_layout_BorderLayout.gif =================================================================== RCS file: icons/full/ctool16/CreateLayoutable_layout_BorderLayout.gif diff -N icons/full/ctool16/CreateLayoutable_layout_BorderLayout.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateLayoutable_layout_BorderLayout.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_‚Ö¬SÆŒ9¬s,†Yÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœÒ¦y@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; Index: icons/full/ctool16/CreateLayoutable_data_GridLayoutData.gif =================================================================== RCS file: icons/full/ctool16/CreateLayoutable_data_GridLayoutData.gif diff -N icons/full/ctool16/CreateLayoutable_data_GridLayoutData.gif --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ icons/full/ctool16/CreateLayoutable_data_GridLayoutData.gif 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,1 @@ +GIF89aÄÿÿÿßß¿??_ÀÀÀfÌf€€€@@@ÿÿ_Ÿ_?ÿß?€€€ÀÀÀœœœÒ¦y@@@º—&º—&µ’#®Š¥‚žy™tþýïþýïýóÏýóÏüç£û݃!ù,\ ŽdY>&™ÍÔе’?ƒŽ’tI3ó4ŒÖk’)'?ciCQ(›§ÈŽ*œÊÉF:,&ßKD8R€›è`ð¢É‡¡`FØ„|Ûm*Ëégol|‚e?‚k%!; #P org.eclipse.gmf.graphdef Index: src/org/eclipse/gmf/gmfgraph/GMFGraphFactory.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/GMFGraphFactory.java,v retrieving revision 1.2 diff -u -r1.2 GMFGraphFactory.java --- src/org/eclipse/gmf/gmfgraph/GMFGraphFactory.java 5 Jan 2006 17:33:07 -0000 1.2 +++ src/org/eclipse/gmf/gmfgraph/GMFGraphFactory.java 9 Feb 2006 18:41:44 -0000 @@ -314,6 +314,78 @@ CustomBorder createCustomBorder(); /** + * Returns a new object of class 'Custom Layout Data'. + * + * + * @return a new object of class 'Custom Layout Data'. + * @generated + */ + CustomLayoutData createCustomLayoutData(); + + /** + * Returns a new object of class 'Grid Layout Data'. + * + * + * @return a new object of class 'Grid Layout Data'. + * @generated + */ + GridLayoutData createGridLayoutData(); + + /** + * Returns a new object of class 'Border Layout Data'. + * + * + * @return a new object of class 'Border Layout Data'. + * @generated + */ + BorderLayoutData createBorderLayoutData(); + + /** + * Returns a new object of class 'Custom Layout'. + * + * + * @return a new object of class 'Custom Layout'. + * @generated + */ + CustomLayout createCustomLayout(); + + /** + * Returns a new object of class 'Grid Layout'. + * + * + * @return a new object of class 'Grid Layout'. + * @generated + */ + GridLayout createGridLayout(); + + /** + * Returns a new object of class 'Border Layout'. + * + * + * @return a new object of class 'Border Layout'. + * @generated + */ + BorderLayout createBorderLayout(); + + /** + * Returns a new object of class 'Custom Configurable Class'. + * + * + * @return a new object of class 'Custom Configurable Class'. + * @generated + */ + CustomConfigurableClass createCustomConfigurableClass(); + + /** + * Returns a new object of class 'Custom Attribute'. + * + * + * @return a new object of class 'Custom Attribute'. + * @generated + */ + CustomAttribute createCustomAttribute(); + + /** * Returns the package supported by this factory. * * Index: src/org/eclipse/gmf/gmfgraph/GMFGraphPackage.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/GMFGraphPackage.java,v retrieving revision 1.5 diff -u -r1.5 GMFGraphPackage.java --- src/org/eclipse/gmf/gmfgraph/GMFGraphPackage.java 4 Feb 2006 23:36:21 -0000 1.5 +++ src/org/eclipse/gmf/gmfgraph/GMFGraphPackage.java 9 Feb 2006 18:41:45 -0000 @@ -549,6 +549,43 @@ int GRADIENT_FACET_FEATURE_COUNT = VISUAL_FACET_FEATURE_COUNT + 1; /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.Layoutable Layoutable}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.Layoutable + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getLayoutable() + * @generated + */ + int LAYOUTABLE = 48; + + /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int LAYOUTABLE__DATA = 0; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int LAYOUTABLE__LAYOUT = 1; + + /** + * The number of structural features of the 'Layoutable' class. + * + * + * @generated + * @ordered + */ + int LAYOUTABLE_FEATURE_COUNT = 2; + + /** * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.FigureMarker Figure Marker}' class. * * @@ -559,13 +596,31 @@ int FIGURE_MARKER = 11; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int FIGURE_MARKER__DATA = LAYOUTABLE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int FIGURE_MARKER__LAYOUT = LAYOUTABLE__LAYOUT; + + /** * The number of structural features of the 'Figure Marker' class. * * * @generated * @ordered */ - int FIGURE_MARKER_FEATURE_COUNT = 0; + int FIGURE_MARKER_FEATURE_COUNT = LAYOUTABLE_FEATURE_COUNT + 0; /** * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.Figure Figure}' class. @@ -578,6 +633,24 @@ int FIGURE = 12; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int FIGURE__DATA = FIGURE_MARKER__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int FIGURE__LAYOUT = FIGURE_MARKER__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -695,32 +768,41 @@ int FIGURE__SIZE = FIGURE_MARKER_FEATURE_COUNT + 12; /** - * The feature id for the 'Layout Manager' attribute. + * The number of structural features of the 'Figure' class. * * * @generated * @ordered */ - int FIGURE__LAYOUT_MANAGER = FIGURE_MARKER_FEATURE_COUNT + 13; + int FIGURE_FEATURE_COUNT = FIGURE_MARKER_FEATURE_COUNT + 13; /** - * The number of structural features of the 'Figure' class. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.FigureRefImpl Figure Ref}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.impl.FigureRefImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getFigureRef() + * @generated + */ + int FIGURE_REF = 13; + + /** + * The feature id for the 'Data' containment reference. * * * @generated * @ordered */ - int FIGURE_FEATURE_COUNT = FIGURE_MARKER_FEATURE_COUNT + 14; + int FIGURE_REF__DATA = FIGURE_MARKER__DATA; /** - * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.FigureRefImpl Figure Ref}' class. + * The feature id for the 'Layout' containment reference. * * - * @see org.eclipse.gmf.gmfgraph.impl.FigureRefImpl - * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getFigureRef() * @generated + * @ordered */ - int FIGURE_REF = 13; + int FIGURE_REF__LAYOUT = FIGURE_MARKER__LAYOUT; /** * The feature id for the 'Figure' reference. @@ -751,6 +833,24 @@ int CONNECTION_FIGURE = 14; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int CONNECTION_FIGURE__DATA = FIGURE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int CONNECTION_FIGURE__LAYOUT = FIGURE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -868,32 +968,41 @@ int CONNECTION_FIGURE__SIZE = FIGURE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. + * The number of structural features of the 'Connection Figure' class. * * * @generated * @ordered */ - int CONNECTION_FIGURE__LAYOUT_MANAGER = FIGURE__LAYOUT_MANAGER; + int CONNECTION_FIGURE_FEATURE_COUNT = FIGURE_FEATURE_COUNT + 0; /** - * The number of structural features of the 'Connection Figure' class. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.DecorationFigure Decoration Figure}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.DecorationFigure + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getDecorationFigure() + * @generated + */ + int DECORATION_FIGURE = 15; + + /** + * The feature id for the 'Data' containment reference. * * * @generated * @ordered */ - int CONNECTION_FIGURE_FEATURE_COUNT = FIGURE_FEATURE_COUNT + 0; + int DECORATION_FIGURE__DATA = FIGURE__DATA; /** - * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.DecorationFigure Decoration Figure}' class. + * The feature id for the 'Layout' containment reference. * * - * @see org.eclipse.gmf.gmfgraph.DecorationFigure - * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getDecorationFigure() * @generated + * @ordered */ - int DECORATION_FIGURE = 15; + int DECORATION_FIGURE__LAYOUT = FIGURE__LAYOUT; /** * The feature id for the 'Name' attribute. @@ -1013,32 +1122,41 @@ int DECORATION_FIGURE__SIZE = FIGURE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. + * The number of structural features of the 'Decoration Figure' class. * * * @generated * @ordered */ - int DECORATION_FIGURE__LAYOUT_MANAGER = FIGURE__LAYOUT_MANAGER; + int DECORATION_FIGURE_FEATURE_COUNT = FIGURE_FEATURE_COUNT + 0; /** - * The number of structural features of the 'Decoration Figure' class. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.ShapeImpl Shape}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.impl.ShapeImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getShape() + * @generated + */ + int SHAPE = 16; + + /** + * The feature id for the 'Data' containment reference. * * * @generated * @ordered */ - int DECORATION_FIGURE_FEATURE_COUNT = FIGURE_FEATURE_COUNT + 0; + int SHAPE__DATA = FIGURE__DATA; /** - * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.ShapeImpl Shape}' class. + * The feature id for the 'Layout' containment reference. * * - * @see org.eclipse.gmf.gmfgraph.impl.ShapeImpl - * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getShape() * @generated + * @ordered */ - int SHAPE = 16; + int SHAPE__LAYOUT = FIGURE__LAYOUT; /** * The feature id for the 'Name' attribute. @@ -1158,15 +1276,6 @@ int SHAPE__SIZE = FIGURE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int SHAPE__LAYOUT_MANAGER = FIGURE__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -1249,6 +1358,24 @@ int LABEL = 17; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int LABEL__DATA = FIGURE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int LABEL__LAYOUT = FIGURE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -1366,15 +1493,6 @@ int LABEL__SIZE = FIGURE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int LABEL__LAYOUT_MANAGER = FIGURE__LAYOUT_MANAGER; - - /** * The feature id for the 'Text' attribute. * * @@ -1403,6 +1521,24 @@ int LABELED_CONTAINER = 18; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int LABELED_CONTAINER__DATA = FIGURE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int LABELED_CONTAINER__LAYOUT = FIGURE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -1520,32 +1656,41 @@ int LABELED_CONTAINER__SIZE = FIGURE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. + * The number of structural features of the 'Labeled Container' class. * * * @generated * @ordered */ - int LABELED_CONTAINER__LAYOUT_MANAGER = FIGURE__LAYOUT_MANAGER; + int LABELED_CONTAINER_FEATURE_COUNT = FIGURE_FEATURE_COUNT + 0; /** - * The number of structural features of the 'Labeled Container' class. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.RectangleImpl Rectangle}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.impl.RectangleImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getRectangle() + * @generated + */ + int RECTANGLE = 19; + + /** + * The feature id for the 'Data' containment reference. * * * @generated * @ordered */ - int LABELED_CONTAINER_FEATURE_COUNT = FIGURE_FEATURE_COUNT + 0; + int RECTANGLE__DATA = SHAPE__DATA; /** - * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.RectangleImpl Rectangle}' class. + * The feature id for the 'Layout' containment reference. * * - * @see org.eclipse.gmf.gmfgraph.impl.RectangleImpl - * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getRectangle() * @generated + * @ordered */ - int RECTANGLE = 19; + int RECTANGLE__LAYOUT = SHAPE__LAYOUT; /** * The feature id for the 'Name' attribute. @@ -1665,15 +1810,6 @@ int RECTANGLE__SIZE = SHAPE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int RECTANGLE__LAYOUT_MANAGER = SHAPE__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -1756,6 +1892,24 @@ int ROUNDED_RECTANGLE = 20; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int ROUNDED_RECTANGLE__DATA = SHAPE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int ROUNDED_RECTANGLE__LAYOUT = SHAPE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -1873,15 +2027,6 @@ int ROUNDED_RECTANGLE__SIZE = SHAPE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int ROUNDED_RECTANGLE__LAYOUT_MANAGER = SHAPE__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -1982,6 +2127,24 @@ int ELLIPSE = 21; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int ELLIPSE__DATA = SHAPE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int ELLIPSE__LAYOUT = SHAPE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -2099,15 +2262,6 @@ int ELLIPSE__SIZE = SHAPE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int ELLIPSE__LAYOUT_MANAGER = SHAPE__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -2190,6 +2344,24 @@ int POLYLINE = 22; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int POLYLINE__DATA = SHAPE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int POLYLINE__LAYOUT = SHAPE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -2307,15 +2479,6 @@ int POLYLINE__SIZE = SHAPE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int POLYLINE__LAYOUT_MANAGER = SHAPE__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -2407,7 +2570,25 @@ int POLYGON = 23; /** - * The feature id for the 'Name' attribute. + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int POLYGON__DATA = POLYLINE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int POLYGON__LAYOUT = POLYLINE__LAYOUT; + + /** + * The feature id for the 'Name' attribute. * * * @generated @@ -2524,15 +2705,6 @@ int POLYGON__SIZE = POLYLINE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int POLYGON__LAYOUT_MANAGER = POLYLINE__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -2624,6 +2796,24 @@ int POLYLINE_CONNECTION = 24; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int POLYLINE_CONNECTION__DATA = POLYLINE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int POLYLINE_CONNECTION__LAYOUT = POLYLINE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -2741,15 +2931,6 @@ int POLYLINE_CONNECTION__SIZE = POLYLINE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int POLYLINE_CONNECTION__LAYOUT_MANAGER = POLYLINE__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -2859,6 +3040,24 @@ int POLYLINE_DECORATION = 25; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int POLYLINE_DECORATION__DATA = POLYLINE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int POLYLINE_DECORATION__LAYOUT = POLYLINE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -2976,15 +3175,6 @@ int POLYLINE_DECORATION__SIZE = POLYLINE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int POLYLINE_DECORATION__LAYOUT_MANAGER = POLYLINE__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -3076,6 +3266,24 @@ int POLYGON_DECORATION = 26; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int POLYGON_DECORATION__DATA = POLYGON__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int POLYGON_DECORATION__LAYOUT = POLYGON__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -3193,15 +3401,6 @@ int POLYGON_DECORATION__SIZE = POLYGON__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int POLYGON_DECORATION__LAYOUT_MANAGER = POLYGON__LAYOUT_MANAGER; - - /** * The feature id for the 'Outline' attribute. * * @@ -3330,6 +3529,24 @@ int CUSTOM_FIGURE = 28; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int CUSTOM_FIGURE__DATA = FIGURE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int CUSTOM_FIGURE__LAYOUT = FIGURE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -3447,15 +3664,6 @@ int CUSTOM_FIGURE__SIZE = FIGURE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int CUSTOM_FIGURE__LAYOUT_MANAGER = FIGURE__LAYOUT_MANAGER; - - /** * The feature id for the 'Qualified Class Name' attribute. * * @@ -3493,6 +3701,24 @@ int CUSTOM_DECORATION = 29; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int CUSTOM_DECORATION__DATA = CUSTOM_FIGURE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int CUSTOM_DECORATION__LAYOUT = CUSTOM_FIGURE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -3610,15 +3836,6 @@ int CUSTOM_DECORATION__SIZE = CUSTOM_FIGURE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int CUSTOM_DECORATION__LAYOUT_MANAGER = CUSTOM_FIGURE__LAYOUT_MANAGER; - - /** * The feature id for the 'Qualified Class Name' attribute. * * @@ -3656,6 +3873,24 @@ int CUSTOM_CONNECTION = 30; /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int CUSTOM_CONNECTION__DATA = CUSTOM_FIGURE__DATA; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int CUSTOM_CONNECTION__LAYOUT = CUSTOM_FIGURE__LAYOUT; + + /** * The feature id for the 'Name' attribute. * * @@ -3773,15 +4008,6 @@ int CUSTOM_CONNECTION__SIZE = CUSTOM_FIGURE__SIZE; /** - * The feature id for the 'Layout Manager' attribute. - * - * - * @generated - * @ordered - */ - int CUSTOM_CONNECTION__LAYOUT_MANAGER = CUSTOM_FIGURE__LAYOUT_MANAGER; - - /** * The feature id for the 'Qualified Class Name' attribute. * * @@ -3974,7 +4200,7 @@ * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getFontStyle() * @generated */ - int FONT_STYLE = 45; + int FONT_STYLE = 56; /** * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.PointImpl Point}' class. @@ -4264,212 +4490,809 @@ int CUSTOM_BORDER_FEATURE_COUNT = BORDER_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.ColorConstants Color Constants}' enum. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.LayoutData Layout Data}' class. * * - * @see org.eclipse.gmf.gmfgraph.ColorConstants - * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getColorConstants() + * @see org.eclipse.gmf.gmfgraph.LayoutData + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getLayoutData() * @generated */ - int COLOR_CONSTANTS = 44; + int LAYOUT_DATA = 44; /** - * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.Direction Direction}' enum. + * The feature id for the 'Qualified Class Name' attribute. * * - * @see org.eclipse.gmf.gmfgraph.Direction - * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getDirection() * @generated + * @ordered */ - int DIRECTION = 46; + int LAYOUT_DATA__QUALIFIED_CLASS_NAME = CUSTOM_CLASS__QUALIFIED_CLASS_NAME; /** - * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.LineKind Line Kind}' enum. + * The feature id for the 'Bundle Name' attribute. * * - * @see org.eclipse.gmf.gmfgraph.LineKind - * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getLineKind() * @generated + * @ordered */ - int LINE_KIND = 47; - + int LAYOUT_DATA__BUNDLE_NAME = CUSTOM_CLASS__BUNDLE_NAME; /** - * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Canvas Canvas}'. + * The feature id for the 'Owner' container reference. * * - * @return the meta object for class 'Canvas'. - * @see org.eclipse.gmf.gmfgraph.Canvas * @generated + * @ordered */ - EClass getCanvas(); + int LAYOUT_DATA__OWNER = CUSTOM_CLASS_FEATURE_COUNT + 0; /** - * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getFigures Figures}'. + * The number of structural features of the 'Layout Data' class. * * - * @return the meta object for the containment reference list 'Figures'. - * @see org.eclipse.gmf.gmfgraph.Canvas#getFigures() - * @see #getCanvas() * @generated + * @ordered */ - EReference getCanvas_Figures(); + int LAYOUT_DATA_FEATURE_COUNT = CUSTOM_CLASS_FEATURE_COUNT + 1; /** - * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getNodes Nodes}'. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.GridLayoutDataImpl Grid Layout Data}' class. * * - * @return the meta object for the containment reference list 'Nodes'. - * @see org.eclipse.gmf.gmfgraph.Canvas#getNodes() - * @see #getCanvas() + * @see org.eclipse.gmf.gmfgraph.impl.GridLayoutDataImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getGridLayoutData() * @generated */ - EReference getCanvas_Nodes(); + int GRID_LAYOUT_DATA = 46; /** - * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getConnections Connections}'. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.BorderLayoutDataImpl Border Layout Data}' class. * * - * @return the meta object for the containment reference list 'Connections'. - * @see org.eclipse.gmf.gmfgraph.Canvas#getConnections() - * @see #getCanvas() + * @see org.eclipse.gmf.gmfgraph.impl.BorderLayoutDataImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getBorderLayoutData() * @generated */ - EReference getCanvas_Connections(); + int BORDER_LAYOUT_DATA = 47; /** - * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getCompartments Compartments}'. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.CustomLayoutImpl Custom Layout}' class. * * - * @return the meta object for the containment reference list 'Compartments'. - * @see org.eclipse.gmf.gmfgraph.Canvas#getCompartments() - * @see #getCanvas() + * @see org.eclipse.gmf.gmfgraph.impl.CustomLayoutImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getCustomLayout() * @generated */ - EReference getCanvas_Compartments(); + int CUSTOM_LAYOUT = 50; /** - * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getChildren Children}'. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.Layout Layout}' class. * * - * @return the meta object for the containment reference list 'Children'. - * @see org.eclipse.gmf.gmfgraph.Canvas#getChildren() - * @see #getCanvas() + * @see org.eclipse.gmf.gmfgraph.Layout + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getLayout() * @generated */ - EReference getCanvas_Children(); + int LAYOUT = 49; /** - * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.FigureGallery Figure Gallery}'. + * The feature id for the 'Qualified Class Name' attribute. * * - * @return the meta object for class 'Figure Gallery'. - * @see org.eclipse.gmf.gmfgraph.FigureGallery * @generated + * @ordered */ - EClass getFigureGallery(); + int LAYOUT__QUALIFIED_CLASS_NAME = CUSTOM_CLASS__QUALIFIED_CLASS_NAME; /** - * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.FigureGallery#getFigures Figures}'. + * The feature id for the 'Bundle Name' attribute. * * - * @return the meta object for the containment reference list 'Figures'. - * @see org.eclipse.gmf.gmfgraph.FigureGallery#getFigures() - * @see #getFigureGallery() * @generated + * @ordered */ - EReference getFigureGallery_Figures(); + int LAYOUT__BUNDLE_NAME = CUSTOM_CLASS__BUNDLE_NAME; /** - * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.FigureGallery#getImplementationBundle Implementation Bundle}'. + * The number of structural features of the 'Layout' class. * * - * @return the meta object for the attribute 'Implementation Bundle'. - * @see org.eclipse.gmf.gmfgraph.FigureGallery#getImplementationBundle() - * @see #getFigureGallery() * @generated + * @ordered */ - EAttribute getFigureGallery_ImplementationBundle(); + int LAYOUT_FEATURE_COUNT = CUSTOM_CLASS_FEATURE_COUNT + 0; /** - * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Identity Identity}'. + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.CustomLayoutDataImpl Custom Layout Data}' class. * * - * @return the meta object for class 'Identity'. - * @see org.eclipse.gmf.gmfgraph.Identity + * @see org.eclipse.gmf.gmfgraph.impl.CustomLayoutDataImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getCustomLayoutData() * @generated */ - EClass getIdentity(); + int CUSTOM_LAYOUT_DATA = 45; /** - * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.Identity#getName Name}'. + * The feature id for the 'Qualified Class Name' attribute. * * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.gmf.gmfgraph.Identity#getName() - * @see #getIdentity() * @generated + * @ordered */ - EAttribute getIdentity_Name(); + int CUSTOM_LAYOUT_DATA__QUALIFIED_CLASS_NAME = LAYOUT__QUALIFIED_CLASS_NAME; /** - * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.DiagramElement Diagram Element}'. + * The feature id for the 'Bundle Name' attribute. * * - * @return the meta object for class 'Diagram Element'. - * @see org.eclipse.gmf.gmfgraph.DiagramElement * @generated + * @ordered */ - EClass getDiagramElement(); + int CUSTOM_LAYOUT_DATA__BUNDLE_NAME = LAYOUT__BUNDLE_NAME; /** - * Returns the meta object for the reference '{@link org.eclipse.gmf.gmfgraph.DiagramElement#getFigure Figure}'. + * The feature id for the 'Attributes' containment reference list. * * - * @return the meta object for the reference 'Figure'. - * @see org.eclipse.gmf.gmfgraph.DiagramElement#getFigure() - * @see #getDiagramElement() * @generated + * @ordered */ - EReference getDiagramElement_Figure(); + int CUSTOM_LAYOUT_DATA__ATTRIBUTES = LAYOUT_FEATURE_COUNT + 0; /** - * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.DiagramElement#getFacets Facets}'. + * The number of structural features of the 'Custom Layout Data' class. * * - * @return the meta object for the containment reference list 'Facets'. - * @see org.eclipse.gmf.gmfgraph.DiagramElement#getFacets() - * @see #getDiagramElement() * @generated + * @ordered */ - EReference getDiagramElement_Facets(); + int CUSTOM_LAYOUT_DATA_FEATURE_COUNT = LAYOUT_FEATURE_COUNT + 1; /** - * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Node Node}'. + * The feature id for the 'Qualified Class Name' attribute. * * - * @return the meta object for class 'Node'. - * @see org.eclipse.gmf.gmfgraph.Node * @generated + * @ordered */ - EClass getNode(); + int GRID_LAYOUT_DATA__QUALIFIED_CLASS_NAME = LAYOUT_DATA__QUALIFIED_CLASS_NAME; /** - * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.Node#getResizeConstraint Resize Constraint}'. + * The feature id for the 'Bundle Name' attribute. * * - * @return the meta object for the attribute 'Resize Constraint'. - * @see org.eclipse.gmf.gmfgraph.Node#getResizeConstraint() - * @see #getNode() * @generated + * @ordered */ - EAttribute getNode_ResizeConstraint(); + int GRID_LAYOUT_DATA__BUNDLE_NAME = LAYOUT_DATA__BUNDLE_NAME; /** - * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Connection Connection}'. + * The feature id for the 'Owner' container reference. * * - * @return the meta object for class 'Connection'. + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__OWNER = LAYOUT_DATA__OWNER; + + /** + * The feature id for the 'Grab Excess Horizontal Space' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__GRAB_EXCESS_HORIZONTAL_SPACE = LAYOUT_DATA_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Grab Excess Vertical Space' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__GRAB_EXCESS_VERTICAL_SPACE = LAYOUT_DATA_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Vertical Alignment' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__VERTICAL_ALIGNMENT = LAYOUT_DATA_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Horizontal Alignment' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__HORIZONTAL_ALIGNMENT = LAYOUT_DATA_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Vertical Span' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__VERTICAL_SPAN = LAYOUT_DATA_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Horizontal Span' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__HORIZONTAL_SPAN = LAYOUT_DATA_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Horizontal Indent' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__HORIZONTAL_INDENT = LAYOUT_DATA_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Size Hint' containment reference. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA__SIZE_HINT = LAYOUT_DATA_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Grid Layout Data' class. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_DATA_FEATURE_COUNT = LAYOUT_DATA_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Qualified Class Name' attribute. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT_DATA__QUALIFIED_CLASS_NAME = LAYOUT_DATA__QUALIFIED_CLASS_NAME; + + /** + * The feature id for the 'Bundle Name' attribute. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT_DATA__BUNDLE_NAME = LAYOUT_DATA__BUNDLE_NAME; + + /** + * The feature id for the 'Owner' container reference. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT_DATA__OWNER = LAYOUT_DATA__OWNER; + + /** + * The feature id for the 'Alignment' attribute. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT_DATA__ALIGNMENT = LAYOUT_DATA_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Vertical' attribute. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT_DATA__VERTICAL = LAYOUT_DATA_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Border Layout Data' class. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT_DATA_FEATURE_COUNT = LAYOUT_DATA_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Qualified Class Name' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_LAYOUT__QUALIFIED_CLASS_NAME = LAYOUT__QUALIFIED_CLASS_NAME; + + /** + * The feature id for the 'Bundle Name' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_LAYOUT__BUNDLE_NAME = LAYOUT__BUNDLE_NAME; + + /** + * The feature id for the 'Attributes' containment reference list. + * + * + * @generated + * @ordered + */ + int CUSTOM_LAYOUT__ATTRIBUTES = LAYOUT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Custom Layout' class. + * + * + * @generated + * @ordered + */ + int CUSTOM_LAYOUT_FEATURE_COUNT = LAYOUT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.GridLayoutImpl Grid Layout}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.impl.GridLayoutImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getGridLayout() + * @generated + */ + int GRID_LAYOUT = 51; + + /** + * The feature id for the 'Qualified Class Name' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT__QUALIFIED_CLASS_NAME = LAYOUT__QUALIFIED_CLASS_NAME; + + /** + * The feature id for the 'Bundle Name' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT__BUNDLE_NAME = LAYOUT__BUNDLE_NAME; + + /** + * The feature id for the 'Num Columns' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT__NUM_COLUMNS = LAYOUT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Equal Width' attribute. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT__EQUAL_WIDTH = LAYOUT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Margins' containment reference. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT__MARGINS = LAYOUT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Spacing' containment reference. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT__SPACING = LAYOUT_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Grid Layout' class. + * + * + * @generated + * @ordered + */ + int GRID_LAYOUT_FEATURE_COUNT = LAYOUT_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.BorderLayoutImpl Border Layout}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.impl.BorderLayoutImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getBorderLayout() + * @generated + */ + int BORDER_LAYOUT = 52; + + /** + * The feature id for the 'Qualified Class Name' attribute. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT__QUALIFIED_CLASS_NAME = LAYOUT__QUALIFIED_CLASS_NAME; + + /** + * The feature id for the 'Bundle Name' attribute. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT__BUNDLE_NAME = LAYOUT__BUNDLE_NAME; + + /** + * The feature id for the 'Spacing' containment reference. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT__SPACING = LAYOUT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Border Layout' class. + * + * + * @generated + * @ordered + */ + int BORDER_LAYOUT_FEATURE_COUNT = LAYOUT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.CustomConfigurableClassImpl Custom Configurable Class}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.impl.CustomConfigurableClassImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getCustomConfigurableClass() + * @generated + */ + int CUSTOM_CONFIGURABLE_CLASS = 53; + + /** + * The feature id for the 'Qualified Class Name' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_CONFIGURABLE_CLASS__QUALIFIED_CLASS_NAME = CUSTOM_CLASS__QUALIFIED_CLASS_NAME; + + /** + * The feature id for the 'Bundle Name' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_CONFIGURABLE_CLASS__BUNDLE_NAME = CUSTOM_CLASS__BUNDLE_NAME; + + /** + * The feature id for the 'Attributes' containment reference list. + * + * + * @generated + * @ordered + */ + int CUSTOM_CONFIGURABLE_CLASS__ATTRIBUTES = CUSTOM_CLASS_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Custom Configurable Class' class. + * + * + * @generated + * @ordered + */ + int CUSTOM_CONFIGURABLE_CLASS_FEATURE_COUNT = CUSTOM_CLASS_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.impl.CustomAttributeImpl Custom Attribute}' class. + * + * + * @see org.eclipse.gmf.gmfgraph.impl.CustomAttributeImpl + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getCustomAttribute() + * @generated + */ + int CUSTOM_ATTRIBUTE = 54; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_ATTRIBUTE__NAME = 0; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_ATTRIBUTE__TYPE = 1; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_ATTRIBUTE__VALUE = 2; + + /** + * The feature id for the 'Direct Access' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_ATTRIBUTE__DIRECT_ACCESS = 3; + + /** + * The feature id for the 'Multi Statement Value' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_ATTRIBUTE__MULTI_STATEMENT_VALUE = 4; + + /** + * The number of structural features of the 'Custom Attribute' class. + * + * + * @generated + * @ordered + */ + int CUSTOM_ATTRIBUTE_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.ColorConstants Color Constants}' enum. + * + * + * @see org.eclipse.gmf.gmfgraph.ColorConstants + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getColorConstants() + * @generated + */ + int COLOR_CONSTANTS = 55; + + /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.Direction Direction}' enum. + * + * + * @see org.eclipse.gmf.gmfgraph.Direction + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getDirection() + * @generated + */ + int DIRECTION = 57; + + /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.LineKind Line Kind}' enum. + * + * + * @see org.eclipse.gmf.gmfgraph.LineKind + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getLineKind() + * @generated + */ + int LINE_KIND = 58; + + + /** + * The meta object id for the '{@link org.eclipse.gmf.gmfgraph.Alignment Alignment}' enum. + * + * + * @see org.eclipse.gmf.gmfgraph.Alignment + * @see org.eclipse.gmf.gmfgraph.impl.GMFGraphPackageImpl#getAlignment() + * @generated + */ + int ALIGNMENT = 59; + + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Canvas Canvas}'. + * + * + * @return the meta object for class 'Canvas'. + * @see org.eclipse.gmf.gmfgraph.Canvas + * @generated + */ + EClass getCanvas(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getFigures Figures}'. + * + * + * @return the meta object for the containment reference list 'Figures'. + * @see org.eclipse.gmf.gmfgraph.Canvas#getFigures() + * @see #getCanvas() + * @generated + */ + EReference getCanvas_Figures(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getNodes Nodes}'. + * + * + * @return the meta object for the containment reference list 'Nodes'. + * @see org.eclipse.gmf.gmfgraph.Canvas#getNodes() + * @see #getCanvas() + * @generated + */ + EReference getCanvas_Nodes(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getConnections Connections}'. + * + * + * @return the meta object for the containment reference list 'Connections'. + * @see org.eclipse.gmf.gmfgraph.Canvas#getConnections() + * @see #getCanvas() + * @generated + */ + EReference getCanvas_Connections(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getCompartments Compartments}'. + * + * + * @return the meta object for the containment reference list 'Compartments'. + * @see org.eclipse.gmf.gmfgraph.Canvas#getCompartments() + * @see #getCanvas() + * @generated + */ + EReference getCanvas_Compartments(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.Canvas#getChildren Children}'. + * + * + * @return the meta object for the containment reference list 'Children'. + * @see org.eclipse.gmf.gmfgraph.Canvas#getChildren() + * @see #getCanvas() + * @generated + */ + EReference getCanvas_Children(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.FigureGallery Figure Gallery}'. + * + * + * @return the meta object for class 'Figure Gallery'. + * @see org.eclipse.gmf.gmfgraph.FigureGallery + * @generated + */ + EClass getFigureGallery(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.FigureGallery#getFigures Figures}'. + * + * + * @return the meta object for the containment reference list 'Figures'. + * @see org.eclipse.gmf.gmfgraph.FigureGallery#getFigures() + * @see #getFigureGallery() + * @generated + */ + EReference getFigureGallery_Figures(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.FigureGallery#getImplementationBundle Implementation Bundle}'. + * + * + * @return the meta object for the attribute 'Implementation Bundle'. + * @see org.eclipse.gmf.gmfgraph.FigureGallery#getImplementationBundle() + * @see #getFigureGallery() + * @generated + */ + EAttribute getFigureGallery_ImplementationBundle(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Identity Identity}'. + * + * + * @return the meta object for class 'Identity'. + * @see org.eclipse.gmf.gmfgraph.Identity + * @generated + */ + EClass getIdentity(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.Identity#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.gmf.gmfgraph.Identity#getName() + * @see #getIdentity() + * @generated + */ + EAttribute getIdentity_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.DiagramElement Diagram Element}'. + * + * + * @return the meta object for class 'Diagram Element'. + * @see org.eclipse.gmf.gmfgraph.DiagramElement + * @generated + */ + EClass getDiagramElement(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.gmf.gmfgraph.DiagramElement#getFigure Figure}'. + * + * + * @return the meta object for the reference 'Figure'. + * @see org.eclipse.gmf.gmfgraph.DiagramElement#getFigure() + * @see #getDiagramElement() + * @generated + */ + EReference getDiagramElement_Figure(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.DiagramElement#getFacets Facets}'. + * + * + * @return the meta object for the containment reference list 'Facets'. + * @see org.eclipse.gmf.gmfgraph.DiagramElement#getFacets() + * @see #getDiagramElement() + * @generated + */ + EReference getDiagramElement_Facets(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Node Node}'. + * + * + * @return the meta object for class 'Node'. + * @see org.eclipse.gmf.gmfgraph.Node + * @generated + */ + EClass getNode(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.Node#getResizeConstraint Resize Constraint}'. + * + * + * @return the meta object for the attribute 'Resize Constraint'. + * @see org.eclipse.gmf.gmfgraph.Node#getResizeConstraint() + * @see #getNode() + * @generated + */ + EAttribute getNode_ResizeConstraint(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Connection Connection}'. + * + * + * @return the meta object for class 'Connection'. * @see org.eclipse.gmf.gmfgraph.Connection * @generated */ @@ -4733,17 +5556,6 @@ EReference getFigure_Size(); /** - * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.Figure#getLayoutManager Layout Manager}'. - * - * - * @return the meta object for the attribute 'Layout Manager'. - * @see org.eclipse.gmf.gmfgraph.Figure#getLayoutManager() - * @see #getFigure() - * @generated - */ - EAttribute getFigure_LayoutManager(); - - /** * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.FigureRef Figure Ref}'. * * @@ -5460,6 +6272,380 @@ EClass getCustomBorder(); /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.LayoutData Layout Data}'. + * + * + * @return the meta object for class 'Layout Data'. + * @see org.eclipse.gmf.gmfgraph.LayoutData + * @generated + */ + EClass getLayoutData(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.gmf.gmfgraph.LayoutData#getOwner Owner}'. + * + * + * @return the meta object for the container reference 'Owner'. + * @see org.eclipse.gmf.gmfgraph.LayoutData#getOwner() + * @see #getLayoutData() + * @generated + */ + EReference getLayoutData_Owner(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.CustomLayoutData Custom Layout Data}'. + * + * + * @return the meta object for class 'Custom Layout Data'. + * @see org.eclipse.gmf.gmfgraph.CustomLayoutData + * @generated + */ + EClass getCustomLayoutData(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.GridLayoutData Grid Layout Data}'. + * + * + * @return the meta object for class 'Grid Layout Data'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData + * @generated + */ + EClass getGridLayoutData(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayoutData#isGrabExcessHorizontalSpace Grab Excess Horizontal Space}'. + * + * + * @return the meta object for the attribute 'Grab Excess Horizontal Space'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData#isGrabExcessHorizontalSpace() + * @see #getGridLayoutData() + * @generated + */ + EAttribute getGridLayoutData_GrabExcessHorizontalSpace(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayoutData#isGrabExcessVerticalSpace Grab Excess Vertical Space}'. + * + * + * @return the meta object for the attribute 'Grab Excess Vertical Space'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData#isGrabExcessVerticalSpace() + * @see #getGridLayoutData() + * @generated + */ + EAttribute getGridLayoutData_GrabExcessVerticalSpace(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayoutData#getVerticalAlignment Vertical Alignment}'. + * + * + * @return the meta object for the attribute 'Vertical Alignment'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData#getVerticalAlignment() + * @see #getGridLayoutData() + * @generated + */ + EAttribute getGridLayoutData_VerticalAlignment(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayoutData#getHorizontalAlignment Horizontal Alignment}'. + * + * + * @return the meta object for the attribute 'Horizontal Alignment'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData#getHorizontalAlignment() + * @see #getGridLayoutData() + * @generated + */ + EAttribute getGridLayoutData_HorizontalAlignment(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayoutData#getVerticalSpan Vertical Span}'. + * + * + * @return the meta object for the attribute 'Vertical Span'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData#getVerticalSpan() + * @see #getGridLayoutData() + * @generated + */ + EAttribute getGridLayoutData_VerticalSpan(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayoutData#getHorizontalSpan Horizontal Span}'. + * + * + * @return the meta object for the attribute 'Horizontal Span'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData#getHorizontalSpan() + * @see #getGridLayoutData() + * @generated + */ + EAttribute getGridLayoutData_HorizontalSpan(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayoutData#getHorizontalIndent Horizontal Indent}'. + * + * + * @return the meta object for the attribute 'Horizontal Indent'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData#getHorizontalIndent() + * @see #getGridLayoutData() + * @generated + */ + EAttribute getGridLayoutData_HorizontalIndent(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.gmf.gmfgraph.GridLayoutData#getSizeHint Size Hint}'. + * + * + * @return the meta object for the containment reference 'Size Hint'. + * @see org.eclipse.gmf.gmfgraph.GridLayoutData#getSizeHint() + * @see #getGridLayoutData() + * @generated + */ + EReference getGridLayoutData_SizeHint(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.BorderLayoutData Border Layout Data}'. + * + * + * @return the meta object for class 'Border Layout Data'. + * @see org.eclipse.gmf.gmfgraph.BorderLayoutData + * @generated + */ + EClass getBorderLayoutData(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.BorderLayoutData#getAlignment Alignment}'. + * + * + * @return the meta object for the attribute 'Alignment'. + * @see org.eclipse.gmf.gmfgraph.BorderLayoutData#getAlignment() + * @see #getBorderLayoutData() + * @generated + */ + EAttribute getBorderLayoutData_Alignment(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.BorderLayoutData#isVertical Vertical}'. + * + * + * @return the meta object for the attribute 'Vertical'. + * @see org.eclipse.gmf.gmfgraph.BorderLayoutData#isVertical() + * @see #getBorderLayoutData() + * @generated + */ + EAttribute getBorderLayoutData_Vertical(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Layoutable Layoutable}'. + * + * + * @return the meta object for class 'Layoutable'. + * @see org.eclipse.gmf.gmfgraph.Layoutable + * @generated + */ + EClass getLayoutable(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.gmf.gmfgraph.Layoutable#getData Data}'. + * + * + * @return the meta object for the containment reference 'Data'. + * @see org.eclipse.gmf.gmfgraph.Layoutable#getData() + * @see #getLayoutable() + * @generated + */ + EReference getLayoutable_Data(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.gmf.gmfgraph.Layoutable#getLayout Layout}'. + * + * + * @return the meta object for the containment reference 'Layout'. + * @see org.eclipse.gmf.gmfgraph.Layoutable#getLayout() + * @see #getLayoutable() + * @generated + */ + EReference getLayoutable_Layout(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.Layout Layout}'. + * + * + * @return the meta object for class 'Layout'. + * @see org.eclipse.gmf.gmfgraph.Layout + * @generated + */ + EClass getLayout(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.CustomLayout Custom Layout}'. + * + * + * @return the meta object for class 'Custom Layout'. + * @see org.eclipse.gmf.gmfgraph.CustomLayout + * @generated + */ + EClass getCustomLayout(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.GridLayout Grid Layout}'. + * + * + * @return the meta object for class 'Grid Layout'. + * @see org.eclipse.gmf.gmfgraph.GridLayout + * @generated + */ + EClass getGridLayout(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayout#getNumColumns Num Columns}'. + * + * + * @return the meta object for the attribute 'Num Columns'. + * @see org.eclipse.gmf.gmfgraph.GridLayout#getNumColumns() + * @see #getGridLayout() + * @generated + */ + EAttribute getGridLayout_NumColumns(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.GridLayout#isEqualWidth Equal Width}'. + * + * + * @return the meta object for the attribute 'Equal Width'. + * @see org.eclipse.gmf.gmfgraph.GridLayout#isEqualWidth() + * @see #getGridLayout() + * @generated + */ + EAttribute getGridLayout_EqualWidth(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.gmf.gmfgraph.GridLayout#getMargins Margins}'. + * + * + * @return the meta object for the containment reference 'Margins'. + * @see org.eclipse.gmf.gmfgraph.GridLayout#getMargins() + * @see #getGridLayout() + * @generated + */ + EReference getGridLayout_Margins(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.gmf.gmfgraph.GridLayout#getSpacing Spacing}'. + * + * + * @return the meta object for the containment reference 'Spacing'. + * @see org.eclipse.gmf.gmfgraph.GridLayout#getSpacing() + * @see #getGridLayout() + * @generated + */ + EReference getGridLayout_Spacing(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.BorderLayout Border Layout}'. + * + * + * @return the meta object for class 'Border Layout'. + * @see org.eclipse.gmf.gmfgraph.BorderLayout + * @generated + */ + EClass getBorderLayout(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.gmf.gmfgraph.BorderLayout#getSpacing Spacing}'. + * + * + * @return the meta object for the containment reference 'Spacing'. + * @see org.eclipse.gmf.gmfgraph.BorderLayout#getSpacing() + * @see #getBorderLayout() + * @generated + */ + EReference getBorderLayout_Spacing(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.CustomConfigurableClass Custom Configurable Class}'. + * + * + * @return the meta object for class 'Custom Configurable Class'. + * @see org.eclipse.gmf.gmfgraph.CustomConfigurableClass + * @generated + */ + EClass getCustomConfigurableClass(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.gmf.gmfgraph.CustomConfigurableClass#getAttributes Attributes}'. + * + * + * @return the meta object for the containment reference list 'Attributes'. + * @see org.eclipse.gmf.gmfgraph.CustomConfigurableClass#getAttributes() + * @see #getCustomConfigurableClass() + * @generated + */ + EReference getCustomConfigurableClass_Attributes(); + + /** + * Returns the meta object for class '{@link org.eclipse.gmf.gmfgraph.CustomAttribute Custom Attribute}'. + * + * + * @return the meta object for class 'Custom Attribute'. + * @see org.eclipse.gmf.gmfgraph.CustomAttribute + * @generated + */ + EClass getCustomAttribute(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.CustomAttribute#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.gmf.gmfgraph.CustomAttribute#getName() + * @see #getCustomAttribute() + * @generated + */ + EAttribute getCustomAttribute_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.CustomAttribute#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.gmf.gmfgraph.CustomAttribute#getType() + * @see #getCustomAttribute() + * @generated + */ + EAttribute getCustomAttribute_Type(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.CustomAttribute#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.gmf.gmfgraph.CustomAttribute#getValue() + * @see #getCustomAttribute() + * @generated + */ + EAttribute getCustomAttribute_Value(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.CustomAttribute#isDirectAccess Direct Access}'. + * + * + * @return the meta object for the attribute 'Direct Access'. + * @see org.eclipse.gmf.gmfgraph.CustomAttribute#isDirectAccess() + * @see #getCustomAttribute() + * @generated + */ + EAttribute getCustomAttribute_DirectAccess(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.gmf.gmfgraph.CustomAttribute#isMultiStatementValue Multi Statement Value}'. + * + * + * @return the meta object for the attribute 'Multi Statement Value'. + * @see org.eclipse.gmf.gmfgraph.CustomAttribute#isMultiStatementValue() + * @see #getCustomAttribute() + * @generated + */ + EAttribute getCustomAttribute_MultiStatementValue(); + + /** * Returns the meta object for enum '{@link org.eclipse.gmf.gmfgraph.ColorConstants Color Constants}'. * * @@ -5490,6 +6676,16 @@ EEnum getLineKind(); /** + * Returns the meta object for enum '{@link org.eclipse.gmf.gmfgraph.Alignment Alignment}'. + * + * + * @return the meta object for enum 'Alignment'. + * @see org.eclipse.gmf.gmfgraph.Alignment + * @generated + */ + EEnum getAlignment(); + + /** * Returns the factory that creates the instances of the model. * * Index: src/org/eclipse/gmf/gmfgraph/FigureMarker.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/FigureMarker.java,v retrieving revision 1.1 diff -u -r1.1 FigureMarker.java --- src/org/eclipse/gmf/gmfgraph/FigureMarker.java 6 Dec 2005 22:12:16 -0000 1.1 +++ src/org/eclipse/gmf/gmfgraph/FigureMarker.java 9 Feb 2006 18:41:44 -0000 @@ -23,5 +23,5 @@ * @model interface="true" abstract="true" * @generated */ -public interface FigureMarker extends EObject { +public interface FigureMarker extends Layoutable { } // FigureMarker Index: src/org/eclipse/gmf/gmfgraph/Figure.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/Figure.java,v retrieving revision 1.4 diff -u -r1.4 Figure.java --- src/org/eclipse/gmf/gmfgraph/Figure.java 5 Jan 2006 17:33:07 -0000 1.4 +++ src/org/eclipse/gmf/gmfgraph/Figure.java 9 Feb 2006 18:41:44 -0000 @@ -32,7 +32,6 @@ *
  • {@link org.eclipse.gmf.gmfgraph.Figure#getBorder Border}
  • *
  • {@link org.eclipse.gmf.gmfgraph.Figure#getLocation Location}
  • *
  • {@link org.eclipse.gmf.gmfgraph.Figure#getSize Size}
  • - *
  • {@link org.eclipse.gmf.gmfgraph.Figure#getLayoutManager Layout Manager}
  • * *

    * @@ -334,30 +333,4 @@ */ void setSize(Point value); - /** - * Returns the value of the 'Layout Manager' attribute. - * - *

    - * If the meaning of the 'Layout Manager' attribute isn't clear, - * there really should be more of a description here... - *

    - * - * @return the value of the 'Layout Manager' attribute. - * @see #setLayoutManager(String) - * @see org.eclipse.gmf.gmfgraph.GMFGraphPackage#getFigure_LayoutManager() - * @model - * @generated - */ - String getLayoutManager(); - - /** - * Sets the value of the '{@link org.eclipse.gmf.gmfgraph.Figure#getLayoutManager Layout Manager}' attribute. - * - * - * @param value the new value of the 'Layout Manager' attribute. - * @see #getLayoutManager() - * @generated - */ - void setLayoutManager(String value); - } // Figure Index: src/org/eclipse/gmf/gmfgraph/impl/LabeledContainerImpl.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/impl/LabeledContainerImpl.java,v retrieving revision 1.5 diff -u -r1.5 LabeledContainerImpl.java --- src/org/eclipse/gmf/gmfgraph/impl/LabeledContainerImpl.java 5 Jan 2006 17:33:07 -0000 1.5 +++ src/org/eclipse/gmf/gmfgraph/impl/LabeledContainerImpl.java 9 Feb 2006 18:41:46 -0000 @@ -27,6 +27,8 @@ import org.eclipse.gmf.gmfgraph.Identity; import org.eclipse.gmf.gmfgraph.Insets; import org.eclipse.gmf.gmfgraph.LabeledContainer; +import org.eclipse.gmf.gmfgraph.Layout; +import org.eclipse.gmf.gmfgraph.LayoutData; import org.eclipse.gmf.gmfgraph.Point; /** @@ -36,6 +38,8 @@ *

    * The following features are implemented: *

    *

    * @@ -57,6 +60,26 @@ */ public class LabeledContainerImpl extends EObjectImpl implements LabeledContainer { /** + * The cached value of the '{@link #getData() Data}' containment reference. + * + * + * @see #getData() + * @generated + * @ordered + */ + protected LayoutData data = null; + + /** + * The cached value of the '{@link #getLayout() Layout}' containment reference. + * + * + * @see #getLayout() + * @generated + * @ordered + */ + protected Layout layout = null; + + /** * The default value of the '{@link #getName() Name}' attribute. * * @@ -187,32 +210,30 @@ protected Point size = null; /** - * The default value of the '{@link #getLayoutManager() Layout Manager}' attribute. * * - * @see #getLayoutManager() * @generated - * @ordered */ - protected static final String LAYOUT_MANAGER_EDEFAULT = null; + protected LabeledContainerImpl() { + super(); + } /** - * The cached value of the '{@link #getLayoutManager() Layout Manager}' attribute. * * - * @see #getLayoutManager() * @generated - * @ordered */ - protected String layoutManager = LAYOUT_MANAGER_EDEFAULT; + protected EClass eStaticClass() { + return GMFGraphPackage.eINSTANCE.getLabeledContainer(); + } /** * * * @generated */ - protected LabeledContainerImpl() { - super(); + public LayoutData getData() { + return data; } /** @@ -220,8 +241,76 @@ * * @generated */ - protected EClass eStaticClass() { - return GMFGraphPackage.eINSTANCE.getLabeledContainer(); + public NotificationChain basicSetData(LayoutData newData, NotificationChain msgs) { + LayoutData oldData = data; + data = newData; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABELED_CONTAINER__DATA, oldData, newData); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setData(LayoutData newData) { + if (newData != data) { + NotificationChain msgs = null; + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, GMFGraphPackage.LAYOUT_DATA__OWNER, LayoutData.class, msgs); + if (newData != null) + msgs = ((InternalEObject)newData).eInverseAdd(this, GMFGraphPackage.LAYOUT_DATA__OWNER, LayoutData.class, msgs); + msgs = basicSetData(newData, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABELED_CONTAINER__DATA, newData, newData)); + } + + /** + * + * + * @generated + */ + public Layout getLayout() { + return layout; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLayout(Layout newLayout, NotificationChain msgs) { + Layout oldLayout = layout; + layout = newLayout; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABELED_CONTAINER__LAYOUT, oldLayout, newLayout); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLayout(Layout newLayout) { + if (newLayout != layout) { + NotificationChain msgs = null; + if (layout != null) + msgs = ((InternalEObject)layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.LABELED_CONTAINER__LAYOUT, null, msgs); + if (newLayout != null) + msgs = ((InternalEObject)newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.LABELED_CONTAINER__LAYOUT, null, msgs); + msgs = basicSetLayout(newLayout, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABELED_CONTAINER__LAYOUT, newLayout, newLayout)); } /** @@ -702,29 +791,12 @@ * * @generated */ - public String getLayoutManager() { - return layoutManager; - } - - /** - * - * - * @generated - */ - public void setLayoutManager(String newLayoutManager) { - String oldLayoutManager = layoutManager; - layoutManager = newLayoutManager; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABELED_CONTAINER__LAYOUT_MANAGER, oldLayoutManager, layoutManager)); - } - - /** - * - * - * @generated - */ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { + case GMFGraphPackage.LABELED_CONTAINER__DATA: + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.LABELED_CONTAINER__DATA, null, msgs); + return basicSetData((LayoutData)otherEnd, msgs); case GMFGraphPackage.LABELED_CONTAINER__PARENT: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); @@ -740,6 +812,10 @@ */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { + case GMFGraphPackage.LABELED_CONTAINER__DATA: + return basicSetData(null, msgs); + case GMFGraphPackage.LABELED_CONTAINER__LAYOUT: + return basicSetLayout(null, msgs); case GMFGraphPackage.LABELED_CONTAINER__CHILDREN: return ((InternalEList)getChildren()).basicRemove(otherEnd, msgs); case GMFGraphPackage.LABELED_CONTAINER__PARENT: @@ -788,6 +864,10 @@ */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { + case GMFGraphPackage.LABELED_CONTAINER__DATA: + return getData(); + case GMFGraphPackage.LABELED_CONTAINER__LAYOUT: + return getLayout(); case GMFGraphPackage.LABELED_CONTAINER__NAME: return getName(); case GMFGraphPackage.LABELED_CONTAINER__CHILDREN: @@ -814,8 +894,6 @@ return getLocation(); case GMFGraphPackage.LABELED_CONTAINER__SIZE: return getSize(); - case GMFGraphPackage.LABELED_CONTAINER__LAYOUT_MANAGER: - return getLayoutManager(); } return super.eGet(featureID, resolve, coreType); } @@ -827,6 +905,12 @@ */ public void eSet(int featureID, Object newValue) { switch (featureID) { + case GMFGraphPackage.LABELED_CONTAINER__DATA: + setData((LayoutData)newValue); + return; + case GMFGraphPackage.LABELED_CONTAINER__LAYOUT: + setLayout((Layout)newValue); + return; case GMFGraphPackage.LABELED_CONTAINER__NAME: setName((String)newValue); return; @@ -864,9 +948,6 @@ case GMFGraphPackage.LABELED_CONTAINER__SIZE: setSize((Point)newValue); return; - case GMFGraphPackage.LABELED_CONTAINER__LAYOUT_MANAGER: - setLayoutManager((String)newValue); - return; } super.eSet(featureID, newValue); } @@ -878,6 +959,12 @@ */ public void eUnset(int featureID) { switch (featureID) { + case GMFGraphPackage.LABELED_CONTAINER__DATA: + setData((LayoutData)null); + return; + case GMFGraphPackage.LABELED_CONTAINER__LAYOUT: + setLayout((Layout)null); + return; case GMFGraphPackage.LABELED_CONTAINER__NAME: setName(NAME_EDEFAULT); return; @@ -914,9 +1001,6 @@ case GMFGraphPackage.LABELED_CONTAINER__SIZE: setSize((Point)null); return; - case GMFGraphPackage.LABELED_CONTAINER__LAYOUT_MANAGER: - setLayoutManager(LAYOUT_MANAGER_EDEFAULT); - return; } super.eUnset(featureID); } @@ -928,6 +1012,10 @@ */ public boolean eIsSet(int featureID) { switch (featureID) { + case GMFGraphPackage.LABELED_CONTAINER__DATA: + return data != null; + case GMFGraphPackage.LABELED_CONTAINER__LAYOUT: + return layout != null; case GMFGraphPackage.LABELED_CONTAINER__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case GMFGraphPackage.LABELED_CONTAINER__CHILDREN: @@ -954,8 +1042,6 @@ return location != null; case GMFGraphPackage.LABELED_CONTAINER__SIZE: return size != null; - case GMFGraphPackage.LABELED_CONTAINER__LAYOUT_MANAGER: - return LAYOUT_MANAGER_EDEFAULT == null ? layoutManager != null : !LAYOUT_MANAGER_EDEFAULT.equals(layoutManager); } return super.eIsSet(featureID); } @@ -1001,8 +1087,6 @@ StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); - result.append(", layoutManager: "); - result.append(layoutManager); result.append(')'); return result.toString(); } Index: src/org/eclipse/gmf/gmfgraph/impl/CustomFigureImpl.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/impl/CustomFigureImpl.java,v retrieving revision 1.5 diff -u -r1.5 CustomFigureImpl.java --- src/org/eclipse/gmf/gmfgraph/impl/CustomFigureImpl.java 5 Jan 2006 17:33:08 -0000 1.5 +++ src/org/eclipse/gmf/gmfgraph/impl/CustomFigureImpl.java 9 Feb 2006 18:41:45 -0000 @@ -28,6 +28,8 @@ import org.eclipse.gmf.gmfgraph.GMFGraphPackage; import org.eclipse.gmf.gmfgraph.Identity; import org.eclipse.gmf.gmfgraph.Insets; +import org.eclipse.gmf.gmfgraph.Layout; +import org.eclipse.gmf.gmfgraph.LayoutData; import org.eclipse.gmf.gmfgraph.Point; /** @@ -37,6 +39,8 @@ *

    * The following features are implemented: *

    @@ -60,6 +63,26 @@ */ public class CustomFigureImpl extends EObjectImpl implements CustomFigure { /** + * The cached value of the '{@link #getData() Data}' containment reference. + * + * + * @see #getData() + * @generated + * @ordered + */ + protected LayoutData data = null; + + /** + * The cached value of the '{@link #getLayout() Layout}' containment reference. + * + * + * @see #getLayout() + * @generated + * @ordered + */ + protected Layout layout = null; + + /** * The default value of the '{@link #getName() Name}' attribute. * * @@ -190,26 +213,6 @@ protected Point size = null; /** - * The default value of the '{@link #getLayoutManager() Layout Manager}' attribute. - * - * - * @see #getLayoutManager() - * @generated - * @ordered - */ - protected static final String LAYOUT_MANAGER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLayoutManager() Layout Manager}' attribute. - * - * - * @see #getLayoutManager() - * @generated - * @ordered - */ - protected String layoutManager = LAYOUT_MANAGER_EDEFAULT; - - /** * The default value of the '{@link #getQualifiedClassName() Qualified Class Name}' attribute. * * @@ -272,6 +275,92 @@ * * @generated */ + public LayoutData getData() { + return data; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetData(LayoutData newData, NotificationChain msgs) { + LayoutData oldData = data; + data = newData; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GMFGraphPackage.CUSTOM_FIGURE__DATA, oldData, newData); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setData(LayoutData newData) { + if (newData != data) { + NotificationChain msgs = null; + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, GMFGraphPackage.LAYOUT_DATA__OWNER, LayoutData.class, msgs); + if (newData != null) + msgs = ((InternalEObject)newData).eInverseAdd(this, GMFGraphPackage.LAYOUT_DATA__OWNER, LayoutData.class, msgs); + msgs = basicSetData(newData, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.CUSTOM_FIGURE__DATA, newData, newData)); + } + + /** + * + * + * @generated + */ + public Layout getLayout() { + return layout; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLayout(Layout newLayout, NotificationChain msgs) { + Layout oldLayout = layout; + layout = newLayout; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GMFGraphPackage.CUSTOM_FIGURE__LAYOUT, oldLayout, newLayout); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLayout(Layout newLayout) { + if (newLayout != layout) { + NotificationChain msgs = null; + if (layout != null) + msgs = ((InternalEObject)layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.CUSTOM_FIGURE__LAYOUT, null, msgs); + if (newLayout != null) + msgs = ((InternalEObject)newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.CUSTOM_FIGURE__LAYOUT, null, msgs); + msgs = basicSetLayout(newLayout, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.CUSTOM_FIGURE__LAYOUT, newLayout, newLayout)); + } + + /** + * + * + * @generated + */ public String getName() { return name; } @@ -745,27 +834,6 @@ * * @generated */ - public String getLayoutManager() { - return layoutManager; - } - - /** - * - * - * @generated - */ - public void setLayoutManager(String newLayoutManager) { - String oldLayoutManager = layoutManager; - layoutManager = newLayoutManager; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.CUSTOM_FIGURE__LAYOUT_MANAGER, oldLayoutManager, layoutManager)); - } - - /** - * - * - * @generated - */ public String getQualifiedClassName() { return qualifiedClassName; } @@ -810,6 +878,10 @@ */ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { + case GMFGraphPackage.CUSTOM_FIGURE__DATA: + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.CUSTOM_FIGURE__DATA, null, msgs); + return basicSetData((LayoutData)otherEnd, msgs); case GMFGraphPackage.CUSTOM_FIGURE__PARENT: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); @@ -825,6 +897,10 @@ */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { + case GMFGraphPackage.CUSTOM_FIGURE__DATA: + return basicSetData(null, msgs); + case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT: + return basicSetLayout(null, msgs); case GMFGraphPackage.CUSTOM_FIGURE__CHILDREN: return ((InternalEList)getChildren()).basicRemove(otherEnd, msgs); case GMFGraphPackage.CUSTOM_FIGURE__PARENT: @@ -873,6 +949,10 @@ */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { + case GMFGraphPackage.CUSTOM_FIGURE__DATA: + return getData(); + case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT: + return getLayout(); case GMFGraphPackage.CUSTOM_FIGURE__NAME: return getName(); case GMFGraphPackage.CUSTOM_FIGURE__CHILDREN: @@ -899,8 +979,6 @@ return getLocation(); case GMFGraphPackage.CUSTOM_FIGURE__SIZE: return getSize(); - case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT_MANAGER: - return getLayoutManager(); case GMFGraphPackage.CUSTOM_FIGURE__QUALIFIED_CLASS_NAME: return getQualifiedClassName(); case GMFGraphPackage.CUSTOM_FIGURE__BUNDLE_NAME: @@ -916,6 +994,12 @@ */ public void eSet(int featureID, Object newValue) { switch (featureID) { + case GMFGraphPackage.CUSTOM_FIGURE__DATA: + setData((LayoutData)newValue); + return; + case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT: + setLayout((Layout)newValue); + return; case GMFGraphPackage.CUSTOM_FIGURE__NAME: setName((String)newValue); return; @@ -953,9 +1037,6 @@ case GMFGraphPackage.CUSTOM_FIGURE__SIZE: setSize((Point)newValue); return; - case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT_MANAGER: - setLayoutManager((String)newValue); - return; case GMFGraphPackage.CUSTOM_FIGURE__QUALIFIED_CLASS_NAME: setQualifiedClassName((String)newValue); return; @@ -973,6 +1054,12 @@ */ public void eUnset(int featureID) { switch (featureID) { + case GMFGraphPackage.CUSTOM_FIGURE__DATA: + setData((LayoutData)null); + return; + case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT: + setLayout((Layout)null); + return; case GMFGraphPackage.CUSTOM_FIGURE__NAME: setName(NAME_EDEFAULT); return; @@ -1009,9 +1096,6 @@ case GMFGraphPackage.CUSTOM_FIGURE__SIZE: setSize((Point)null); return; - case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT_MANAGER: - setLayoutManager(LAYOUT_MANAGER_EDEFAULT); - return; case GMFGraphPackage.CUSTOM_FIGURE__QUALIFIED_CLASS_NAME: setQualifiedClassName(QUALIFIED_CLASS_NAME_EDEFAULT); return; @@ -1029,6 +1113,10 @@ */ public boolean eIsSet(int featureID) { switch (featureID) { + case GMFGraphPackage.CUSTOM_FIGURE__DATA: + return data != null; + case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT: + return layout != null; case GMFGraphPackage.CUSTOM_FIGURE__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case GMFGraphPackage.CUSTOM_FIGURE__CHILDREN: @@ -1055,8 +1143,6 @@ return location != null; case GMFGraphPackage.CUSTOM_FIGURE__SIZE: return size != null; - case GMFGraphPackage.CUSTOM_FIGURE__LAYOUT_MANAGER: - return LAYOUT_MANAGER_EDEFAULT == null ? layoutManager != null : !LAYOUT_MANAGER_EDEFAULT.equals(layoutManager); case GMFGraphPackage.CUSTOM_FIGURE__QUALIFIED_CLASS_NAME: return QUALIFIED_CLASS_NAME_EDEFAULT == null ? qualifiedClassName != null : !QUALIFIED_CLASS_NAME_EDEFAULT.equals(qualifiedClassName); case GMFGraphPackage.CUSTOM_FIGURE__BUNDLE_NAME: @@ -1120,8 +1206,6 @@ StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); - result.append(", layoutManager: "); - result.append(layoutManager); result.append(", qualifiedClassName: "); result.append(qualifiedClassName); result.append(", bundleName: "); Index: src/org/eclipse/gmf/gmfgraph/impl/GMFGraphPackageImpl.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/impl/GMFGraphPackageImpl.java,v retrieving revision 1.5 diff -u -r1.5 GMFGraphPackageImpl.java --- src/org/eclipse/gmf/gmfgraph/impl/GMFGraphPackageImpl.java 4 Feb 2006 23:36:21 -0000 1.5 +++ src/org/eclipse/gmf/gmfgraph/impl/GMFGraphPackageImpl.java 9 Feb 2006 18:41:46 -0000 @@ -9,11 +9,15 @@ import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.gmf.gmfgraph.Alignment; import org.eclipse.gmf.gmfgraph.BasicFont; import org.eclipse.gmf.gmfgraph.Border; +import org.eclipse.gmf.gmfgraph.BorderLayout; +import org.eclipse.gmf.gmfgraph.BorderLayoutData; import org.eclipse.gmf.gmfgraph.Canvas; import org.eclipse.gmf.gmfgraph.Child; import org.eclipse.gmf.gmfgraph.Color; @@ -23,11 +27,15 @@ import org.eclipse.gmf.gmfgraph.Connection; import org.eclipse.gmf.gmfgraph.ConnectionFigure; import org.eclipse.gmf.gmfgraph.ConstantColor; +import org.eclipse.gmf.gmfgraph.CustomAttribute; import org.eclipse.gmf.gmfgraph.CustomBorder; import org.eclipse.gmf.gmfgraph.CustomClass; +import org.eclipse.gmf.gmfgraph.CustomConfigurableClass; import org.eclipse.gmf.gmfgraph.CustomConnection; import org.eclipse.gmf.gmfgraph.CustomDecoration; import org.eclipse.gmf.gmfgraph.CustomFigure; +import org.eclipse.gmf.gmfgraph.CustomLayout; +import org.eclipse.gmf.gmfgraph.CustomLayoutData; import org.eclipse.gmf.gmfgraph.DecorationFigure; import org.eclipse.gmf.gmfgraph.DiagramElement; import org.eclipse.gmf.gmfgraph.Dimension; @@ -43,10 +51,16 @@ import org.eclipse.gmf.gmfgraph.GMFGraphPackage; import org.eclipse.gmf.gmfgraph.GeneralFacet; import org.eclipse.gmf.gmfgraph.GradientFacet; +import org.eclipse.gmf.gmfgraph.GridLayout; +import org.eclipse.gmf.gmfgraph.GridLayoutData; import org.eclipse.gmf.gmfgraph.Identity; +import org.eclipse.gmf.gmfgraph.ImplementationAware; import org.eclipse.gmf.gmfgraph.Insets; import org.eclipse.gmf.gmfgraph.Label; import org.eclipse.gmf.gmfgraph.LabeledContainer; +import org.eclipse.gmf.gmfgraph.Layout; +import org.eclipse.gmf.gmfgraph.LayoutData; +import org.eclipse.gmf.gmfgraph.Layoutable; import org.eclipse.gmf.gmfgraph.LineBorder; import org.eclipse.gmf.gmfgraph.LineKind; import org.eclipse.gmf.gmfgraph.MarginBorder; @@ -383,6 +397,83 @@ * * @generated */ + private EClass layoutDataEClass = null; + + /** + * + * + * @generated + */ + private EClass customLayoutDataEClass = null; + + /** + * + * + * @generated + */ + private EClass gridLayoutDataEClass = null; + + /** + * + * + * @generated + */ + private EClass borderLayoutDataEClass = null; + + /** + * + * + * @generated + */ + private EClass layoutableEClass = null; + + /** + * + * + * @generated + */ + private EClass layoutEClass = null; + + /** + * + * + * @generated + */ + private EClass customLayoutEClass = null; + + /** + * + * + * @generated + */ + private EClass gridLayoutEClass = null; + + /** + * + * + * @generated + */ + private EClass borderLayoutEClass = null; + + /** + * + * + * @generated + */ + private EClass customConfigurableClassEClass = null; + + /** + * + * + * @generated + */ + private EClass customAttributeEClass = null; + + /** + * + * + * @generated + */ private EEnum colorConstantsEEnum = null; /** @@ -407,6 +498,13 @@ private EEnum lineKindEEnum = null; /** + * + * + * @generated + */ + private EEnum alignmentEEnum = null; + + /** * Creates an instance of the model Package, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. @@ -848,15 +946,6 @@ * * @generated */ - public EAttribute getFigure_LayoutManager() { - return (EAttribute)figureEClass.getEStructuralFeatures().get(12); - } - - /** - * - * - * @generated - */ public EClass getFigureRef() { return figureRefEClass; } @@ -1469,6 +1558,321 @@ * * @generated */ + public EClass getLayoutData() { + return layoutDataEClass; + } + + /** + * + * + * @generated + */ + public EReference getLayoutData_Owner() { + return (EReference)layoutDataEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCustomLayoutData() { + return customLayoutDataEClass; + } + + /** + * + * + * @generated + */ + public EClass getGridLayoutData() { + return gridLayoutDataEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayoutData_GrabExcessHorizontalSpace() { + return (EAttribute)gridLayoutDataEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayoutData_GrabExcessVerticalSpace() { + return (EAttribute)gridLayoutDataEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayoutData_VerticalAlignment() { + return (EAttribute)gridLayoutDataEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayoutData_HorizontalAlignment() { + return (EAttribute)gridLayoutDataEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayoutData_VerticalSpan() { + return (EAttribute)gridLayoutDataEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayoutData_HorizontalSpan() { + return (EAttribute)gridLayoutDataEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayoutData_HorizontalIndent() { + return (EAttribute)gridLayoutDataEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getGridLayoutData_SizeHint() { + return (EReference)gridLayoutDataEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getBorderLayoutData() { + return borderLayoutDataEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getBorderLayoutData_Alignment() { + return (EAttribute)borderLayoutDataEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getBorderLayoutData_Vertical() { + return (EAttribute)borderLayoutDataEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getLayoutable() { + return layoutableEClass; + } + + /** + * + * + * @generated + */ + public EReference getLayoutable_Data() { + return (EReference)layoutableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getLayoutable_Layout() { + return (EReference)layoutableEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getLayout() { + return layoutEClass; + } + + /** + * + * + * @generated + */ + public EClass getCustomLayout() { + return customLayoutEClass; + } + + /** + * + * + * @generated + */ + public EClass getGridLayout() { + return gridLayoutEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayout_NumColumns() { + return (EAttribute)gridLayoutEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGridLayout_EqualWidth() { + return (EAttribute)gridLayoutEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getGridLayout_Margins() { + return (EReference)gridLayoutEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getGridLayout_Spacing() { + return (EReference)gridLayoutEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getBorderLayout() { + return borderLayoutEClass; + } + + /** + * + * + * @generated + */ + public EReference getBorderLayout_Spacing() { + return (EReference)borderLayoutEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCustomConfigurableClass() { + return customConfigurableClassEClass; + } + + /** + * + * + * @generated + */ + public EReference getCustomConfigurableClass_Attributes() { + return (EReference)customConfigurableClassEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCustomAttribute() { + return customAttributeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCustomAttribute_Name() { + return (EAttribute)customAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCustomAttribute_Type() { + return (EAttribute)customAttributeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCustomAttribute_Value() { + return (EAttribute)customAttributeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCustomAttribute_DirectAccess() { + return (EAttribute)customAttributeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCustomAttribute_MultiStatementValue() { + return (EAttribute)customAttributeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ public EEnum getColorConstants() { return colorConstantsEEnum; } @@ -1496,6 +1900,15 @@ * * @generated */ + public EEnum getAlignment() { + return alignmentEEnum; + } + + /** + * + * + * @generated + */ public GMFGraphFactory getGMFGraphFactory() { return (GMFGraphFactory)getEFactoryInstance(); } @@ -1572,7 +1985,6 @@ createEReference(figureEClass, FIGURE__BORDER); createEReference(figureEClass, FIGURE__LOCATION); createEReference(figureEClass, FIGURE__SIZE); - createEAttribute(figureEClass, FIGURE__LAYOUT_MANAGER); figureRefEClass = createEClass(FIGURE_REF); createEReference(figureRefEClass, FIGURE_REF__FIGURE); @@ -1672,11 +2084,58 @@ customBorderEClass = createEClass(CUSTOM_BORDER); + layoutDataEClass = createEClass(LAYOUT_DATA); + createEReference(layoutDataEClass, LAYOUT_DATA__OWNER); + + customLayoutDataEClass = createEClass(CUSTOM_LAYOUT_DATA); + + gridLayoutDataEClass = createEClass(GRID_LAYOUT_DATA); + createEAttribute(gridLayoutDataEClass, GRID_LAYOUT_DATA__GRAB_EXCESS_HORIZONTAL_SPACE); + createEAttribute(gridLayoutDataEClass, GRID_LAYOUT_DATA__GRAB_EXCESS_VERTICAL_SPACE); + createEAttribute(gridLayoutDataEClass, GRID_LAYOUT_DATA__VERTICAL_ALIGNMENT); + createEAttribute(gridLayoutDataEClass, GRID_LAYOUT_DATA__HORIZONTAL_ALIGNMENT); + createEAttribute(gridLayoutDataEClass, GRID_LAYOUT_DATA__VERTICAL_SPAN); + createEAttribute(gridLayoutDataEClass, GRID_LAYOUT_DATA__HORIZONTAL_SPAN); + createEAttribute(gridLayoutDataEClass, GRID_LAYOUT_DATA__HORIZONTAL_INDENT); + createEReference(gridLayoutDataEClass, GRID_LAYOUT_DATA__SIZE_HINT); + + borderLayoutDataEClass = createEClass(BORDER_LAYOUT_DATA); + createEAttribute(borderLayoutDataEClass, BORDER_LAYOUT_DATA__ALIGNMENT); + createEAttribute(borderLayoutDataEClass, BORDER_LAYOUT_DATA__VERTICAL); + + layoutableEClass = createEClass(LAYOUTABLE); + createEReference(layoutableEClass, LAYOUTABLE__DATA); + createEReference(layoutableEClass, LAYOUTABLE__LAYOUT); + + layoutEClass = createEClass(LAYOUT); + + customLayoutEClass = createEClass(CUSTOM_LAYOUT); + + gridLayoutEClass = createEClass(GRID_LAYOUT); + createEAttribute(gridLayoutEClass, GRID_LAYOUT__NUM_COLUMNS); + createEAttribute(gridLayoutEClass, GRID_LAYOUT__EQUAL_WIDTH); + createEReference(gridLayoutEClass, GRID_LAYOUT__MARGINS); + createEReference(gridLayoutEClass, GRID_LAYOUT__SPACING); + + borderLayoutEClass = createEClass(BORDER_LAYOUT); + createEReference(borderLayoutEClass, BORDER_LAYOUT__SPACING); + + customConfigurableClassEClass = createEClass(CUSTOM_CONFIGURABLE_CLASS); + createEReference(customConfigurableClassEClass, CUSTOM_CONFIGURABLE_CLASS__ATTRIBUTES); + + customAttributeEClass = createEClass(CUSTOM_ATTRIBUTE); + createEAttribute(customAttributeEClass, CUSTOM_ATTRIBUTE__NAME); + createEAttribute(customAttributeEClass, CUSTOM_ATTRIBUTE__TYPE); + createEAttribute(customAttributeEClass, CUSTOM_ATTRIBUTE__VALUE); + createEAttribute(customAttributeEClass, CUSTOM_ATTRIBUTE__DIRECT_ACCESS); + createEAttribute(customAttributeEClass, CUSTOM_ATTRIBUTE__MULTI_STATEMENT_VALUE); + // Create enums colorConstantsEEnum = createEEnum(COLOR_CONSTANTS); fontStyleEEnum = createEEnum(FONT_STYLE); directionEEnum = createEEnum(DIRECTION); lineKindEEnum = createEEnum(LINE_KIND); + alignmentEEnum = createEEnum(ALIGNMENT); } /** @@ -1712,6 +2171,7 @@ childEClass.getESuperTypes().add(this.getDiagramElement()); generalFacetEClass.getESuperTypes().add(this.getVisualFacet()); gradientFacetEClass.getESuperTypes().add(this.getVisualFacet()); + figureMarkerEClass.getESuperTypes().add(this.getLayoutable()); figureEClass.getESuperTypes().add(this.getFigureMarker()); figureEClass.getESuperTypes().add(this.getIdentity()); figureRefEClass.getESuperTypes().add(this.getFigureMarker()); @@ -1744,6 +2204,17 @@ compoundBorderEClass.getESuperTypes().add(this.getBorder()); customBorderEClass.getESuperTypes().add(this.getBorder()); customBorderEClass.getESuperTypes().add(this.getCustomClass()); + layoutDataEClass.getESuperTypes().add(this.getCustomClass()); + customLayoutDataEClass.getESuperTypes().add(this.getLayout()); + customLayoutDataEClass.getESuperTypes().add(this.getCustomConfigurableClass()); + gridLayoutDataEClass.getESuperTypes().add(this.getLayoutData()); + borderLayoutDataEClass.getESuperTypes().add(this.getLayoutData()); + layoutEClass.getESuperTypes().add(this.getCustomClass()); + customLayoutEClass.getESuperTypes().add(this.getLayout()); + customLayoutEClass.getESuperTypes().add(this.getCustomConfigurableClass()); + gridLayoutEClass.getESuperTypes().add(this.getLayout()); + borderLayoutEClass.getESuperTypes().add(this.getLayout()); + customConfigurableClassEClass.getESuperTypes().add(this.getCustomClass()); // Initialize classes and features; add operations and parameters initEClass(canvasEClass, Canvas.class, "Canvas", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); @@ -1799,7 +2270,6 @@ initEReference(getFigure_Border(), this.getBorder(), null, "border", null, 0, 1, Figure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getFigure_Location(), this.getPoint(), null, "location", null, 0, 1, Figure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getFigure_Size(), this.getPoint(), null, "size", null, 0, 1, Figure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFigure_LayoutManager(), ecorePackage.getEString(), "layoutManager", null, 0, 1, Figure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(figureRefEClass, FigureRef.class, "FigureRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getFigureRef_Figure(), this.getFigure(), null, "figure", null, 1, 1, FigureRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); @@ -1899,6 +2369,52 @@ initEClass(customBorderEClass, CustomBorder.class, "CustomBorder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEClass(layoutDataEClass, LayoutData.class, "LayoutData", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getLayoutData_Owner(), this.getLayoutable(), this.getLayoutable_Data(), "owner", null, 1, 1, LayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(customLayoutDataEClass, CustomLayoutData.class, "CustomLayoutData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(gridLayoutDataEClass, GridLayoutData.class, "GridLayoutData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGridLayoutData_GrabExcessHorizontalSpace(), ecorePackage.getEBoolean(), "grabExcessHorizontalSpace", "false", 1, 1, GridLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGridLayoutData_GrabExcessVerticalSpace(), ecorePackage.getEBoolean(), "grabExcessVerticalSpace", "false", 1, 1, GridLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGridLayoutData_VerticalAlignment(), this.getAlignment(), "verticalAlignment", "CENTER", 1, 1, GridLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGridLayoutData_HorizontalAlignment(), this.getAlignment(), "horizontalAlignment", "CENTER", 1, 1, GridLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGridLayoutData_VerticalSpan(), ecorePackage.getEInt(), "verticalSpan", "1", 1, 1, GridLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGridLayoutData_HorizontalSpan(), ecorePackage.getEInt(), "horizontalSpan", "1", 1, 1, GridLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGridLayoutData_HorizontalIndent(), ecorePackage.getEInt(), "horizontalIndent", null, 1, 1, GridLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGridLayoutData_SizeHint(), this.getDimension(), null, "sizeHint", null, 0, 1, GridLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(borderLayoutDataEClass, BorderLayoutData.class, "BorderLayoutData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBorderLayoutData_Alignment(), this.getAlignment(), "alignment", "CENTER", 1, 1, BorderLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getBorderLayoutData_Vertical(), ecorePackage.getEBoolean(), "vertical", "false", 0, 1, BorderLayoutData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(layoutableEClass, Layoutable.class, "Layoutable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getLayoutable_Data(), this.getLayoutData(), this.getLayoutData_Owner(), "data", null, 0, 1, Layoutable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getLayoutable_Layout(), this.getLayout(), null, "layout", null, 0, 1, Layoutable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(layoutEClass, Layout.class, "Layout", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(customLayoutEClass, CustomLayout.class, "CustomLayout", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(gridLayoutEClass, GridLayout.class, "GridLayout", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGridLayout_NumColumns(), ecorePackage.getEInt(), "numColumns", "1", 1, 1, GridLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGridLayout_EqualWidth(), ecorePackage.getEBoolean(), "equalWidth", "true", 1, 1, GridLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGridLayout_Margins(), this.getDimension(), null, "margins", null, 0, 1, GridLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGridLayout_Spacing(), this.getDimension(), null, "spacing", null, 0, 1, GridLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(borderLayoutEClass, BorderLayout.class, "BorderLayout", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getBorderLayout_Spacing(), this.getDimension(), null, "spacing", null, 0, 1, BorderLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(customConfigurableClassEClass, CustomConfigurableClass.class, "CustomConfigurableClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCustomConfigurableClass_Attributes(), this.getCustomAttribute(), null, "attributes", null, 0, -1, CustomConfigurableClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(customAttributeEClass, CustomAttribute.class, "CustomAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCustomAttribute_Name(), ecorePackage.getEString(), "name", null, 1, 1, CustomAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCustomAttribute_Type(), ecorePackage.getEString(), "type", "Object", 1, 1, CustomAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCustomAttribute_Value(), ecorePackage.getEString(), "value", "null", 1, 1, CustomAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCustomAttribute_DirectAccess(), ecorePackage.getEBoolean(), "directAccess", "false", 1, 1, CustomAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCustomAttribute_MultiStatementValue(), ecorePackage.getEBoolean(), "multiStatementValue", "false", 1, 1, CustomAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + // Initialize enums and add enum literals initEEnum(colorConstantsEEnum, ColorConstants.class, "ColorConstants"); addEEnumLiteral(colorConstantsEEnum, ColorConstants.WHITE_LITERAL); @@ -1943,6 +2459,12 @@ addEEnumLiteral(lineKindEEnum, LineKind.LINE_DASHDOTDOT_LITERAL); addEEnumLiteral(lineKindEEnum, LineKind.LINE_CUSTOM_LITERAL); + initEEnum(alignmentEEnum, Alignment.class, "Alignment"); + addEEnumLiteral(alignmentEEnum, Alignment.BEGINNING_LITERAL); + addEEnumLiteral(alignmentEEnum, Alignment.CENTER_LITERAL); + addEEnumLiteral(alignmentEEnum, Alignment.END_LITERAL); + addEEnumLiteral(alignmentEEnum, Alignment.FILL_LITERAL); + // Create resource createResource(eNS_URI); } Index: src/org/eclipse/gmf/gmfgraph/impl/LabelImpl.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/impl/LabelImpl.java,v retrieving revision 1.5 diff -u -r1.5 LabelImpl.java --- src/org/eclipse/gmf/gmfgraph/impl/LabelImpl.java 5 Jan 2006 17:33:08 -0000 1.5 +++ src/org/eclipse/gmf/gmfgraph/impl/LabelImpl.java 9 Feb 2006 18:41:46 -0000 @@ -27,6 +27,8 @@ import org.eclipse.gmf.gmfgraph.Identity; import org.eclipse.gmf.gmfgraph.Insets; import org.eclipse.gmf.gmfgraph.Label; +import org.eclipse.gmf.gmfgraph.Layout; +import org.eclipse.gmf.gmfgraph.LayoutData; import org.eclipse.gmf.gmfgraph.Point; /** @@ -36,6 +38,8 @@ *

    * The following features are implemented: *

    *

    @@ -58,6 +61,26 @@ */ public class LabelImpl extends EObjectImpl implements Label { /** + * The cached value of the '{@link #getData() Data}' containment reference. + * + * + * @see #getData() + * @generated + * @ordered + */ + protected LayoutData data = null; + + /** + * The cached value of the '{@link #getLayout() Layout}' containment reference. + * + * + * @see #getLayout() + * @generated + * @ordered + */ + protected Layout layout = null; + + /** * The default value of the '{@link #getName() Name}' attribute. * * @@ -188,52 +211,50 @@ protected Point size = null; /** - * The default value of the '{@link #getLayoutManager() Layout Manager}' attribute. + * The default value of the '{@link #getText() Text}' attribute. * * - * @see #getLayoutManager() + * @see #getText() * @generated * @ordered */ - protected static final String LAYOUT_MANAGER_EDEFAULT = null; + protected static final String TEXT_EDEFAULT = null; /** - * The cached value of the '{@link #getLayoutManager() Layout Manager}' attribute. + * The cached value of the '{@link #getText() Text}' attribute. * * - * @see #getLayoutManager() + * @see #getText() * @generated * @ordered */ - protected String layoutManager = LAYOUT_MANAGER_EDEFAULT; + protected String text = TEXT_EDEFAULT; /** - * The default value of the '{@link #getText() Text}' attribute. * * - * @see #getText() * @generated - * @ordered */ - protected static final String TEXT_EDEFAULT = null; + protected LabelImpl() { + super(); + } /** - * The cached value of the '{@link #getText() Text}' attribute. * * - * @see #getText() * @generated - * @ordered */ - protected String text = TEXT_EDEFAULT; + protected EClass eStaticClass() { + return GMFGraphPackage.eINSTANCE.getLabel(); + } /** * * * @generated */ - protected LabelImpl() { - super(); + public LayoutData getData() { + return data; } /** @@ -241,8 +262,76 @@ * * @generated */ - protected EClass eStaticClass() { - return GMFGraphPackage.eINSTANCE.getLabel(); + public NotificationChain basicSetData(LayoutData newData, NotificationChain msgs) { + LayoutData oldData = data; + data = newData; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABEL__DATA, oldData, newData); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setData(LayoutData newData) { + if (newData != data) { + NotificationChain msgs = null; + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, GMFGraphPackage.LAYOUT_DATA__OWNER, LayoutData.class, msgs); + if (newData != null) + msgs = ((InternalEObject)newData).eInverseAdd(this, GMFGraphPackage.LAYOUT_DATA__OWNER, LayoutData.class, msgs); + msgs = basicSetData(newData, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABEL__DATA, newData, newData)); + } + + /** + * + * + * @generated + */ + public Layout getLayout() { + return layout; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLayout(Layout newLayout, NotificationChain msgs) { + Layout oldLayout = layout; + layout = newLayout; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABEL__LAYOUT, oldLayout, newLayout); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLayout(Layout newLayout) { + if (newLayout != layout) { + NotificationChain msgs = null; + if (layout != null) + msgs = ((InternalEObject)layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.LABEL__LAYOUT, null, msgs); + if (newLayout != null) + msgs = ((InternalEObject)newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.LABEL__LAYOUT, null, msgs); + msgs = basicSetLayout(newLayout, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABEL__LAYOUT, newLayout, newLayout)); } /** @@ -723,27 +812,6 @@ * * @generated */ - public String getLayoutManager() { - return layoutManager; - } - - /** - * - * - * @generated - */ - public void setLayoutManager(String newLayoutManager) { - String oldLayoutManager = layoutManager; - layoutManager = newLayoutManager; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.LABEL__LAYOUT_MANAGER, oldLayoutManager, layoutManager)); - } - - /** - * - * - * @generated - */ public String getText() { return text; } @@ -767,6 +835,10 @@ */ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { + case GMFGraphPackage.LABEL__DATA: + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.LABEL__DATA, null, msgs); + return basicSetData((LayoutData)otherEnd, msgs); case GMFGraphPackage.LABEL__PARENT: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); @@ -782,6 +854,10 @@ */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { + case GMFGraphPackage.LABEL__DATA: + return basicSetData(null, msgs); + case GMFGraphPackage.LABEL__LAYOUT: + return basicSetLayout(null, msgs); case GMFGraphPackage.LABEL__CHILDREN: return ((InternalEList)getChildren()).basicRemove(otherEnd, msgs); case GMFGraphPackage.LABEL__PARENT: @@ -830,6 +906,10 @@ */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { + case GMFGraphPackage.LABEL__DATA: + return getData(); + case GMFGraphPackage.LABEL__LAYOUT: + return getLayout(); case GMFGraphPackage.LABEL__NAME: return getName(); case GMFGraphPackage.LABEL__CHILDREN: @@ -856,8 +936,6 @@ return getLocation(); case GMFGraphPackage.LABEL__SIZE: return getSize(); - case GMFGraphPackage.LABEL__LAYOUT_MANAGER: - return getLayoutManager(); case GMFGraphPackage.LABEL__TEXT: return getText(); } @@ -871,6 +949,12 @@ */ public void eSet(int featureID, Object newValue) { switch (featureID) { + case GMFGraphPackage.LABEL__DATA: + setData((LayoutData)newValue); + return; + case GMFGraphPackage.LABEL__LAYOUT: + setLayout((Layout)newValue); + return; case GMFGraphPackage.LABEL__NAME: setName((String)newValue); return; @@ -908,9 +992,6 @@ case GMFGraphPackage.LABEL__SIZE: setSize((Point)newValue); return; - case GMFGraphPackage.LABEL__LAYOUT_MANAGER: - setLayoutManager((String)newValue); - return; case GMFGraphPackage.LABEL__TEXT: setText((String)newValue); return; @@ -925,6 +1006,12 @@ */ public void eUnset(int featureID) { switch (featureID) { + case GMFGraphPackage.LABEL__DATA: + setData((LayoutData)null); + return; + case GMFGraphPackage.LABEL__LAYOUT: + setLayout((Layout)null); + return; case GMFGraphPackage.LABEL__NAME: setName(NAME_EDEFAULT); return; @@ -961,9 +1048,6 @@ case GMFGraphPackage.LABEL__SIZE: setSize((Point)null); return; - case GMFGraphPackage.LABEL__LAYOUT_MANAGER: - setLayoutManager(LAYOUT_MANAGER_EDEFAULT); - return; case GMFGraphPackage.LABEL__TEXT: setText(TEXT_EDEFAULT); return; @@ -978,6 +1062,10 @@ */ public boolean eIsSet(int featureID) { switch (featureID) { + case GMFGraphPackage.LABEL__DATA: + return data != null; + case GMFGraphPackage.LABEL__LAYOUT: + return layout != null; case GMFGraphPackage.LABEL__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case GMFGraphPackage.LABEL__CHILDREN: @@ -1004,8 +1092,6 @@ return location != null; case GMFGraphPackage.LABEL__SIZE: return size != null; - case GMFGraphPackage.LABEL__LAYOUT_MANAGER: - return LAYOUT_MANAGER_EDEFAULT == null ? layoutManager != null : !LAYOUT_MANAGER_EDEFAULT.equals(layoutManager); case GMFGraphPackage.LABEL__TEXT: return TEXT_EDEFAULT == null ? text != null : !TEXT_EDEFAULT.equals(text); } @@ -1053,8 +1139,6 @@ StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); - result.append(", layoutManager: "); - result.append(layoutManager); result.append(", text: "); result.append(text); result.append(')'); Index: src/org/eclipse/gmf/gmfgraph/impl/GMFGraphFactoryImpl.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/impl/GMFGraphFactoryImpl.java,v retrieving revision 1.4 diff -u -r1.4 GMFGraphFactoryImpl.java --- src/org/eclipse/gmf/gmfgraph/impl/GMFGraphFactoryImpl.java 5 Jan 2006 17:33:07 -0000 1.4 +++ src/org/eclipse/gmf/gmfgraph/impl/GMFGraphFactoryImpl.java 9 Feb 2006 18:41:45 -0000 @@ -12,6 +12,8 @@ import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.gmf.gmfgraph.*; + import org.eclipse.gmf.gmfgraph.BasicFont; import org.eclipse.gmf.gmfgraph.Canvas; import org.eclipse.gmf.gmfgraph.Child; @@ -126,6 +128,14 @@ case GMFGraphPackage.MARGIN_BORDER: return createMarginBorder(); case GMFGraphPackage.COMPOUND_BORDER: return createCompoundBorder(); case GMFGraphPackage.CUSTOM_BORDER: return createCustomBorder(); + case GMFGraphPackage.CUSTOM_LAYOUT_DATA: return createCustomLayoutData(); + case GMFGraphPackage.GRID_LAYOUT_DATA: return createGridLayoutData(); + case GMFGraphPackage.BORDER_LAYOUT_DATA: return createBorderLayoutData(); + case GMFGraphPackage.CUSTOM_LAYOUT: return createCustomLayout(); + case GMFGraphPackage.GRID_LAYOUT: return createGridLayout(); + case GMFGraphPackage.BORDER_LAYOUT: return createBorderLayout(); + case GMFGraphPackage.CUSTOM_CONFIGURABLE_CLASS: return createCustomConfigurableClass(); + case GMFGraphPackage.CUSTOM_ATTRIBUTE: return createCustomAttribute(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } @@ -146,6 +156,8 @@ return createDirectionFromString(eDataType, initialValue); case GMFGraphPackage.LINE_KIND: return createLineKindFromString(eDataType, initialValue); + case GMFGraphPackage.ALIGNMENT: + return createAlignmentFromString(eDataType, initialValue); default: throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); } @@ -166,6 +178,8 @@ return convertDirectionToString(eDataType, instanceValue); case GMFGraphPackage.LINE_KIND: return convertLineKindToString(eDataType, instanceValue); + case GMFGraphPackage.ALIGNMENT: + return convertAlignmentToString(eDataType, instanceValue); default: throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); } @@ -496,6 +510,86 @@ * * @generated */ + public CustomLayoutData createCustomLayoutData() { + CustomLayoutDataImpl customLayoutData = new CustomLayoutDataImpl(); + return customLayoutData; + } + + /** + * + * + * @generated + */ + public GridLayoutData createGridLayoutData() { + GridLayoutDataImpl gridLayoutData = new GridLayoutDataImpl(); + return gridLayoutData; + } + + /** + * + * + * @generated + */ + public BorderLayoutData createBorderLayoutData() { + BorderLayoutDataImpl borderLayoutData = new BorderLayoutDataImpl(); + return borderLayoutData; + } + + /** + * + * + * @generated + */ + public CustomLayout createCustomLayout() { + CustomLayoutImpl customLayout = new CustomLayoutImpl(); + return customLayout; + } + + /** + * + * + * @generated + */ + public GridLayout createGridLayout() { + GridLayoutImpl gridLayout = new GridLayoutImpl(); + return gridLayout; + } + + /** + * + * + * @generated + */ + public BorderLayout createBorderLayout() { + BorderLayoutImpl borderLayout = new BorderLayoutImpl(); + return borderLayout; + } + + /** + * + * + * @generated + */ + public CustomConfigurableClass createCustomConfigurableClass() { + CustomConfigurableClassImpl customConfigurableClass = new CustomConfigurableClassImpl(); + return customConfigurableClass; + } + + /** + * + * + * @generated + */ + public CustomAttribute createCustomAttribute() { + CustomAttributeImpl customAttribute = new CustomAttributeImpl(); + return customAttribute; + } + + /** + * + * + * @generated + */ public ColorConstants createColorConstantsFromString(EDataType eDataType, String initialValue) { ColorConstants result = ColorConstants.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); @@ -576,6 +670,26 @@ * * @generated */ + public Alignment createAlignmentFromString(EDataType eDataType, String initialValue) { + Alignment result = Alignment.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAlignmentToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ public GMFGraphPackage getGMFGraphPackage() { return (GMFGraphPackage)getEPackage(); } Index: src/org/eclipse/gmf/gmfgraph/impl/FigureRefImpl.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/impl/FigureRefImpl.java,v retrieving revision 1.2 diff -u -r1.2 FigureRefImpl.java --- src/org/eclipse/gmf/gmfgraph/impl/FigureRefImpl.java 5 Jan 2006 17:33:08 -0000 1.2 +++ src/org/eclipse/gmf/gmfgraph/impl/FigureRefImpl.java 9 Feb 2006 18:41:45 -0000 @@ -7,6 +7,8 @@ package org.eclipse.gmf.gmfgraph.impl; import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; @@ -15,6 +17,9 @@ import org.eclipse.gmf.gmfgraph.FigureRef; import org.eclipse.gmf.gmfgraph.GMFGraphPackage; +import org.eclipse.gmf.gmfgraph.Layout; +import org.eclipse.gmf.gmfgraph.LayoutData; + /** * * An implementation of the model object 'Figure Ref'. @@ -22,6 +27,8 @@ *

    * The following features are implemented: *

    *

    @@ -30,6 +37,26 @@ */ public class FigureRefImpl extends EObjectImpl implements FigureRef { /** + * The cached value of the '{@link #getData() Data}' containment reference. + * + * + * @see #getData() + * @generated + * @ordered + */ + protected LayoutData data = null; + + /** + * The cached value of the '{@link #getLayout() Layout}' containment reference. + * + * + * @see #getLayout() + * @generated + * @ordered + */ + protected Layout layout = null; + + /** * The cached value of the '{@link #getFigure() Figure}' reference. * * @@ -62,6 +89,92 @@ * * @generated */ + public LayoutData getData() { + return data; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetData(LayoutData newData, NotificationChain msgs) { + LayoutData oldData = data; + data = newData; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GMFGraphPackage.FIGURE_REF__DATA, oldData, newData); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setData(LayoutData newData) { + if (newData != data) { + NotificationChain msgs = null; + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, GMFGraphPackage.LAYOUT_DATA__OWNER, LayoutData.class, msgs); + if (newData != null) + msgs = ((InternalEObject)newData).eInverseAdd(this, GMFGraphPackage.LAYOUT_DATA__OWNER, LayoutData.class, msgs); + msgs = basicSetData(newData, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.FIGURE_REF__DATA, newData, newData)); + } + + /** + * + * + * @generated + */ + public Layout getLayout() { + return layout; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLayout(Layout newLayout, NotificationChain msgs) { + Layout oldLayout = layout; + layout = newLayout; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GMFGraphPackage.FIGURE_REF__LAYOUT, oldLayout, newLayout); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLayout(Layout newLayout) { + if (newLayout != layout) { + NotificationChain msgs = null; + if (layout != null) + msgs = ((InternalEObject)layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.FIGURE_REF__LAYOUT, null, msgs); + if (newLayout != null) + msgs = ((InternalEObject)newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.FIGURE_REF__LAYOUT, null, msgs); + msgs = basicSetLayout(newLayout, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.FIGURE_REF__LAYOUT, newLayout, newLayout)); + } + + /** + * + * + * @generated + */ public Figure getFigure() { if (figure != null && figure.eIsProxy()) { InternalEObject oldFigure = (InternalEObject)figure; @@ -100,8 +213,42 @@ * * @generated */ + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GMFGraphPackage.FIGURE_REF__DATA: + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GMFGraphPackage.FIGURE_REF__DATA, null, msgs); + return basicSetData((LayoutData)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GMFGraphPackage.FIGURE_REF__DATA: + return basicSetData(null, msgs); + case GMFGraphPackage.FIGURE_REF__LAYOUT: + return basicSetLayout(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { + case GMFGraphPackage.FIGURE_REF__DATA: + return getData(); + case GMFGraphPackage.FIGURE_REF__LAYOUT: + return getLayout(); case GMFGraphPackage.FIGURE_REF__FIGURE: if (resolve) return getFigure(); return basicGetFigure(); @@ -116,6 +263,12 @@ */ public void eSet(int featureID, Object newValue) { switch (featureID) { + case GMFGraphPackage.FIGURE_REF__DATA: + setData((LayoutData)newValue); + return; + case GMFGraphPackage.FIGURE_REF__LAYOUT: + setLayout((Layout)newValue); + return; case GMFGraphPackage.FIGURE_REF__FIGURE: setFigure((Figure)newValue); return; @@ -130,6 +283,12 @@ */ public void eUnset(int featureID) { switch (featureID) { + case GMFGraphPackage.FIGURE_REF__DATA: + setData((LayoutData)null); + return; + case GMFGraphPackage.FIGURE_REF__LAYOUT: + setLayout((Layout)null); + return; case GMFGraphPackage.FIGURE_REF__FIGURE: setFigure((Figure)null); return; @@ -144,6 +303,10 @@ */ public boolean eIsSet(int featureID) { switch (featureID) { + case GMFGraphPackage.FIGURE_REF__DATA: + return data != null; + case GMFGraphPackage.FIGURE_REF__LAYOUT: + return layout != null; case GMFGraphPackage.FIGURE_REF__FIGURE: return figure != null; } Index: src/org/eclipse/gmf/gmfgraph/impl/ShapeImpl.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/impl/ShapeImpl.java,v retrieving revision 1.5 diff -u -r1.5 ShapeImpl.java --- src/org/eclipse/gmf/gmfgraph/impl/ShapeImpl.java 5 Jan 2006 17:33:08 -0000 1.5 +++ src/org/eclipse/gmf/gmfgraph/impl/ShapeImpl.java 9 Feb 2006 18:41:47 -0000 @@ -30,6 +30,8 @@ import org.eclipse.gmf.gmfgraph.GMFGraphPackage; import org.eclipse.gmf.gmfgraph.Identity; import org.eclipse.gmf.gmfgraph.Insets; +import org.eclipse.gmf.gmfgraph.Layout; +import org.eclipse.gmf.gmfgraph.LayoutData; import org.eclipse.gmf.gmfgraph.LineKind; import org.eclipse.gmf.gmfgraph.Point; import org.eclipse.gmf.gmfgraph.Shape; @@ -41,6 +43,8 @@ *

    * The following features are implemented: *