Package org.eclipse.ltk.core.refactoring

Examples of org.eclipse.ltk.core.refactoring.IUndoManager


  {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    ResourceChangeListener rcl = new ResourceChangeListener();
    workspace.addResourceChangeListener(rcl);
    try{
      IUndoManager manager = RefactoringCore.getUndoManager();
      if(commandLine.hasOption(Options.PEEK_OPTION)){
        return manager.peekUndoName();
      }
      manager.performRedo(null, null);
      return rcl.getChangedFiles();
    }finally{
      workspace.removeResourceChangeListener(rcl);
    }
  }
View Full Code Here


  {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    ResourceChangeListener rcl = new ResourceChangeListener();
    workspace.addResourceChangeListener(rcl);
    try{
      IUndoManager manager = RefactoringCore.getUndoManager();
      if(commandLine.hasOption(Options.PEEK_OPTION)){
        return manager.peekUndoName();
      }
      manager.performUndo(null, null);
      return rcl.getChangedFiles();
    }finally{
      workspace.removeResourceChangeListener(rcl);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ltk.core.refactoring.IUndoManager

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.