use of org.freeplane.view.swing.map.MainView in project freeplane by freeplane.
the class ExternalImagePopupMenu method maybeShowPopup.
protected void maybeShowPopup(final MouseEvent e) {
MainView mv = null;
if (e.isPopupTrigger()) {
for (final Component cmp : e.getComponent().getParent().getComponents()) {
if (cmp instanceof MainView) {
mv = (MainView) cmp;
node = mv.getNodeView().getModel();
viewer = (Controller.getCurrentController().getModeController().getExtension(ViewerController.class));
break;
}
}
make();
show(e.getComponent(), e.getX(), e.getY());
}
}
Aggregations