-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#286: create new ColumnsManagerUI window to select properties before …
…exporting to csv
- Loading branch information
1 parent
5f2a2ac
commit 6bb8201
Showing
6 changed files
with
112 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
iped-app/src/main/java/iped/app/ui/ColumnsSelectReportUI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package iped.app.ui; | ||
|
||
import java.util.Arrays; | ||
import iped.engine.task.index.IndexItem; | ||
|
||
public class ColumnsSelectReportUI extends ColumnsSelectUI { | ||
private static ColumnsSelectReportUI instance; | ||
|
||
private static final String[] basicReportProps = { IndexItem.NAME, IndexItem.PATH, IndexItem.TYPE, IndexItem.LENGTH, IndexItem.CREATED, | ||
IndexItem.MODIFIED, IndexItem.ACCESSED, IndexItem.DELETED, IndexItem.CARVED, IndexItem.HASH, IndexItem.ID_IN_SOURCE }; | ||
|
||
public static ColumnsSelectReportUI getInstance() { | ||
if (instance == null) | ||
instance = new ColumnsSelectReportUI(); | ||
return instance; | ||
} | ||
|
||
@Override | ||
public void dispose() { | ||
super.dispose(); | ||
dialog.setVisible(false); | ||
columnsManager = null; | ||
instance = null; | ||
} | ||
|
||
protected ColumnsSelectReportUI() { | ||
super(); | ||
saveFileName = ColumnsManager.SELECTED_REPORT_PROPERTIES_FILENAME; | ||
|
||
loadedSelectedProperties = ColumnsManager.loadSelectedFields(saveFileName); | ||
if (loadedSelectedProperties != null) { | ||
columnsManager.enableOnlySelectedProperties(loadedSelectedProperties); | ||
} else { | ||
columnsManager.enableOnlySelectedProperties(Arrays.asList(basicReportProps)); | ||
} | ||
updatePanelList(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters