Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/ModelUtils.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/ModelUtils.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/ModelUtils.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/ModelUtils.java
index e48aa19706f..51087d4e391 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/ModelUtils.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/ModelUtils.java
@@ -13,7 +13,7 @@
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
* Gregoire Dupe (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
*******************************************************************************/
-package org.eclipse.emf.facet.util.emf.core;
+package org.eclipse.papyrus.emf.facet.util.emf.core;
import java.util.ArrayList;
import java.util.Collection;
@@ -40,9 +40,9 @@ import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.facet.util.core.Logger;
-import org.eclipse.emf.facet.util.core.internal.exported.StringUtils;
-import org.eclipse.emf.facet.util.emf.core.internal.Activator;
+import org.eclipse.papyrus.emf.facet.util.core.Logger;
+import org.eclipse.papyrus.emf.facet.util.core.internal.exported.StringUtils;
+import org.eclipse.papyrus.emf.facet.util.emf.core.internal.Activator;
/**
* Utility class for models.
@@ -66,7 +66,7 @@ public final class ModelUtils {
* Computes a list of {@link EObject}s from the same {@link ResourceSet} as
* <code>source</code> that can be assigned to the given feature.
*/
- //Copied from org.eclipse.emf.facet.infra.common.core.internal.utils.ModelUtils.computeAssignableElements(EStructuralFeature, EObject)
+ //Copied from org.eclipse.papyrus.emf.facet.infra.common.core.internal.utils.ModelUtils.computeAssignableElements(EStructuralFeature, EObject)
public static List<EObject> computeAssignableElements(final EStructuralFeature feature,
final EObject source) {
EClassifier eType = feature.getEType();
@@ -104,7 +104,7 @@ public final class ModelUtils {
* the metaclass whose subclasses must be found
* @return all the subclasses
*/
- //Copied from org.eclipse.emf.facet.infra.common.core.internal.utils.ModelUtils.allSubClasses(final EClass context)
+ //Copied from org.eclipse.papyrus.emf.facet.infra.common.core.internal.utils.ModelUtils.allSubClasses(final EClass context)
public static List<EClass> allSubClasses(final EClass context) {
List<EClass> result = new ArrayList<EClass>();
// Set<Resource> resources = new HashSet<Resource>();
@@ -128,13 +128,13 @@ public final class ModelUtils {
return result;
}
- //Copied from org.eclipse.emf.facet.infra.common.core.internal.utils.ModelUtils.isSuperTypeOf(final EClass self, final EClass typeDeclaration)
+ //Copied from org.eclipse.papyrus.emf.facet.infra.common.core.internal.utils.ModelUtils.isSuperTypeOf(final EClass self, final EClass typeDeclaration)
public static boolean isSuperTypeOf(final EClass self, final EClass typeDeclaration) {
return typeDeclaration.getEAllSuperTypes().contains(self);
}
/** @return the qualified name of the given metaclass */
- //Copied from org.eclipse.emf.facet.infra.common.core.internal.utils.ModelUtils.getMetaclassQualifiedName(final EClassifier eClass)
+ //Copied from org.eclipse.papyrus.emf.facet.infra.common.core.internal.utils.ModelUtils.getMetaclassQualifiedName(final EClassifier eClass)
public static String getMetaclassQualifiedName(final EClassifier eClass) {
final ArrayList<String> qualifiedNameParts = new ArrayList<String>();
final StringBuilder builder = new StringBuilder();
@@ -160,7 +160,7 @@ public final class ModelUtils {
*
* @return a name for the given element
*/
- //Copied from org.eclipse.emf.facet.infra.common.core.internal.utils.ModelUtils.getName(EObject)
+ //Copied from org.eclipse.papyrus.emf.facet.infra.common.core.internal.utils.ModelUtils.getName(EObject)
public static String getName(final EObject eObject) {
IItemLabelProvider itemLabelProvider = (IItemLabelProvider) new ComposedAdapterFactory(
ComposedAdapterFactory.Descriptor.Registry.INSTANCE).adapt(eObject, IItemLabelProvider.class);
@@ -174,7 +174,7 @@ public final class ModelUtils {
* @return a default name based on a string feature of the given
* {@link EObject}
*/
- //Copied from org.eclipse.emf.facet.infra.common.core.internal.utils.ModelUtils.getDefaultName(EObject)
+ //Copied from org.eclipse.papyrus.emf.facet.infra.common.core.internal.utils.ModelUtils.getDefaultName(EObject)
public static String getDefaultName(final EObject eObject) {
// find a feature that can be used as a name
final EStructuralFeature feature = ModelUtils.getLabelFeature(eObject.eClass());
@@ -188,7 +188,7 @@ public final class ModelUtils {
}
//Copied from ReflectiveItemProvider class
- //Copied from org.eclipse.emf.facet.infra.common.core.internal.utils.ModelUtils.getLabelFeature(EClass)
+ //Copied from org.eclipse.papyrus.emf.facet.infra.common.core.internal.utils.ModelUtils.getLabelFeature(EClass)
private static EStructuralFeature getLabelFeature(final EClass eClass) {
EAttribute result = null;
for (final EAttribute eAttribute : eClass.getEAllAttributes()) {

Back to the top