Remote Systems
v6.4.1

com.ibm.etools.systems.core
Class SystemPopupMenuActionContributorManager

java.lang.Object
  extended bycom.ibm.etools.systems.core.SystemObjectContributorManager
      extended bycom.ibm.etools.systems.core.SystemPopupMenuActionContributorManager

public class SystemPopupMenuActionContributorManager
extends SystemObjectContributorManager

We modelled our com.ibm.etools.systems.core.popupMenus extension point after the org.eclipse.ui.popupMenus extension point, so it makes sense to model the code to support it after the Eclipse code to support theirs. To that end, we have to bastardize the manager class for the popupMenu tag (it doesn't support subclasssing) and change it to:

See Also:
SystemPopupMenuActionContributor, SystemPopupMenuActionContributorReader

Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.systems.core.SystemObjectContributorManager
adapterLookup, objectLookup
 
Constructor Summary
SystemPopupMenuActionContributorManager()
          Constructor for SystemPopupMenuActionContributorManager
 
Method Summary
 boolean contributeObjectActions(IWorkbenchPart part, SystemMenuManager popupMenu, ISelectionProvider selProv, List actionIdOverrides)
          Contributes submenus and/or actions applicable to the selection in the provided viewer into the provided popup menu.
 IExtensionPoint getExtensionPointFilter()
           
static SystemPopupMenuActionContributorManager getManager()
          Returns the shared instance of this manager.
 boolean hasContributorsFor(Object object)
          Returns true if contributors exist in the manager for this object.
 boolean isApplicableTo(IStructuredSelection selection, IObjectContributor contributor)
           
 void registerContributor(IObjectContributor contributor, String targetType)
           
 
Methods inherited from class com.ibm.etools.systems.core.SystemObjectContributorManager
addContributorsFor, computeClassOrder, computeInterfaceOrder, flushLookup, getAdaptedResource, getContributors, getContributors, getContributors, getContributors, unregisterAllContributors, unregisterContributor, unregisterContributors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

SystemPopupMenuActionContributorManager

public SystemPopupMenuActionContributorManager()
Constructor for SystemPopupMenuActionContributorManager

Method Detail

getManager

public static SystemPopupMenuActionContributorManager getManager()
Returns the shared instance of this manager.


contributeObjectActions

public boolean contributeObjectActions(IWorkbenchPart part,
                                       SystemMenuManager popupMenu,
                                       ISelectionProvider selProv,
                                       List actionIdOverrides)
Contributes submenus and/or actions applicable to the selection in the provided viewer into the provided popup menu. This is the start of the whole enchilada. It is called from the SystemView class when filling the context menu. TODO use actionIdOverrides list


hasContributorsFor

public boolean hasContributorsFor(Object object)
Returns true if contributors exist in the manager for this object.

Overrides:
hasContributorsFor in class SystemObjectContributorManager

isApplicableTo

public boolean isApplicableTo(IStructuredSelection selection,
                              IObjectContributor contributor)
Overrides:
isApplicableTo in class SystemObjectContributorManager

registerContributor

public void registerContributor(IObjectContributor contributor,
                                String targetType)
Overrides:
registerContributor in class SystemObjectContributorManager
See Also:
ObjectContributorManager#registerContributor

getExtensionPointFilter

public IExtensionPoint getExtensionPointFilter()

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.