org.eclipse.ui.internal.WorkbenchImages Java Examples

The following examples show how to use org.eclipse.ui.internal.WorkbenchImages. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RcpWorkbenchAdvisor.java    From olca-app with Mozilla Public License 2.0 6 votes vote down vote up
/**
 * There is no official method/extension point for replacing the shared
 * workbench images. Thus, we access the internal WorkbenchImages class here
 * and replace some images with our own here.
 */
private void changeWorkbenchImages() {
	try {
		WorkbenchImages.declareImage(
				IWorkbenchGraphicConstants.IMG_WIZBAN_IMPORT_WIZ,
				RcpActivator.getImageDescriptor("icons/wizard/import.png"),
				true);
		WorkbenchImages.declareImage(
				IWorkbenchGraphicConstants.IMG_WIZBAN_EXPORT_WIZ,
				RcpActivator.getImageDescriptor("icons/wizard/export.png"),
				true);
		WorkbenchImages.declareImage(
				ISharedImages.IMG_OBJ_FOLDER,
				RcpActivator.getImageDescriptor("icons/folder_open.png"),
				true);
	} catch (Exception e) {
		Logger log = LoggerFactory.getLogger(getClass());
		log.error("failed to patch workbench images", e);
	}
}
 
Example #2
Source File: FilteredItemsSelectionDialog.java    From tlaplus with MIT License 5 votes vote down vote up
private Image getImage(Object element) {
	if (element instanceof ItemsListSeparator) {
		return WorkbenchImages
				.getImage(IWorkbenchGraphicConstants.IMG_OBJ_SEPARATOR);
	}

	return provider.getImage(element);
}
 
Example #3
Source File: HostPagePathSelectionDialog.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 4 votes vote down vote up
public HostPagePathLabelProvider() {
  image = WorkbenchImages.getImage(ISharedImages.IMG_OBJ_FOLDER);
}