Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-08-16 14:01:03 -0400
committerRyan D. Brooks2016-08-31 12:18:36 -0400
commitad65eb799f203e728062557ea4bdc2d7f8c93d48 (patch)
treed4abfbf10171c7280635efa37cf1b75054d6a3b6
parent3e02aaeb604ef17f0de180147584bfcf9f189ee3 (diff)
downloadorg.eclipse.osee-ad65eb799f203e728062557ea4bdc2d7f8c93d48.tar.gz
org.eclipse.osee-ad65eb799f203e728062557ea4bdc2d7f8c93d48.tar.xz
org.eclipse.osee-ad65eb799f203e728062557ea4bdc2d7f8c93d48.zip
bug[ats_ATS302825]: NR Alpha - Search by id is loading slower than release
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xviewer/skynet/SkynetXViewerFactory.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xviewer/skynet/SkynetXViewerFactory.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xviewer/skynet/SkynetXViewerFactory.java
index b95c6f5e8b..254e0d065b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xviewer/skynet/SkynetXViewerFactory.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xviewer/skynet/SkynetXViewerFactory.java
@@ -13,6 +13,7 @@ package org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
+import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
@@ -43,6 +44,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.Attrib
public class SkynetXViewerFactory extends XViewerFactory {
private IOseeTreeReportProvider reportProvider;
+ private static List<XViewerColumn> attrColumns;
public SkynetXViewerFactory(String namespace, IOseeTreeReportProvider reportProvider) {
super(namespace);
@@ -93,11 +95,13 @@ public class SkynetXViewerFactory extends XViewerFactory {
}
public static List<XViewerColumn> getAllAttributeColumns() throws OseeCoreException {
- List<XViewerColumn> columns = new ArrayList<>();
- for (AttributeType attributeType : AttributeTypeManager.getAllTypes()) {
- columns.add(getAttributeColumn(attributeType));
+ if (attrColumns == null) {
+ attrColumns = new LinkedList<XViewerColumn>();
+ for (AttributeType attributeType : AttributeTypeManager.getAllTypes()) {
+ attrColumns.add(getAttributeColumn(attributeType));
+ }
}
- return columns;
+ return attrColumns;
}
public static XViewerColumn getAttributeColumn(IAttributeType attributeType) throws OseeCoreException {

Back to the top