Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/org.eclipse.papyrus.views.properties.table/src/org/eclipse/papyrus/views/properties/table/axis/SynchronizedFeatureValueAxisManager.java')
-rw-r--r--sandbox/org.eclipse.papyrus.views.properties.table/src/org/eclipse/papyrus/views/properties/table/axis/SynchronizedFeatureValueAxisManager.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/sandbox/org.eclipse.papyrus.views.properties.table/src/org/eclipse/papyrus/views/properties/table/axis/SynchronizedFeatureValueAxisManager.java b/sandbox/org.eclipse.papyrus.views.properties.table/src/org/eclipse/papyrus/views/properties/table/axis/SynchronizedFeatureValueAxisManager.java
index bf373f61d12..85504120212 100644
--- a/sandbox/org.eclipse.papyrus.views.properties.table/src/org/eclipse/papyrus/views/properties/table/axis/SynchronizedFeatureValueAxisManager.java
+++ b/sandbox/org.eclipse.papyrus.views.properties.table/src/org/eclipse/papyrus/views/properties/table/axis/SynchronizedFeatureValueAxisManager.java
@@ -13,6 +13,8 @@
*****************************************************************************/
package org.eclipse.papyrus.views.properties.table.axis;
+import java.util.Collection;
+import java.util.LinkedList;
import java.util.List;
import org.eclipse.emf.ecore.EStructuralFeature;
@@ -30,10 +32,11 @@ public class SynchronizedFeatureValueAxisManager extends AbstractSynchronizedOnF
public static final String AXIS_MANAGER_ID = "org.eclipse.papyrus.emf.nattable.synchronized.featurevalue.axis.manager"; //$NON-NLS-1$
@Override
- public synchronized void updateAxisContents() {
+ public Collection<Object> getAllManagedAxis() {
+ Collection<Object> result = new LinkedList<Object>();
EStructuralFeatureValueFillingConfiguration config = null;
- for(final IAxisConfiguration current : this.rep.getSpecificAxisConfigurations()) {
+ for(final IAxisConfiguration current : this.representedAxisManager.getSpecificAxisConfigurations()) {
if(current instanceof EStructuralFeatureValueFillingConfiguration) {
config = (EStructuralFeatureValueFillingConfiguration)current;
break;
@@ -42,9 +45,9 @@ public class SynchronizedFeatureValueAxisManager extends AbstractSynchronizedOnF
EStructuralFeature synchronizedFeature = config.getListenFeature();
- List<Object> theList = getTableManager().getElementsList(getRepresentedContentProvider());
- theList.clear();
- theList.addAll((List<?>)this.getTable().getContext().eGet(synchronizedFeature));
+ result.addAll((List<?>)this.getTableManager().getTable().getContext().eGet(synchronizedFeature));
+
+ return result;
}
}

Back to the top