本文整理匯總了Java中org.eclipse.ui.ISharedImages.getImage方法的典型用法代碼示例。如果您正苦於以下問題:Java ISharedImages.getImage方法的具體用法?Java ISharedImages.getImage怎麽用?Java ISharedImages.getImage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.ui.ISharedImages
的用法示例。
在下文中一共展示了ISharedImages.getImage方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getImage
import org.eclipse.ui.ISharedImages; //導入方法依賴的package包/類
@Override
public Image getImage(Object element) {
if (propertyIcon == PropertyIcon.NONE) {
return null;
}
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
if (propertyIcon == PropertyIcon.INFO) {
return sharedImages.getImage(ISharedImages.IMG_OBJS_INFO_TSK);
} else {
return sharedImages.getImage(ISharedImages.IMG_OBJS_WARN_TSK);
}
}
示例2: getImage
import org.eclipse.ui.ISharedImages; //導入方法依賴的package包/類
@Override
public Image getImage(Object element) {
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
return element instanceof IFile
? sharedImages.getImage(ISharedImages.IMG_OBJ_FILE)
: sharedImages.getImage(ISharedImages.IMG_OBJ_FOLDER);
}
示例3: initializeImages
import org.eclipse.ui.ISharedImages; //導入方法依賴的package包/類
private void initializeImages()
{
if (fgImagesInitialized)
{
return;
}
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
fgTaskImage = sharedImages.getImage(SharedImages.IMG_OBJS_TASK_TSK);
fgInfoImage = sharedImages.getImage(ISharedImages.IMG_OBJS_INFO_TSK);
fgWarningImage = sharedImages.getImage(ISharedImages.IMG_OBJS_WARN_TSK);
fgErrorImage = sharedImages.getImage(ISharedImages.IMG_OBJS_ERROR_TSK);
fgImagesInitialized = true;
}
示例4: getErrorImage
import org.eclipse.ui.ISharedImages; //導入方法依賴的package包/類
protected Image getErrorImage() {
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
return sharedImages.getImage(ISharedImages.IMG_DEC_FIELD_ERROR);
}