use of org.freeplane.view.swing.ui.NodeSelector in project freeplane by freeplane.
the class NoteViewMouseListener method mouseClicked.
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
TextController controller = TextController.getController();
if (controller.canEdit()) {
NodeModel node = new NodeSelector().getRelatedNodeView(e).getModel();
((MNoteController) NoteController.getController()).editNoteInDialog(node);
}
} else
super.mouseClicked(e);
}
Aggregations