Package org.freeplane.plugin.workspace.io

Examples of org.freeplane.plugin.workspace.io.SkipTaskException


    int opt = JOptionPane.showConfirmDialog(UITools.getFrame(), dialog, TextUtils.getText("workspace.directory.merge.title"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
    if(opt == JOptionPane.CANCEL_OPTION) {
      throw new CancelExecutionException();
    }
    if(opt == JOptionPane.NO_OPTION) {
      throw new SkipTaskException();
    }
   
    properties.setProperty("mergeAll", String.valueOf(dialog.applyToAll()));

  }
View Full Code Here


    int opt = JOptionPane.showConfirmDialog(UITools.getFrame(), dialog, TextUtils.getText("workspace.fileexists.title."+ properties.getProperty("opType", "1")), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
    if(opt == JOptionPane.CANCEL_OPTION) {
      throw new CancelExecutionException();
    }
    if(opt == JOptionPane.NO_OPTION) {
      throw new SkipTaskException();
    }
    properties.setProperty("overwriteAll", String.valueOf(dialog.applyToAll()));

  }
View Full Code Here

  private ITask getPostOperation(final AWorkspaceTreeNode targetNode, final AWorkspaceTreeNode node, final File srcFile, final File destFile) {
    return new ITask() {     
      public void exec(Properties properties) throws IOException {
        if(onSkipList(destFile.getParentFile(), properties)) {
          throw new SkipTaskException();
        }
        AWorkspaceTreeNode parent = node.getParent();
        targetNode.getModel().cutNodeFromParent(node);
        parent.refresh();
        targetNode.getModel().nodeMoved(node, srcFile, destFile);
View Full Code Here

TOP

Related Classes of org.freeplane.plugin.workspace.io.SkipTaskException

Copyright © 2018 www.massapicom. 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.