Workaround for undesirable interaction between viewers in keyword search results

This commit is contained in:
Richard Cordovano 2013-09-11 12:07:12 -04:00 committed by jmillman
parent 75166f6bab
commit 3896923557
3 changed files with 6 additions and 3 deletions

View File

@ -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
// multiple selected nodes.
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));
}
// Find all DataResultViewer service providers and add them to the tabbed pane.
for (DataResultViewer factory : Lookup.getDefault().lookupAll(DataResultViewer.class)) {

View File

@ -78,7 +78,6 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
ov.setAllowedDragActions(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);
// don't show the root node

View File

@ -85,7 +85,6 @@ public final class DataResultViewerThumbnail extends AbstractDataResultViewer {
private void initialize() {
initComponents();
// only allow one item to be selected at a time
((IconView) thumbnailScrollPanel).setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
curPage = -1;