use of org.eclipse.ui.views.IViewCategory in project linuxtools by eclipse.
the class AbstractView method findRegisteredViewPath.
private String[] findRegisteredViewPath(Matcher<String> title) {
IViewDescriptor viewDescriptor = findView(title);
IViewCategory categoryDescriptor = findViewCategory(viewDescriptor);
return pathForView(viewDescriptor, categoryDescriptor);
}
use of org.eclipse.ui.views.IViewCategory in project ecf by eclipse.
the class ShowViewDialogLabelProvider method getImage.
public Image getImage(Object element) {
ImageDescriptor desc = null;
if (element instanceof IViewCategory)
desc = PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_OBJ_FOLDER);
else if (element instanceof IViewDescriptor)
desc = ((IViewDescriptor) element).getImageDescriptor();
if (desc == null)
return null;
Image image = (Image) images.get(desc);
if (image == null) {
image = desc.createImage();
images.put(desc, image);
}
return image;
}
use of org.eclipse.ui.views.IViewCategory in project reddeer by eclipse.
the class ViewLookup method findRegisteredViewPath.
/**
* Finds registered view path
* @param title of view
* @return view path
*/
public String[] findRegisteredViewPath(Matcher<String> title) {
IViewDescriptor viewDescriptor = findView(title);
IViewCategory categoryDescriptor = findViewCategory(viewDescriptor);
return pathForView(viewDescriptor, categoryDescriptor);
}
Aggregations