Examples of IWorkspaceView


Examples of org.freeplane.plugin.workspace.components.IWorkspaceView

    collapseAll(getNodeFromActionEvent(e).getModel());
  }

  private static void collapseAll(WorkspaceTreeModel model) {
      TreeNode root = (TreeNode) model.getRoot();
      IWorkspaceView view = WorkspaceController.getCurrentModeExtension().getView();
      TreePath rootPath = new TreePath(root);
      for (Enumeration<?> e=root.children(); e.hasMoreElements();) {
        TreeNode n = (TreeNode) e.nextElement();
        TreePath path = rootPath.pathByAddingChild(n);
        collapseAll(view, model, path);
View Full Code Here

Examples of org.freeplane.plugin.workspace.components.IWorkspaceView

      }
      else {
        targetNode.refresh();
      }
    }
    IWorkspaceView view = WorkspaceController.getCurrentModeExtension().getView();
    if(view != null){
      view.refreshView();
    }
  } 
View Full Code Here

Examples of org.freeplane.plugin.workspace.components.IWorkspaceView

  public WorkspaceExpandAction() {
    super("workspace.action.all.expand");
  }
 
  public void actionPerformed(final ActionEvent e) {
        IWorkspaceView view = WorkspaceController.getCurrentModeExtension().getView();
        if(view instanceof TreeView) {
          ((TreeView) view).expandAll(getNodeFromActionEvent(e));
        }
    }
View Full Code Here

Examples of org.freeplane.plugin.workspace.components.IWorkspaceView

        processUriListDrop(targetNode, uriList, dropAction);
      }

      targetNode.refresh();
     
      IWorkspaceView view = WorkspaceController.getCurrentModeExtension().getView();
      if(view != null) {
        view.expandPath(targetNode.getTreePath());
        WorkspaceController.getCurrentModeExtension().getView().refreshView();
      }
    } catch (Exception e) {
      LogUtils.warn("org.freeplane.plugin.workspace.mindmapmode.FolderFileDropHandler.processDrop(targetNode, transferable, dropAction)@2", e);
    }
View Full Code Here

Examples of org.freeplane.plugin.workspace.components.IWorkspaceView

        }
        processUriListDrop(targetNode, uriList, dropAction)
      }
      targetNode.refresh();
     
      IWorkspaceView view = WorkspaceController.getCurrentModeExtension().getView();
      if(view != null) {
        view.expandPath(targetNode.getTreePath());
        WorkspaceController.getCurrentModeExtension().getView().refreshView();
      }
    }
    catch (Exception e) {
      LogUtils.warn("org.freeplane.plugin.workspace.mindmapmode.VirtualFolderDropHandler.processDrop(targetNode, transferable, dropAction)@2", e);
View Full Code Here

Examples of org.freeplane.plugin.workspace.components.IWorkspaceView

   * REQUIRED METHODS FOR INTERFACES
   **********************************************************************************/
  /* DropTarget Methods */

  public final void drop(DropTargetDropEvent event) {
    IWorkspaceView view = WorkspaceController.getCurrentModeExtension().getView();
    if(view == null) {
      return;
    }
   
    TreePath targetPath = view.getPathForLocation(event.getLocation().x, event.getLocation().y);
    if(targetPath != null) {
      AWorkspaceTreeNode targetNode = (AWorkspaceTreeNode) targetPath.getLastPathComponent();
      if(processDrop(targetNode, event)) {
        return;
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.