Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-01-14 11:02:49 -0500
committerashatalin2009-01-14 11:02:49 -0500
commitf436367aae36e0babe7b9c3e99a94b2912d6caf7 (patch)
tree5a8127847ca23a1eff6b3bb0dbe7b94344d31c08
parent079c4c6741917fc7e5c1ebd1d4a9e6fdb9219811 (diff)
downloadorg.eclipse.gmf-tooling-f436367aae36e0babe7b9c3e99a94b2912d6caf7.tar.gz
org.eclipse.gmf-tooling-f436367aae36e0babe7b9c3e99a94b2912d6caf7.tar.xz
org.eclipse.gmf-tooling-f436367aae36e0babe7b9c3e99a94b2912d6caf7.zip
[261023] - Make FilterUtil methods public
-rw-r--r--plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/FilterUtil.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/FilterUtil.java b/plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/FilterUtil.java
index 694398649..b7660dcee 100644
--- a/plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/FilterUtil.java
+++ b/plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/FilterUtil.java
@@ -158,7 +158,7 @@ public class FilterUtil {
return eClasses;
}
- private static Collection<EClass> getSubtypesOf(Collection<EClass> eClasses, EClass superType) {
+ public static Collection<EClass> getSubtypesOf(Collection<EClass> eClasses, EClass superType) {
if (superType == null) {
return eClasses;
}
@@ -171,7 +171,7 @@ public class FilterUtil {
return eClasses;
}
- private static Collection<EClass> getConcreteEClasses(Collection<EClass> eClasses) {
+ public static Collection<EClass> getConcreteEClasses(Collection<EClass> eClasses) {
for (Iterator<EClass> it = eClasses.iterator(); it.hasNext();) {
EClass nextEClass = it.next();
if (nextEClass != null && (nextEClass.isAbstract() || nextEClass.isInterface())) {
@@ -182,7 +182,7 @@ public class FilterUtil {
return eClasses;
}
- private static Collection<EReference> getEReferences(Collection<EReference> eReferences, boolean containmentOnly) {
+ public static Collection<EReference> getEReferences(Collection<EReference> eReferences, boolean containmentOnly) {
if (!containmentOnly) {
return eReferences;
}
@@ -195,7 +195,7 @@ public class FilterUtil {
return eReferences;
}
- private static <T extends EStructuralFeature> Collection<T> getEStructuralFeaturesOf(Collection<T> structuralFeatures, EClass featureContainerEClass) {
+ public static <T extends EStructuralFeature> Collection<T> getEStructuralFeaturesOf(Collection<T> structuralFeatures, EClass featureContainerEClass) {
Collection<T> result = getValidEStructuralFeatures(structuralFeatures);
if (featureContainerEClass == null) {
return result;
@@ -209,7 +209,7 @@ public class FilterUtil {
return result;
}
- private static Collection<EReference> getEReferencesOfType(Collection<EReference> references, EClass referenceType) {
+ public static Collection<EReference> getEReferencesOfType(Collection<EReference> references, EClass referenceType) {
Collection<EReference> result = getValidEStructuralFeatures(references);
if (referenceType == null) {
return result;
@@ -223,7 +223,7 @@ public class FilterUtil {
return result;
}
- private static <T extends EStructuralFeature> Collection<T> getValidEStructuralFeatures(Collection<T> structuralFeatures) {
+ public static <T extends EStructuralFeature> Collection<T> getValidEStructuralFeatures(Collection<T> structuralFeatures) {
Collection<T> result = getValidEObjects(structuralFeatures);
for (Iterator<T> it = result.iterator(); it.hasNext();) {
EStructuralFeature nextFeature = it.next();
@@ -234,7 +234,7 @@ public class FilterUtil {
return result;
}
- private static <T extends EObject> Collection<T> filterValidEObjectsFrom(Collection<T> eClasses, ResourceSet resourceSet) {
+ public static <T extends EObject> Collection<T> filterValidEObjectsFrom(Collection<T> eClasses, ResourceSet resourceSet) {
Collection<T> result = getValidEObjects(eClasses);
for (Iterator<T> it = result.iterator(); it.hasNext();) {
EObject nextEClass = it.next();
@@ -248,7 +248,7 @@ public class FilterUtil {
return result;
}
- private static <T extends EObject> Collection<T> getValidEObjects(Collection<T> eObjects) {
+ public static <T extends EObject> Collection<T> getValidEObjects(Collection<T> eObjects) {
LinkedList<T> result = new LinkedList<T>();
for (T nextEObject : eObjects) {
if (nextEObject != null && (nextEObject.eContainer() == null)) {
@@ -259,7 +259,7 @@ public class FilterUtil {
return result;
}
- private static <T extends EObject> Collection<T> getChildrenOf(Collection<T> elements, EObject container, boolean addNull) {
+ public static <T extends EObject> Collection<T> getChildrenOf(Collection<T> elements, EObject container, boolean addNull) {
LinkedList<T> result = new LinkedList<T>();
for (T nextEObject : elements) {
if (nextEObject == null ? addNull : nextEObject.eContainer() == container) {
@@ -269,7 +269,7 @@ public class FilterUtil {
return result;
}
- private static Collection<?> getSubClassesOf(Collection<?> instances, Class<?>[] classes) {
+ public static Collection<?> getSubClassesOf(Collection<?> instances, Class<?>[] classes) {
LinkedList<Object> result = new LinkedList<Object>();
for (Object nextInstance : instances) {
for (int i = 0; i < classes.length; i++) {

Back to the top