Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-10-07 16:25:22 -0400
committerdonald.g.dunne2016-10-10 11:25:47 -0400
commita5c7494bc68f6fe22e0561b60be54a54930fb36a (patch)
treeff853c5ddb2dfbc3627a24501488d8c0bc46a376
parent5bd2fa1e5e3635e9cb40eecea82adaba81816814 (diff)
downloadorg.eclipse.osee-a5c7494bc68f6fe22e0561b60be54a54930fb36a.tar.gz
org.eclipse.osee-a5c7494bc68f6fe22e0561b60be54a54930fb36a.tar.xz
org.eclipse.osee-a5c7494bc68f6fe22e0561b60be54a54930fb36a.zip
bug[ats_ATS317809]: Sorting on Parent Id in task tab locks up UI
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/column/ParentIdColumn.java23
1 files changed, 15 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/column/ParentIdColumn.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/column/ParentIdColumn.java
index 6cdb10d261..23f3e1ddf4 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/column/ParentIdColumn.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/column/ParentIdColumn.java
@@ -10,10 +10,10 @@
*******************************************************************************/
package org.eclipse.osee.ats.column;
-import org.eclipse.nebula.widgets.xviewer.IXViewerValueColumn;
-import org.eclipse.nebula.widgets.xviewer.core.model.XViewerAlign;
+import java.util.Collection;
+import java.util.Map;
import org.eclipse.nebula.widgets.xviewer.core.model.SortDataType;
-import org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn;
+import org.eclipse.nebula.widgets.xviewer.core.model.XViewerAlign;
import org.eclipse.osee.ats.core.client.workflow.AbstractWorkflowArtifact;
import org.eclipse.osee.ats.core.workflow.transition.TeamWorkFlowManager;
import org.eclipse.osee.ats.util.xviewer.column.XViewerAtsColumn;
@@ -24,7 +24,7 @@ import org.eclipse.osee.framework.ui.skynet.util.LogUtil;
/**
* @author Donald G. Dunne
*/
-public class ParentIdColumn extends XViewerAtsColumn implements IXViewerValueColumn {
+public class ParentIdColumn extends XViewerAtsColumn implements IAtsXViewerPreComputedColumn {
public static ParentIdColumn instance = new ParentIdColumn();
@@ -33,8 +33,8 @@ public class ParentIdColumn extends XViewerAtsColumn implements IXViewerValueCol
}
private ParentIdColumn() {
- super(WorldXViewerFactory.COLUMN_NAMESPACE + ".parentid", "Parent Id", 75, XViewerAlign.Left, false, SortDataType.String,
- false, "ID of Parent Action or Team Workflow");
+ super(WorldXViewerFactory.COLUMN_NAMESPACE + ".parentid", "Parent Id", 75, XViewerAlign.Left, false,
+ SortDataType.String, false, "ID of Parent Action or Team Workflow");
}
/**
@@ -48,8 +48,7 @@ public class ParentIdColumn extends XViewerAtsColumn implements IXViewerValueCol
return newXCol;
}
- @Override
- public String getColumnText(Object element, XViewerColumn column, int columnIndex) {
+ public String getText(Object element) {
try {
if (element instanceof AbstractWorkflowArtifact && ((AbstractWorkflowArtifact) element).getParentAWA() != null) {
return TeamWorkFlowManager.getPcrId(((AbstractWorkflowArtifact) element).getParentAWA());
@@ -59,4 +58,12 @@ public class ParentIdColumn extends XViewerAtsColumn implements IXViewerValueCol
}
return "";
}
+
+ @Override
+ public void populateCachedValues(Collection<?> objects, Map<Long, String> preComputedValueMap) {
+ for (Object obj : objects) {
+ preComputedValueMap.put(getKey(obj), getText(obj));
+ }
+ }
+
}

Back to the top