Package org.eclipse.core.internal.properties

Examples of org.eclipse.core.internal.properties.IPropertyManager.deleteProperties()


      // Move the resource's persistent properties.
      IPropertyManager propertyManager = ((Resource) source).getPropertyManager();
      try {
        propertyManager.copy(source, destination, IResource.DEPTH_ZERO);
        propertyManager.deleteProperties(source, IResource.DEPTH_ZERO);
      } catch (CoreException e) {
        String message = NLS.bind(Messages.resources_errorPropertiesMove, source.getFullPath(), destination.getFullPath());
        IStatus status = new ResourceStatus(IStatus.ERROR, source.getFullPath(), message, e);
        // log the status but don't return until we try and move the rest of the resource information.
        failed(status);
View Full Code Here


      // Move the folder properties.
      int depth = IResource.DEPTH_INFINITE;
      IPropertyManager propertyManager = ((Resource) source).getPropertyManager();
      try {
        propertyManager.copy(source, destination, depth);
        propertyManager.deleteProperties(source, depth);
      } catch (CoreException e) {
        String message = NLS.bind(Messages.resources_errorPropertiesMove, source.getFullPath(), destination.getFullPath());
        IStatus status = new ResourceStatus(IStatus.ERROR, source.getFullPath(), message, e);
        // log the status but don't return until we try and move the rest of the resource info
        failed(status);
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.