Examples of SVNStatusKind


Examples of org.tigris.subversion.svnclientadapter.SVNStatusKind

     
    };
   
    public Image getImage(Object element) {
      if (resourceList.contains(element)) {         
        SVNStatusKind statusKind = ResourceWithStatusUtil.getStatusKind((IResource)element);
        Image image = null;
        if (element instanceof IContainer && (statusKind == null || !statusKind.equals(SVNStatusKind.DELETED))) {
          image = workbenchLabelProvider.getImage(element);
          image = compareConfiguration.getImage(image, Differencer.NO_CHANGE);
        } else {
          if (statusKind != null) {
            if (statusKind.hasTreeConflict()) {
              image = workbenchLabelProvider.getImage(element);
              image = resourceSelectionTreeDecorator.getImage(image, ResourceSelectionTreeDecorator.TREE_CONFLICT);
            }
            else if (statusKind != null && statusKind.equals(SVNStatusKind.CONFLICTED)) {
              image = workbenchLabelProvider.getImage(element);
              image = resourceSelectionTreeDecorator.getImage(image, ResourceSelectionTreeDecorator.TEXT_CONFLICTED);
            }
          }
          if (image == null) image = syncLabelProvider.getImage(element);
          if (element instanceof IContainer) return image;
          if (unversionedResourceList.contains(element)) {
            image = resourceSelectionTreeDecorator.getImage(image, ResourceSelectionTreeDecorator.UNVERSIONED);
          }
          if (statusKind != null && statusKind.equals(SVNStatusKind.MISSING)) {
            image = resourceSelectionTreeDecorator.getImage(image, ResourceSelectionTreeDecorator.MISSING);
          }
        }
        String propertyStatus = ResourceWithStatusUtil.getPropertyStatus((IResource)element);
        if (propertyStatus != null && propertyStatus.length() > 0) {
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNStatusKind

          else if (change == SyncInfo.CHANGE) kind = IDiff.CHANGE;
          else if (change == SyncInfo.ADDITION) kind = IDiff.ADD;
          else if (change == SyncInfo.DELETION) kind = IDiff.REMOVE;
        }
      } else {
        SVNStatusKind statusKind = (SVNStatusKind)statusMap.get(resource);
        if (statusKind == null) kind = IDiff.NO_CHANGE;
        else if (statusKind.equals(SVNStatusKind.CONFLICTED)) kind = IThreeWayDiff.CONFLICTING;
        else if (statusKind.equals(SVNStatusKind.MODIFIED)) kind = IDiff.CHANGE;
        else if (statusKind.equals(SVNStatusKind.ADDED)) kind = IDiff.ADD;
        else if (statusKind.equals(SVNStatusKind.DELETED)) kind = IDiff.REMOVE;
      }
      if (resource instanceof IContainer) return IDiff.REMOVE;
      return kind;
    }
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.