Package org.eclipse.orion.internal.server.servlets

Examples of org.eclipse.orion.internal.server.servlets.ChangeEvent


    destination = unwrap(destination);

    wrapped.copy(destination, options, monitor);

    // Tested by CoreFilesTest.testListenerCopyFile()
    notifyOfWrite(new ChangeEvent(source, ChangeType.COPY_INTO, destination, wrapped));
  }
View Full Code Here


    wrapped.delete(options, monitor);

    // Tested by CoreFilesTest.testListenerDeleteNonEmptyDirectory()
    // Tested by CoreFilesTest.testListenerDeleteEmptyDir()
    // Tested by CoreFilesTest.testListenerDeleteFile()
    notifyOfWrite(new ChangeEvent(source, ChangeType.DELETE, wrapped));
  }
View Full Code Here

  }

  public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException {
    IFileStore mkdir = wrapped.mkdir(options, monitor);

    notifyOfWrite(new ChangeEvent(source, ChangeType.MKDIR, mkdir));

    // Tested by CoreFilesTest.testListenerCreateDirectory()
    return wrap(source, mkdir);
  }
View Full Code Here

    destination = unwrap(destination);

    wrapped.move(destination, options, monitor);

    // Tested by CoreFilesTest.testListenerMoveFileNoOverwrite()
    notifyOfWrite(new ChangeEvent(source, ChangeType.MOVE, destination, wrapped));
  }
View Full Code Here

      public void close() throws IOException {
        try {
          out.close();
        } finally {
          // Tested by CoreFilesTest.testListenerWriteFile()
          notifyOfWrite(new ChangeEvent(source, ChangeType.WRITE, wrapped));
        }
      }
    };
  }
View Full Code Here

  public void putInfo(IFileInfo info, int options, IProgressMonitor monitor) throws CoreException {
    wrapped.putInfo(info, options, monitor);

    // Tested by Ad
    notifyOfWrite(new ChangeEvent(source, ChangeType.PUTINFO, wrapped));
  }
View Full Code Here

    assertListenerNotified(null, modified, type);
  }

  public void assertListenerNotified(IFileStore initial, IFileStore modified, ChangeType type) {
    assertEquals(1, events.size());
    ChangeEvent event = events.get(0);

    assertEquals(type, event.getChangeType());
    assertEquals(initial, event.getInitialLocation());
    assertEquals(modified, event.getModifiedItem());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.orion.internal.server.servlets.ChangeEvent

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.