Package org.eclipse.core.internal.filesystem.local

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


      IPath targetPath = LanguageModelInitializer.getTargetLocation(
          provider, Path.fromOSString(sourceFile.getAbsolutePath()),
          project);
      LocalFile targetDir = new LocalFile(targetPath.toFile());

      IFileInfo targetInfo = targetDir.fetchInfo();
      boolean update = !targetInfo.exists();
      if (!update) {
        IFileInfo sourceInfo = sourceDir.fetchInfo();
        update = targetInfo.getLastModified() < sourceInfo
            .getLastModified();
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.