Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IFile.move()


            Display.getDefault().asyncExec(new Runnable() {
              public void run() {
                try {
                  // one last check before it throws an exception ...
                  if (!newPath.toFile().exists()) {
                    oldFile.move(newPath, false, null);
                  }
                } catch (CoreException e) {
                  e.printStackTrace();
                }
              }
View Full Code Here


        goToManual(TIME_FOR_ANALYSIS); //in 1 seconds, only 1 parse/analysis should happen
        assertEquals(1, parsesDone.size());

        //now, go back to what it was...
        IFile new_mod = initFile.getParent().getFile(new Path("new_mod.py"));
        new_mod.move(initialPath, true, new NullProgressMonitor());
        //        goToIdleLoopUntilCondition(get1ResourceAnalyzed(), getResourcesAnalyzed());
        goToIdleLoopUntilCondition(

                new ICallback<Boolean, Object>() {
                    public Boolean call(Object arg) {
View Full Code Here

    DirCacheBuilder builder = index.builder();
    addUnmergedEntry(filePath, builder);
    builder.commit();

    try {
      file.move(new Path("destination.txt"), false, null);
      fail("Expected move of file with conflicts to fail.");
    } catch (CoreException e) {
      IStatus status = e.getStatus();
      assertNotNull(status);
      assertEquals(IStatus.WARNING, status.getSeverity());
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.