use of org.freeplane.plugin.workspace.components.menu.WorkspacePopupMenu in project freeplane by freeplane.
the class ProjectRootNode method initializePopup.
public void initializePopup() {
if (popupMenu == null) {
popupMenu = new WorkspacePopupMenu();
WorkspacePopupMenuBuilder.addActions(popupMenu, new String[] { WorkspacePopupMenuBuilder.createSubMenu(TextUtils.getRawText("workspace.action.new.label")), "workspace.action.node.new.folder", "workspace.action.file.new.mindmap", WorkspacePopupMenuBuilder.endSubMenu(), WorkspacePopupMenuBuilder.SEPARATOR, "workspace.action.node.open.location", WorkspacePopupMenuBuilder.SEPARATOR, "workspace.action.node.cut", "workspace.action.node.copy", "workspace.action.node.paste", WorkspacePopupMenuBuilder.SEPARATOR, "workspace.action.node.rename", WorkspaceRemoveProjectAction.KEY, WorkspacePopupMenuBuilder.SEPARATOR, "workspace.action.node.refresh" });
}
}
use of org.freeplane.plugin.workspace.components.menu.WorkspacePopupMenu in project freeplane by freeplane.
the class AWorkspaceAction method getComponentFromActionEvent.
protected Component getComponentFromActionEvent(ActionEvent e) {
// (WorkspacePopupMenu)((Component) e.getSource()).getParent();
WorkspacePopupMenu pop = getRootPopupMenu((Component) e.getSource());
JTree tree = (JTree) pop.getInvoker();
return tree.getComponentAt(pop.getInvokerLocation());
}
Aggregations