Examples of fetchInfo()


Examples of org.eclipse.core.filesystem.IFileStore.fetchInfo()

    // create a invalid metadata file
    IFileStore rootLocation = OrionConfiguration.getRootLocation();
    String orgFolderName = "te";
    IFileStore orgFolder = rootLocation.getChild(orgFolderName);
    assertTrue(orgFolder.fetchInfo().exists());
    assertTrue(orgFolder.fetchInfo().isDirectory());
    String invalid = "delete.html";
    IFileStore invalidFileInOrg = orgFolder.getChild(invalid);
    try {
      OutputStream outputStream = invalidFileInOrg.openOutputStream(EFS.NONE, null);
      outputStream.write("<!doctype html>".getBytes());
View Full Code Here

Examples of org.eclipse.core.internal.filesystem.local.LocalFile.fetchInfo()

   * Change to executable permissions for non-windows machines.
   */
  public static void changePermissions(File file) {
    if (!Platform.getOS().equals(Platform.OS_WIN32)) {
      LocalFile localFile = new LocalFile(file);
      IFileInfo info = localFile.fetchInfo();
      if (!info.getAttribute(EFS.ATTRIBUTE_EXECUTABLE)) {
        info.setAttribute(EFS.ATTRIBUTE_EXECUTABLE, true);
        try {
          localFile.putInfo(info, EFS.SET_ATTRIBUTES, null);
        } catch (CoreException e) {
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.