java.lang.Object
org.eclipse.ui.internal.ObjectContributorManager
org.eclipse.ui.internal.ObjectActionContributorManager
- public class ObjectActionContributorManager
- extends ObjectContributorManager
This manager is used to populate a popup menu manager with actions
for a given type.
| Methods inherited from class org.eclipse.ui.internal.ObjectContributorManager |
addContributorsFor, computeClassOrder, computeInterfaceOrder, flushLookup, getAdaptedResource, getContributors, getContributors, getContributors, getContributors, hasContributorsFor, isApplicableTo, isApplicableTo, registerContributor, unregisterAllContributors, unregisterContributor, unregisterContributors |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sharedInstance
private static ObjectActionContributorManager sharedInstance
ObjectActionContributorManager
public ObjectActionContributorManager()
- PopupMenuManager constructor.
computeCombinedOrder
private java.util.List computeCombinedOrder(java.lang.Class inputClass)
- Returns the class search order starting with
extensibleClass.
The search order is defined in this class' comment.
contributeObjectActions
public boolean contributeObjectActions(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.action.IMenuManager popupMenu,
org.eclipse.jface.viewers.ISelectionProvider selProv)
- Contributes submenus and/or actions applicable to the selection in the
provided viewer into the provided popup menu.
getCommonClass
private java.lang.Class getCommonClass(java.lang.Class class1,
java.lang.Class class2)
- Returns the common denominator class for
two input classes.
getCommonClass
private java.lang.Class getCommonClass(java.util.List objects)
- Returns the common denominator class for the given
collection of objects.
getCommonClasses
private java.util.List getCommonClasses(java.util.List objects)
- Returns the common denominator class and interfaces for the given
collection of objects.
getManager
public static ObjectActionContributorManager getManager()
- Returns the shared instance of this manager.
loadContributors
private void loadContributors()
- Loads the contributors from the workbench's registry.
getCommonResourceClass
private java.lang.Class getCommonResourceClass(java.util.List objects)
- Returns the common denominator resource class for the given
collection of objects.
Do not return a resource class if the objects are resources
themselves so as to prevent double registration of actions.