public static void addToMenu(IWorkbenchWindow window, IMenuManager menu, Object element) { IType[] types= convertToTypes(element); if (types != null) { menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, new OpenHierarchyPerspectiveItem(window, types)); }
public static void addToMenu(IWorkbenchWindow window, IMenuManager menu, ISelection s) { addToMenu(window, menu, getElement(s));
	public static void addToMenu(IWorkbenchWindow window, IMenuManager menu, Object element) {			IType[] types= convertToTypes(element);		if (types != null) {			menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, new OpenHierarchyPerspectiveItem(window, types));		}	}