mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
formatting and comments
This commit is contained in:
parent
d1b709addd
commit
c57fadb757
@ -314,17 +314,17 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
|||||||
|
|
||||||
assignColumns(props); // assign columns to match the properties
|
assignColumns(props); // assign columns to match the properties
|
||||||
setColumnWidths();
|
setColumnWidths();
|
||||||
|
|
||||||
//Load column sorting information from preferences file and apply it to columns.
|
//Load column sorting information from preferences file and apply it to columns.
|
||||||
loadColumnSorting();
|
loadColumnSorting();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Save references to columns before we deal with their visibility. This
|
* Save references to columns before we deal with their visibility. This
|
||||||
* has to happen after the sorting is applied, be cause that actually
|
* has to happen after the sorting is applied, because that actually
|
||||||
* causes the columns to be recreated. It has to happen before
|
* causes the columns to be recreated. It has to happen before
|
||||||
* loadColumnVisibility so we have referenecs to the columns to pass to
|
* loadColumnVisibility so we have referenecs to the columns to pass to
|
||||||
* setColumnHidden.
|
* setColumnHidden.
|
||||||
*
|
*/
|
||||||
* TODO: what about persisting hidden state of sorted columns?
|
|
||||||
*/
|
|
||||||
populateColumnMap();
|
populateColumnMap();
|
||||||
|
|
||||||
//Load column visibility information from preferences file and apply it to columns.
|
//Load column visibility information from preferences file and apply it to columns.
|
||||||
@ -366,6 +366,7 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
|||||||
private void populateColumnMap() {
|
private void populateColumnMap() {
|
||||||
columnMap.clear();
|
columnMap.clear();
|
||||||
TableColumnModel columnModel = outline.getColumnModel();
|
TableColumnModel columnModel = outline.getColumnModel();
|
||||||
|
//for each property get a reference to the column object from the column model.
|
||||||
for (Map.Entry<Integer, Property<?>> entry : propertiesMap.entrySet()) {
|
for (Map.Entry<Integer, Property<?>> entry : propertiesMap.entrySet()) {
|
||||||
final String propName = entry.getValue().getName();
|
final String propName = entry.getValue().getName();
|
||||||
final ETableColumn column = (ETableColumn) columnModel.getColumn(entry.getKey());
|
final ETableColumn column = (ETableColumn) columnModel.getColumn(entry.getKey());
|
||||||
@ -543,6 +544,7 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (currentRoot instanceof TableFilterNode) {
|
if (currentRoot instanceof TableFilterNode) {
|
||||||
|
|
||||||
final Preferences preferences = NbPreferences.forModule(DataResultViewerTable.class);
|
final Preferences preferences = NbPreferences.forModule(DataResultViewerTable.class);
|
||||||
|
|
||||||
final String nodeBaseKey = ((TableFilterNode) currentRoot).getColumnOrderKey();
|
final String nodeBaseKey = ((TableFilterNode) currentRoot).getColumnOrderKey();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user