MCPcopy Create free account
hub / github.com/GateNLP/gate-core / mousePressed

Method mousePressed

src/main/java/gate/gui/MainFrame.java:1331–1341  ·  view source on GitHub ↗
(MouseEvent e)

Source from the content-addressed store, hash-verified

1329
1330 resourcesTree.addMouseListener(new MouseAdapter() {
1331 @Override
1332 public void mousePressed(MouseEvent e) {
1333 TreePath path =
1334 resourcesTree.getClosestPathForLocation(e.getX(), e.getY());
1335 if(e.isPopupTrigger()
1336 && !resourcesTree.isPathSelected(path)) {
1337 // if right click outside the selection then reset selection
1338 resourcesTree.getSelectionModel().setSelectionPath(path);
1339 }
1340 processMouseEvent(e);
1341 }
1342 @Override
1343 public void mouseReleased(MouseEvent e) {
1344 processMouseEvent(e);

Callers

nothing calls this directly

Calls 2

processMouseEventMethod · 0.95
getSelectionModelMethod · 0.65

Tested by

no test coverage detected