/* (non-Javadoc)
   * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object)
   */
  @Override
  public Image getImage(Object element) {
    if (element instanceof TreeNode) {
      TreeNode treeNode = (TreeNode) element;
      element = treeNode.data;
    }
    if (element instanceof ICustomLineElement) {
      return fLineMatchImage;
    }
    if (element instanceof ICustomModule) {
      return SharedUiPlugin.getImageCache().get(UIConstants.PY_FILE_ICON);
    }
    if (!(element instanceof IResource)) {
      return null;
    }

    IResource resource = (IResource) element;
    Image image = fLabelProvider.getImage(resource);
    return image;
  }
Exemplo n.º 2
0
 public EditIgnoredCaughtExceptions(CurrentExceptionView currentExceptionView) {
   this.currentExceptionView = new WeakReference<CurrentExceptionView>(currentExceptionView);
   this.setImageDescriptor(SharedUiPlugin.getImageCache().getDescriptor(UIConstants.HISTORY));
   this.setToolTipText("Edit currently ignored caught exceptions.");
 }