21 package net.squiz.matrix.matrixtree;
23 import net.squiz.cuetree.*;
24 import net.squiz.matrix.core.*;
25 import net.squiz.matrix.ui.*;
26 import net.squiz.matrix.assetmap.*;
28 import javax.swing.tree.*;
29 import javax.swing.event.*;
32 import java.io.IOException;
37 import java.awt.event.*;
38 import java.awt.image.*;
39 import java.awt.geom.*;
40 import java.awt.dnd.*;
41 import java.awt.datatransfer.*;
69 protected CueGestureHandler getCueGestureHandler() {
75 private ActionListener addMenuListener;
82 addMenuListener = MatrixMenus.getMatrixTreeAddMenuListener(
FinderTree.this);
91 if (!GUIUtilities.isRightMouseButton(evt))
94 JPopupMenu menu = null;
96 if (getPathForLocation(evt.getX(), evt.getY()) == null) {
99 TreePath[] selectedPaths = getSelectionPathsForLocation(evt.getX(), evt.getY());
101 if (selectedPaths.length == 1) {
102 setSelectionPaths(selectedPaths);
105 menu = MatrixMenus.getUseMeMenu(node);
110 menu.show(
FinderTree.this, evt.getX(), evt.getY());