diff options
author | ptessier | 2014-03-13 13:13:12 +0000 |
---|---|---|
committer | ptessier | 2014-03-13 13:13:12 +0000 |
commit | da393269bea1fa51a453c731b609358c38884f1a (patch) | |
tree | 4e4ddd2f52e25fe9a942b4f1ac35c0d90d714058 /plugins/facet | |
parent | 801294d0f6f58d276454db2d80950ef6587fc54b (diff) | |
download | org.eclipse.papyrus-da393269bea1fa51a453c731b609358c38884f1a.tar.gz org.eclipse.papyrus-da393269bea1fa51a453c731b609358c38884f1a.tar.xz org.eclipse.papyrus-da393269bea1fa51a453c731b609358c38884f1a.zip |
Bug 386118 - [EMF Facet] Papyrus should progressively support EMF Facet
0.2
fix error on tests
Diffstat (limited to 'plugins/facet')
-rw-r--r-- | plugins/facet/org.eclipse.papyrus.emf.facet.custom.core/src/org/eclipse/papyrus/emf/facet/custom/core/internal/CustomizationsDelegatingList.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.core/src/org/eclipse/papyrus/emf/facet/custom/core/internal/CustomizationsDelegatingList.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.core/src/org/eclipse/papyrus/emf/facet/custom/core/internal/CustomizationsDelegatingList.java index f3fb45e2d40..c7148ac5fc6 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.core/src/org/eclipse/papyrus/emf/facet/custom/core/internal/CustomizationsDelegatingList.java +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.core/src/org/eclipse/papyrus/emf/facet/custom/core/internal/CustomizationsDelegatingList.java @@ -99,9 +99,7 @@ public class CustomizationsDelegatingList implements List<Customization> { tmp.add((Customization)facetSet);
}
- }
-
-
+ }
return tmp.containsAll(c);
}
@@ -134,8 +132,15 @@ public class CustomizationsDelegatingList implements List<Customization> { }
public Customization get(final int index) {
- // FIXME implement
- throw new UnsupportedOperationException("not implemented"); //$NON-NLS-1$
+ ArrayList<Customization> tmp= new ArrayList<Customization>();
+ for(Iterator<FacetSet> iterator = this.delegate.iterator(); iterator.hasNext();) {
+ FacetSet facetSet = (FacetSet)iterator.next();
+ if( facetSet instanceof Customization){
+ tmp.add((Customization)facetSet);
+ }
+
+ }
+ return tmp.get(index);
}
public Customization set(final int index, final Customization element) {
|