当前位置: 首页>>代码示例>>Java>>正文


Java SVNUIPlugin.getImage方法代码示例

本文整理汇总了Java中org.tigris.subversion.subclipse.ui.SVNUIPlugin.getImage方法的典型用法代码示例。如果您正苦于以下问题:Java SVNUIPlugin.getImage方法的具体用法?Java SVNUIPlugin.getImage怎么用?Java SVNUIPlugin.getImage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.tigris.subversion.subclipse.ui.SVNUIPlugin的用法示例。


在下文中一共展示了SVNUIPlugin.getImage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getColumnImage

import org.tigris.subversion.subclipse.ui.SVNUIPlugin; //导入方法依赖的package包/类
/**
 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
 */
public Image getColumnImage(Object element, int columnIndex) {
    if (columnIndex == 0 && element != null && conflicts != null) {
        ISVNProperty svnProperty = (ISVNProperty)element; 
        for (int i = 0; i < conflicts.length; i++) {
            if (conflicts[i].getPropertyName().equals(svnProperty.getName())) {
                return SVNUIPlugin.getImage(ISVNUIConstants.IMG_PROPERTY_CONFLICTED);                       
            }
        }
    }
    return null;
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:15,代码来源:SvnRevPropertiesView.java

示例2: getColumnImage

import org.tigris.subversion.subclipse.ui.SVNUIPlugin; //导入方法依赖的package包/类
/**
 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
 */
public Image getColumnImage(Object element, int columnIndex) {
	if (columnIndex == 0 && element != null && conflicts != null) {
		ISVNProperty svnProperty = (ISVNProperty)element; 
		for (int i = 0; i < conflicts.length; i++) {
			if (conflicts[i].getPropertyName().equals(svnProperty.getName())) {
				return SVNUIPlugin.getImage(ISVNUIConstants.IMG_PROPERTY_CONFLICTED);						
			}
		}
	}
	return null;
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:15,代码来源:SvnPropertiesView.java

示例3: getImage

import org.tigris.subversion.subclipse.ui.SVNUIPlugin; //导入方法依赖的package包/类
public Image getImage(Object element) {
    String id = null;
    if(element instanceof LogEntryChangePath) {
      LogEntryChangePath changePath = (LogEntryChangePath)element;
      switch(changePath.getAction()) {
        case 'A':  id = ISVNUIConstants.IMG_FILEADD_PENDING;  break;
        case 'D':  id = ISVNUIConstants.IMG_FILEDELETE_PENDING;  break;
        // case 'M':  
        default:   id = ISVNUIConstants.IMG_FILEMODIFIED_PENDING;  break;
      }

    } else if(element instanceof HistoryFolder) {
      HistoryFolder folder = (HistoryFolder) element;
      if(folder.getChildren().length==0) {
        switch(folder.getAction()) {
          case 'A':  id = ISVNUIConstants.IMG_FILEADD_PENDING;  break;
          case 'D':  id = ISVNUIConstants.IMG_FILEDELETE_PENDING;  break;
          // case 'M':
          default:   id = ISVNUIConstants.IMG_FILEMODIFIED_PENDING;  break;
        }
      } else {
          switch(folder.getAction()) {
            case 'A':  id = ISVNUIConstants.IMG_FOLDERADD_PENDING;  break;
            case 'D':  id = ISVNUIConstants.IMG_FOLDERDELETE_PENDING;  break;
            case 'M':  id = ISVNUIConstants.IMG_FOLDERMODIFIED_PENDING;  break;
            default:   id = ISVNUIConstants.IMG_FOLDER;  break;
          }
      }
    }
    if(id==null) return null;
    return SVNUIPlugin.getImage(id);
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:33,代码来源:ChangePathsTreeViewer.java

示例4: getImage

import org.tigris.subversion.subclipse.ui.SVNUIPlugin; //导入方法依赖的package包/类
public Image getImage() {
	return SVNUIPlugin.getImage(ISVNUIConstants.IMG_PROPERTIES);
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:4,代码来源:PropertyComparePropertyNode.java

示例5: getImage

import org.tigris.subversion.subclipse.ui.SVNUIPlugin; //导入方法依赖的package包/类
public Image getImage(Object element) {
  String id = null;
  if (element instanceof LogEntryChangePath) {
    LogEntryChangePath changePath = (LogEntryChangePath) element;
    switch (changePath.getAction()) {
    case 'A':
      id = ISVNUIConstants.IMG_FILEADD_PENDING;
      break;
    case 'D':
      id = ISVNUIConstants.IMG_FILEDELETE_PENDING;
      break;
    // case 'M':
    default:
      id = ISVNUIConstants.IMG_FILEMODIFIED_PENDING;
      break;
    }

  } else if (element instanceof HistoryFolder) {
    HistoryFolder folder = (HistoryFolder) element;
    if (folder.getChildren().length == 0) {
      switch (folder.getAction()) {
      case 'A':
        id = ISVNUIConstants.IMG_FILEADD_PENDING;
        break;
      case 'D':
        id = ISVNUIConstants.IMG_FILEDELETE_PENDING;
        break;
      // case 'M':
      default:
        id = ISVNUIConstants.IMG_FILEMODIFIED_PENDING;
        break;
      }
    } else {
      switch (folder.getAction()) {
      case 'A':
        id = ISVNUIConstants.IMG_FOLDERADD_PENDING;
        break;
      case 'D':
        id = ISVNUIConstants.IMG_FOLDERDELETE_PENDING;
        break;
      case 'M':
        id = ISVNUIConstants.IMG_FOLDERMODIFIED_PENDING;
        break;
      default:
        id = ISVNUIConstants.IMG_FOLDER;
        break;
      }
    }
  }
  if (id == null)
    return null;
  return SVNUIPlugin.getImage(id);
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:54,代码来源:ChangePathsFlatViewer.java


注:本文中的org.tigris.subversion.subclipse.ui.SVNUIPlugin.getImage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。