Examples of ResourceAttributes


Examples of org.eclipse.core.resources.ResourceAttributes

   * ensures that syncinfo and csconfig is writeable
   * @throws CoreException
   */
  public void makeDesignConfigWriteable() throws CoreException {
    if (getSyncInfo() != null && getSyncInfo().isReadOnly()) {
      ResourceAttributes attributes = getSyncInfo().getResourceAttributes();
      attributes.setReadOnly(false);
      getSyncInfo().setResourceAttributes(attributes);
    }
   
    if (getCsConfig() != null && getCsConfig().isReadOnly()) {
      ResourceAttributes attributes = getCsConfig().getResourceAttributes();
      attributes.setReadOnly(false);
      getCsConfig().setResourceAttributes(attributes);
    }
   
    if (getSchemaDefinition() != null && getSchemaDefinition().isReadOnly()) {
        ResourceAttributes attributes = getSchemaDefinition().getResourceAttributes();
            attributes.setReadOnly(false);
            getSchemaDefinition().setResourceAttributes(attributes);
    }
  }
View Full Code Here

Examples of org.eclipse.core.resources.ResourceAttributes

   * @param jFile
   * @param b
   * @throws CoreException
   */
  private static void setReadOnly(IFile jFile, boolean b) throws CoreException {
    ResourceAttributes ra = new ResourceAttributes();
    ra.setReadOnly(b);
    jFile.setResourceAttributes(ra);
  }
View Full Code Here

Examples of org.eclipse.core.resources.ResourceAttributes

            final String name = resource.getName();
            if (!allow_Hrl && name.toLowerCase().endsWith(".hrl")) {
                return false;
            }
            if (matches(name)) {
                final ResourceAttributes attrs = resource.getResourceAttributes();
                return attrs != null && !attrs.isSymbolicLink();
            }
            return false;
        }
View Full Code Here

Examples of org.eclipse.core.resources.ResourceAttributes

    }
    return map;
  }

  private static boolean isReadOnly(IResource resource) {
    ResourceAttributes resourceAttributes = resource.getResourceAttributes();
    if (resourceAttributes == null)
      return false;
    return resourceAttributes.isReadOnly();
  }
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.