本文整理汇总了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;
}
示例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;
}
示例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);
}
示例4: getImage
import org.tigris.subversion.subclipse.ui.SVNUIPlugin; //导入方法依赖的package包/类
public Image getImage() {
return SVNUIPlugin.getImage(ISVNUIConstants.IMG_PROPERTIES);
}
示例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);
}