mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Workaround for undesirable interaction between viewers in keyword search results
This commit is contained in:
parent
75166f6bab
commit
3896923557
@ -189,7 +189,12 @@ public class DataResultPanel extends javax.swing.JPanel implements DataResult, C
|
|||||||
// to better handle the ExplorerManager sharing implemented to support actions that operate on
|
// to better handle the ExplorerManager sharing implemented to support actions that operate on
|
||||||
// multiple selected nodes.
|
// multiple selected nodes.
|
||||||
addDataResultViewer(new DataResultViewerTable(this.explorerManager));
|
addDataResultViewer(new DataResultViewerTable(this.explorerManager));
|
||||||
|
|
||||||
|
// @@@ Temporary fix until unintended interaction between DataResultViewerTable and DataResultViewerThumbnail
|
||||||
|
// via the shared ExplorerManager in a Keyword Search Result window is resolved.
|
||||||
|
if (isMain) {
|
||||||
addDataResultViewer(new DataResultViewerThumbnail(this.explorerManager));
|
addDataResultViewer(new DataResultViewerThumbnail(this.explorerManager));
|
||||||
|
}
|
||||||
|
|
||||||
// Find all DataResultViewer service providers and add them to the tabbed pane.
|
// Find all DataResultViewer service providers and add them to the tabbed pane.
|
||||||
for (DataResultViewer factory : Lookup.getDefault().lookupAll(DataResultViewer.class)) {
|
for (DataResultViewer factory : Lookup.getDefault().lookupAll(DataResultViewer.class)) {
|
||||||
|
@ -78,7 +78,6 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
|||||||
ov.setAllowedDragActions(DnDConstants.ACTION_NONE);
|
ov.setAllowedDragActions(DnDConstants.ACTION_NONE);
|
||||||
ov.setAllowedDropActions(DnDConstants.ACTION_NONE);
|
ov.setAllowedDropActions(DnDConstants.ACTION_NONE);
|
||||||
|
|
||||||
// only allow one item to be selected at a time
|
|
||||||
ov.getOutline().setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
|
ov.getOutline().setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
|
||||||
|
|
||||||
// don't show the root node
|
// don't show the root node
|
||||||
|
@ -85,7 +85,6 @@ public final class DataResultViewerThumbnail extends AbstractDataResultViewer {
|
|||||||
private void initialize() {
|
private void initialize() {
|
||||||
initComponents();
|
initComponents();
|
||||||
|
|
||||||
// only allow one item to be selected at a time
|
|
||||||
((IconView) thumbnailScrollPanel).setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
|
((IconView) thumbnailScrollPanel).setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
|
||||||
|
|
||||||
curPage = -1;
|
curPage = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user