Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.ui.internal
Class ObjectActionContributorManager  view ObjectActionContributorManager download ObjectActionContributorManager.java

java.lang.Object
  extended byorg.eclipse.ui.internal.ObjectContributorManager
      extended byorg.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.


Field Summary
private static ObjectActionContributorManager sharedInstance
           
 
Fields inherited from class org.eclipse.ui.internal.ObjectContributorManager
adapterLookup, contributors, objectLookup
 
Constructor Summary
ObjectActionContributorManager()
          PopupMenuManager constructor.
 
Method Summary
private  java.util.List computeCombinedOrder(java.lang.Class inputClass)
          Returns the class search order starting with extensibleClass.
 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.
private  java.lang.Class getCommonClass(java.lang.Class class1, java.lang.Class class2)
          Returns the common denominator class for two input classes.
private  java.lang.Class getCommonClass(java.util.List objects)
          Returns the common denominator class for the given collection of objects.
private  java.util.List getCommonClasses(java.util.List objects)
          Returns the common denominator class and interfaces for the given collection of objects.
private  java.lang.Class getCommonResourceClass(java.util.List objects)
          Returns the common denominator resource class for the given collection of objects.
static ObjectActionContributorManager getManager()
          Returns the shared instance of this manager.
private  void loadContributors()
          Loads the contributors from the workbench's registry.
 
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
 

Field Detail

sharedInstance

private static ObjectActionContributorManager sharedInstance
Constructor Detail

ObjectActionContributorManager

public ObjectActionContributorManager()
PopupMenuManager constructor.

Method Detail

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.