Bug 32038 Use shared images for properties, tasks, bookmarks views
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/TaskList.java
IMenuManager submenu = new MenuManager(TaskListMessages.getString("SortByMenu.text")); 
		menu.add(submenu);
		submenu.add(sortByCategoryAction);
		submenu.add(sortByCompletedAction);
		submenu.add(sortByPriorityAction);
		submenu.add(sortByDescriptionAction);
		submenu.add(sortByResourceAction);
		submenu.add(sortByContainerAction);
		submenu.add(sortByLocationAction);
		submenu.add(sortByCreationTimeAction);
		submenu.add(new Separator());
		submenu.add(sortAscendingAction);
		submenu.add(sortDescendingAction);
		menu.add(filtersAction);
		IToolBarManager toolBar = actionBars.getToolBarManager();
		toolBar.add(newTaskAction);
		toolBar.add(removeTaskAction);
		toolBar.add(filtersAction);
	}
	/**
	 * Contributes actions to the pop-up menu.
	 */
	void fillContextMenu(IMenuManager menu) {
		
		IStructuredSelection selection = (IStructuredSelection) getSelection();
		markCompletedAction.setEnabled(
			markCompletedAction.shouldEnable(selection));
		resolveMarkerAction.setEnabled(
			resolveMarkerAction.shouldEnable(selection));