Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-08-21 11:43:07 +0000
committerCamille Letavernier2014-08-21 13:50:25 +0000
commitdbc038b44bcbb890ae256d15eb09eb285512f020 (patch)
tree757e736583eea3ae352ad9ac91a81df7e59b79ff /plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit
parentea48a20561464c3cbb7895d430583669a9f82fcc (diff)
downloadorg.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.gz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.xz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.zip
[Code style] Apply clean-up and formatter on Main plug-ins
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomEditPlugin.java21
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomItemProviderAdapterFactory.java54
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomizationItemProvider.java94
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/EClassCustomizationItemProvider.java25
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementCaseItemProvider.java98
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementSwitchQueryItemProvider.java35
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/FacetCustomizationItemProvider.java50
7 files changed, 231 insertions, 146 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomEditPlugin.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomEditPlugin.java
index d7ea01c2bf7..984e33f5c8e 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomEditPlugin.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomEditPlugin.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
- * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
+ * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.provider;
@@ -21,6 +21,7 @@ import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.provider.Efa
* This is the central singleton for the Custom edit plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public final class CustomEditPlugin extends EMFPlugin {
@@ -28,6 +29,7 @@ public final class CustomEditPlugin extends EMFPlugin {
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final CustomEditPlugin INSTANCE = new CustomEditPlugin();
@@ -36,6 +38,7 @@ public final class CustomEditPlugin extends EMFPlugin {
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static Implementation plugin;
@@ -44,19 +47,20 @@ public final class CustomEditPlugin extends EMFPlugin {
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public CustomEditPlugin() {
- super
- (new ResourceLocator [] {
- Efacet2EditPlugin.INSTANCE,
- });
+ super(new ResourceLocator[] {
+ Efacet2EditPlugin.INSTANCE,
+ });
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -69,6 +73,7 @@ public final class CustomEditPlugin extends EMFPlugin {
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -80,6 +85,7 @@ public final class CustomEditPlugin extends EMFPlugin {
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static class Implementation extends EclipsePlugin {
@@ -87,6 +93,7 @@ public final class CustomEditPlugin extends EMFPlugin {
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Implementation() {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomItemProviderAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomItemProviderAdapterFactory.java
index ee0976f7363..8e85cbe0a79 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomItemProviderAdapterFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomItemProviderAdapterFactory.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
- * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
+ * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.provider;
@@ -39,6 +39,7 @@ import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.util.CustomA
* Note that most of the adapters are shared among multiple instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class CustomItemProviderAdapterFactory extends CustomAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
@@ -46,6 +47,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This keeps track of the root adapter factory that delegates to this adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedAdapterFactory parentAdapterFactory;
@@ -54,6 +56,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IChangeNotifier changeNotifier = new ChangeNotifier();
@@ -62,6 +65,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Object> supportedTypes = new ArrayList<Object>();
@@ -70,6 +74,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This constructs an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public CustomItemProviderAdapterFactory() {
@@ -84,6 +89,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected CustomizationItemProvider customizationItemProvider;
@@ -92,6 +98,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This creates an adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -107,6 +114,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected EClassCustomizationItemProvider eClassCustomizationItemProvider;
@@ -115,6 +123,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This creates an adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -130,6 +139,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected FacetCustomizationItemProvider facetCustomizationItemProvider;
@@ -138,6 +148,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This creates an adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -153,6 +164,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementSwitchQuery} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ETypedElementSwitchQueryItemProvider eTypedElementSwitchQueryItemProvider;
@@ -161,6 +173,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This creates an adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementSwitchQuery}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -176,6 +189,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ETypedElementCaseItemProvider eTypedElementCaseItemProvider;
@@ -184,6 +198,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This creates an adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -199,6 +214,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This returns the root adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ComposeableAdapterFactory getRootAdapterFactory() {
@@ -209,6 +225,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This sets the composed adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
@@ -218,6 +235,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -229,6 +247,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This implementation substitutes the factory itself as the key for the adapter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -239,13 +258,14 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object adapt(Object object, Object type) {
if (isFactoryForType(type)) {
Object adapter = super.adapt(object, type);
- if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ if (!(type instanceof Class<?>) || (((Class<?>) type).isInstance(adapter))) {
return adapter;
}
}
@@ -257,6 +277,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This adds a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void addListener(INotifyChangedListener notifyChangedListener) {
@@ -267,6 +288,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This removes a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void removeListener(INotifyChangedListener notifyChangedListener) {
@@ -277,6 +299,7 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void fireNotifyChanged(Notification notification) {
@@ -288,17 +311,28 @@ public class CustomItemProviderAdapterFactory extends CustomAdapterFactory imple
}
/**
- * This disposes all of the item providers created by this factory.
+ * This disposes all of the item providers created by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void dispose() {
- if (customizationItemProvider != null) customizationItemProvider.dispose();
- if (eClassCustomizationItemProvider != null) eClassCustomizationItemProvider.dispose();
- if (facetCustomizationItemProvider != null) facetCustomizationItemProvider.dispose();
- if (eTypedElementSwitchQueryItemProvider != null) eTypedElementSwitchQueryItemProvider.dispose();
- if (eTypedElementCaseItemProvider != null) eTypedElementCaseItemProvider.dispose();
+ if (customizationItemProvider != null) {
+ customizationItemProvider.dispose();
+ }
+ if (eClassCustomizationItemProvider != null) {
+ eClassCustomizationItemProvider.dispose();
+ }
+ if (facetCustomizationItemProvider != null) {
+ facetCustomizationItemProvider.dispose();
+ }
+ if (eTypedElementSwitchQueryItemProvider != null) {
+ eTypedElementSwitchQueryItemProvider.dispose();
+ }
+ if (eTypedElementCaseItemProvider != null) {
+ eTypedElementCaseItemProvider.dispose();
+ }
}
}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomizationItemProvider.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomizationItemProvider.java
index 39b3cc97ca8..9f093490f08 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomizationItemProvider.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/CustomizationItemProvider.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
- * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
+ * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.provider;
@@ -39,11 +39,12 @@ import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customizatio
* This is the item provider adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class CustomizationItemProvider
- extends FacetSetItemProvider
- implements
+ extends FacetSetItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -53,6 +54,7 @@ public class CustomizationItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public CustomizationItemProvider(AdapterFactory adapterFactory) {
@@ -63,6 +65,7 @@ public class CustomizationItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -80,50 +83,53 @@ public class CustomizationItemProvider
* This adds a property descriptor for the Must Be Loaded By Default feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addMustBeLoadedByDefaultPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Customization_mustBeLoadedByDefault_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Customization_mustBeLoadedByDefault_feature", "_UI_Customization_type"),
- CustomPackage.Literals.CUSTOMIZATION__MUST_BE_LOADED_BY_DEFAULT,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Customization_mustBeLoadedByDefault_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Customization_mustBeLoadedByDefault_feature", "_UI_Customization_type"),
+ CustomPackage.Literals.CUSTOMIZATION__MUST_BE_LOADED_BY_DEFAULT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Rank feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addRankPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Customization_rank_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Customization_rank_feature", "_UI_Customization_type"),
- CustomPackage.Literals.CUSTOMIZATION__RANK,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Customization_rank_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Customization_rank_feature", "_UI_Customization_type"),
+ CustomPackage.Literals.CUSTOMIZATION__RANK,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This returns Customization.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -135,14 +141,15 @@ public class CustomizationItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((Customization)object).getName();
+ String label = ((Customization) object).getName();
return label == null || label.length() == 0 ?
- getString("_UI_Customization_type") :
- getString("_UI_Customization_type") + " " + label;
+ getString("_UI_Customization_type") :
+ getString("_UI_Customization_type") + " " + label;
}
/**
@@ -150,6 +157,7 @@ public class CustomizationItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -157,10 +165,10 @@ public class CustomizationItemProvider
updateChildren(notification);
switch (notification.getFeatureID(Customization.class)) {
- case CustomPackage.CUSTOMIZATION__MUST_BE_LOADED_BY_DEFAULT:
- case CustomPackage.CUSTOMIZATION__RANK:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case CustomPackage.CUSTOMIZATION__MUST_BE_LOADED_BY_DEFAULT:
+ case CustomPackage.CUSTOMIZATION__RANK:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -170,6 +178,7 @@ public class CustomizationItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -177,25 +186,26 @@ public class CustomizationItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(EcorePackage.Literals.EPACKAGE__ECLASSIFIERS,
- CustomFactory.eINSTANCE.createEClassCustomization()));
+ CustomFactory.eINSTANCE.createEClassCustomization()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(EcorePackage.Literals.EPACKAGE__ECLASSIFIERS,
- CustomFactory.eINSTANCE.createFacetCustomization()));
+ CustomFactory.eINSTANCE.createFacetCustomization()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(EcorePackage.Literals.EPACKAGE__ESUBPACKAGES,
- CustomFactory.eINSTANCE.createCustomization()));
+ CustomFactory.eINSTANCE.createCustomization()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/EClassCustomizationItemProvider.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/EClassCustomizationItemProvider.java
index aaa6c7bc77b..5a6c80b78bf 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/EClassCustomizationItemProvider.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/EClassCustomizationItemProvider.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
- * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
+ * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.provider;
@@ -27,18 +27,18 @@ import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.provider.FacetItemProvider;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
/**
* This is the item provider adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class EClassCustomizationItemProvider
- extends FacetItemProvider
- implements
+ extends FacetItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -48,6 +48,7 @@ public class EClassCustomizationItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClassCustomizationItemProvider(AdapterFactory adapterFactory) {
@@ -58,6 +59,7 @@ public class EClassCustomizationItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -73,6 +75,7 @@ public class EClassCustomizationItemProvider
* This returns EClassCustomization.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -84,14 +87,15 @@ public class EClassCustomizationItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((EClassCustomization)object).getName();
+ String label = ((EClassCustomization) object).getName();
return label == null || label.length() == 0 ?
- getString("_UI_EClassCustomization_type") :
- getString("_UI_EClassCustomization_type") + " " + label;
+ getString("_UI_EClassCustomization_type") :
+ getString("_UI_EClassCustomization_type") + " " + label;
}
/**
@@ -99,6 +103,7 @@ public class EClassCustomizationItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -112,6 +117,7 @@ public class EClassCustomizationItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -123,6 +129,7 @@ public class EClassCustomizationItemProvider
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementCaseItemProvider.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementCaseItemProvider.java
index fdad632083f..1fb3a041351 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementCaseItemProvider.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementCaseItemProvider.java
@@ -1,16 +1,16 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
* Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
- * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet
+ * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.provider;
@@ -40,11 +40,12 @@ import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElemen
* This is the item provider adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ETypedElementCaseItemProvider
- extends ItemProviderAdapter
- implements
+ extends ItemProviderAdapter
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -54,6 +55,7 @@ public class ETypedElementCaseItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ETypedElementCaseItemProvider(AdapterFactory adapterFactory) {
@@ -64,6 +66,7 @@ public class ETypedElementCaseItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -80,30 +83,31 @@ public class ETypedElementCaseItemProvider
* This adds a property descriptor for the Case feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addCasePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ETypedElementCase_case_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ETypedElementCase_case_feature", "_UI_ETypedElementCase_type"),
- CustomPackage.Literals.ETYPED_ELEMENT_CASE__CASE,
- true,
- false,
- true,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ETypedElementCase_case_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ETypedElementCase_case_feature", "_UI_ETypedElementCase_type"),
+ CustomPackage.Literals.ETYPED_ELEMENT_CASE__CASE,
+ true,
+ false,
+ true,
+ null,
+ 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
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -118,6 +122,7 @@ public class ETypedElementCaseItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -132,6 +137,7 @@ public class ETypedElementCaseItemProvider
* This returns ETypedElementCase.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -143,6 +149,7 @@ public class ETypedElementCaseItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -155,6 +162,7 @@ public class ETypedElementCaseItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -162,9 +170,9 @@ public class ETypedElementCaseItemProvider
updateChildren(notification);
switch (notification.getFeatureID(ETypedElementCase.class)) {
- case CustomPackage.ETYPED_ELEMENT_CASE__VALUE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case CustomPackage.ETYPED_ELEMENT_CASE__VALUE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -174,6 +182,7 @@ public class ETypedElementCaseItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -181,65 +190,66 @@ public class ETypedElementCaseItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- CustomFactory.eINSTANCE.createETypedElementSwitchQuery()));
+ CustomFactory.eINSTANCE.createETypedElementSwitchQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createNavigationQuery()));
+ QueryFactory.eINSTANCE.createNavigationQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createIsOneOfQuery()));
+ QueryFactory.eINSTANCE.createIsOneOfQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createStringLiteralQuery()));
+ QueryFactory.eINSTANCE.createStringLiteralQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createTrueLiteralQuery()));
+ QueryFactory.eINSTANCE.createTrueLiteralQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createFalseLiteralQuery()));
+ QueryFactory.eINSTANCE.createFalseLiteralQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createNullLiteralQuery()));
+ QueryFactory.eINSTANCE.createNullLiteralQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createIntegerLiteralQuery()));
+ QueryFactory.eINSTANCE.createIntegerLiteralQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createFloatLiteralQuery()));
+ QueryFactory.eINSTANCE.createFloatLiteralQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createEObjectLiteralQuery()));
+ QueryFactory.eINSTANCE.createEObjectLiteralQuery()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_CASE__VALUE,
- QueryFactory.eINSTANCE.createOperationCallQuery()));
+ QueryFactory.eINSTANCE.createOperationCallQuery()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementSwitchQueryItemProvider.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementSwitchQueryItemProvider.java
index 7e21b33cd29..391e27f6280 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementSwitchQueryItemProvider.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/ETypedElementSwitchQueryItemProvider.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
- * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
+ * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.provider;
@@ -37,11 +37,12 @@ import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElemen
* This is the item provider adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementSwitchQuery} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ETypedElementSwitchQueryItemProvider
- extends QueryItemProvider
- implements
+ extends QueryItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -51,6 +52,7 @@ public class ETypedElementSwitchQueryItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ETypedElementSwitchQueryItemProvider(AdapterFactory adapterFactory) {
@@ -61,6 +63,7 @@ public class ETypedElementSwitchQueryItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -73,11 +76,11 @@ public class ETypedElementSwitchQueryItemProvider
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,6 +95,7 @@ public class ETypedElementSwitchQueryItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -106,6 +110,7 @@ public class ETypedElementSwitchQueryItemProvider
* This returns ETypedElementSwitchQuery.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -117,11 +122,12 @@ public class ETypedElementSwitchQueryItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- ETypedElementSwitchQuery eTypedElementSwitchQuery = (ETypedElementSwitchQuery)object;
+ ETypedElementSwitchQuery eTypedElementSwitchQuery = (ETypedElementSwitchQuery) object;
return getString("_UI_ETypedElementSwitchQuery_type") + " " + eTypedElementSwitchQuery.isCanHaveSideEffects();
}
@@ -130,6 +136,7 @@ public class ETypedElementSwitchQueryItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -137,9 +144,9 @@ public class ETypedElementSwitchQueryItemProvider
updateChildren(notification);
switch (notification.getFeatureID(ETypedElementSwitchQuery.class)) {
- case CustomPackage.ETYPED_ELEMENT_SWITCH_QUERY__CASES:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case CustomPackage.ETYPED_ELEMENT_SWITCH_QUERY__CASES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -149,6 +156,7 @@ public class ETypedElementSwitchQueryItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -156,15 +164,16 @@ public class ETypedElementSwitchQueryItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(CustomPackage.Literals.ETYPED_ELEMENT_SWITCH_QUERY__CASES,
- CustomFactory.eINSTANCE.createETypedElementCase()));
+ CustomFactory.eINSTANCE.createETypedElementCase()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/FacetCustomizationItemProvider.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/FacetCustomizationItemProvider.java
index 06fd5d2969a..33f8e8b72cf 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/FacetCustomizationItemProvider.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/provider/FacetCustomizationItemProvider.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
- * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
+ * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.provider;
@@ -27,7 +27,6 @@ import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
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.ItemProviderAdapter;
import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.provider.FacetItemProvider;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomPackage;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization;
@@ -36,11 +35,12 @@ import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomi
* This is the item provider adapter for a {@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class FacetCustomizationItemProvider
- extends FacetItemProvider
- implements
+ extends FacetItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -50,6 +50,7 @@ public class FacetCustomizationItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FacetCustomizationItemProvider(AdapterFactory adapterFactory) {
@@ -60,6 +61,7 @@ public class FacetCustomizationItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -76,28 +78,30 @@ public class FacetCustomizationItemProvider
* This adds a property descriptor for the Customized Facet feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addCustomizedFacetPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_FacetCustomization_customizedFacet_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_FacetCustomization_customizedFacet_feature", "_UI_FacetCustomization_type"),
- CustomPackage.Literals.FACET_CUSTOMIZATION__CUSTOMIZED_FACET,
- true,
- false,
- true,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_FacetCustomization_customizedFacet_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_FacetCustomization_customizedFacet_feature", "_UI_FacetCustomization_type"),
+ CustomPackage.Literals.FACET_CUSTOMIZATION__CUSTOMIZED_FACET,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
}
/**
* This returns FacetCustomization.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -109,14 +113,15 @@ public class FacetCustomizationItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((FacetCustomization)object).getName();
+ String label = ((FacetCustomization) object).getName();
return label == null || label.length() == 0 ?
- getString("_UI_FacetCustomization_type") :
- getString("_UI_FacetCustomization_type") + " " + label;
+ getString("_UI_FacetCustomization_type") :
+ getString("_UI_FacetCustomization_type") + " " + label;
}
/**
@@ -124,6 +129,7 @@ public class FacetCustomizationItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -137,6 +143,7 @@ public class FacetCustomizationItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -148,6 +155,7 @@ public class FacetCustomizationItemProvider
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override

Back to the top