Search in sources :

Example 1 with NodeSelector

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);
}
Also used : MNoteController(org.freeplane.features.note.mindmapmode.MNoteController) NodeModel(org.freeplane.features.map.NodeModel) TextController(org.freeplane.features.text.TextController) NodeSelector(org.freeplane.view.swing.ui.NodeSelector)

Aggregations

NodeModel (org.freeplane.features.map.NodeModel)1 MNoteController (org.freeplane.features.note.mindmapmode.MNoteController)1 TextController (org.freeplane.features.text.TextController)1 NodeSelector (org.freeplane.view.swing.ui.NodeSelector)1