< prev index next >

application/org.openjdk.jmc.flightrecorder.ui/src/main/java/org/openjdk/jmc/flightrecorder/ui/pages/itemhandler/ItemListAndChart.java

Print this page

        

@@ -65,10 +65,11 @@
 import org.openjdk.jmc.common.util.StateToolkit;
 import org.openjdk.jmc.flightrecorder.ui.FlightRecorderUI;
 import org.openjdk.jmc.flightrecorder.ui.IPageContainer;
 import org.openjdk.jmc.flightrecorder.ui.ItemCollectionToolkit;
 import org.openjdk.jmc.flightrecorder.ui.StreamModel;
+import org.openjdk.jmc.flightrecorder.ui.common.DataPageToolkit;
 import org.openjdk.jmc.flightrecorder.ui.common.FilterComponent;
 import org.openjdk.jmc.flightrecorder.ui.common.ImageConstants;
 import org.openjdk.jmc.flightrecorder.ui.common.ItemHistogram.HistogramSelection;
 import org.openjdk.jmc.flightrecorder.ui.common.ItemList;
 import org.openjdk.jmc.flightrecorder.ui.common.ItemList.ItemListBuilder;

@@ -151,12 +152,14 @@
 
                 });
 
                 // FIXME: Should we use the state here, if the columns have been updated?
                 // FIXME: Should we change the column state if the user explicitly has configured the columns?
-                TableSettings itemListSettings = TableSettings.forStateAndColumns(
-                                state != null ? state.getChild(LIST_SETTINGS) : null, acc.getAllAttributes().keySet(),
+                final TableSettings itemListSettings = state == null
+                                ? DataPageToolkit.createTableSettingsByAllAndVisibleColumns(acc.getAllAttributes().keySet(),
+                                                acc.getCommonAttributes().keySet())
+                                : TableSettings.forStateAndColumns(state.getChild(LIST_SETTINGS), acc.getAllAttributes().keySet(),
                                 acc.getCommonAttributes().keySet());
 
                 Composite listComposite = toolkit.createComposite(tabFolder);
                 listComposite.setLayout(GridLayoutFactory.swtDefaults().create());
                 itemList = itemListBuilder.buildWithoutBorder(listComposite, itemListSettings);
< prev index next >