Package org.eclipse.egit.ui.internal

Examples of org.eclipse.egit.ui.internal.DecorationOverlayDescriptor


          ImageDescriptor icon = UIIcons.BRANCH;
          if (update.getLocalName().startsWith(Constants.R_TAGS))
            icon = UIIcons.TAG;
          if (update.getLocalName().startsWith(Constants.R_NOTES))
            icon = UIIcons.NOTE;
          return new DecorationOverlayDescriptor(icon,
              UIIcons.OVR_STAGED_REMOVE, IDecoration.TOP_RIGHT);
        }
        // else
        //$FALL-THROUGH$
      case RENAMED:
View Full Code Here


      base = UIUtils.getEditorImage(getPath());
    else
      base = UIIcons.REPOSITORY;
    switch (getChange()) {
    case ADD:
      return new DecorationOverlayDescriptor(base,
          UIIcons.OVR_STAGED_ADD, IDecoration.BOTTOM_RIGHT);
    case DELETE:
      return new DecorationOverlayDescriptor(base,
          UIIcons.OVR_STAGED_REMOVE, IDecoration.BOTTOM_RIGHT);
    case RENAME:
      return new DecorationOverlayDescriptor(base,
          UIIcons.OVR_STAGED_RENAME, IDecoration.BOTTOM_RIGHT);
    default:
      return base;
    }
  }
View Full Code Here

  public ImageDescriptor getImageDescriptor(Object object) {
    switch (getStatus()) {
    case OK:
      if (isDelete())
        return tag ? new DecorationOverlayDescriptor(UIIcons.TAG,
            UIIcons.OVR_STAGED_REMOVE, IDecoration.TOP_RIGHT)
            : new DecorationOverlayDescriptor(UIIcons.BRANCH,
                UIIcons.OVR_STAGED_REMOVE,
                IDecoration.TOP_RIGHT);

      if (isAdd())
        return tag ? UIIcons.CREATE_TAG : UIIcons.CREATE_BRANCH;
      else
        return tag ? UIIcons.TAG : UIIcons.BRANCH;
    case UP_TO_DATE:
      return tag ? UIIcons.TAG : UIIcons.BRANCH;
    case REJECTED_NODELETE:
    case REJECTED_NONFASTFORWARD:
    case REJECTED_OTHER_REASON:
    case REJECTED_REMOTE_CHANGED:
      return tag ? new DecorationOverlayDescriptor(UIIcons.TAG,
          UIIcons.OVR_ERROR, IDecoration.TOP_RIGHT)
          : new DecorationOverlayDescriptor(UIIcons.BRANCH,
              UIIcons.OVR_ERROR, IDecoration.TOP_RIGHT);
    default:
      return super.getImageDescriptor(object);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.DecorationOverlayDescriptor

Copyright © 2018 www.massapicom. 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.