org.eclipse.ecf.docshare.menu
Class DocShareRosterMenuContributionItem
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.actions.CompoundContributionItem
org.eclipse.ecf.presence.ui.menu.AbstractRosterMenuContributionItem
org.eclipse.ecf.docshare.menu.DocShareRosterMenuContributionItem
- All Implemented Interfaces:
- org.eclipse.jface.action.IContributionItem
public class DocShareRosterMenuContributionItem
- extends AbstractRosterMenuContributionItem
- Since:
- 2.1
Methods inherited from class org.eclipse.ecf.presence.ui.menu.AbstractRosterMenuContributionItem |
addEntry, createCommandContributionItemForEntry, createContributionItemsForEntry, createContributionItemsForGroup, createContributionItemsForRoster, createMenuManagerForGroup, createMenuManagerForRoster, createMenuManagerForTop, dispose, getPresenceContainerAdapters, getRosterEntryImageDescriptor, getTopMenuImageDescriptor, setTopMenuImageDescriptor, setTopMenuName |
Methods inherited from class org.eclipse.ui.actions.CompoundContributionItem |
fill, isDirty, isDynamic, setParent |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
fill, fill, fill, getId, getParent, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setVisible, toString, update, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DocShareRosterMenuContributionItem
public DocShareRosterMenuContributionItem()
DocShareRosterMenuContributionItem
public DocShareRosterMenuContributionItem(java.lang.String id)
getEditorPart
protected org.eclipse.ui.IEditorPart getEditorPart()
getDocShareForPresenceContainerAdapter
protected DocShare getDocShareForPresenceContainerAdapter(IPresenceContainerAdapter presenceContainerAdapter)
getContributionItems
protected org.eclipse.jface.action.IContributionItem[] getContributionItems()
- Overrides:
getContributionItems
in class AbstractRosterMenuContributionItem
createContributionItemsForPresenceContainer
protected org.eclipse.jface.action.IContributionItem[] createContributionItemsForPresenceContainer(IPresenceContainerAdapter presenceContainerAdapter)
- Description copied from class:
AbstractRosterMenuContributionItem
- Create contribution items for a given presence container adapter. Subclasses may override as
appropriate to customize the creation of contributions with an alternative strategy.
- Overrides:
createContributionItemsForPresenceContainer
in class AbstractRosterMenuContributionItem
- Parameters:
presenceContainerAdapter
- the IPresenceContainerAdapter to create contribution items for. Must not be null
.
- Returns:
- IContributionItem[] for given IPresenceContainerAdapter. Will not return
null
.
getMenuContributionForStopShare
protected org.eclipse.jface.action.IContributionItem[] getMenuContributionForStopShare(IRoster roster,
DocShare docShare,
ID otherID)
createRosterEntryHandler
protected AbstractRosterMenuHandler createRosterEntryHandler(IRosterEntry rosterEntry)
- Description copied from class:
AbstractRosterMenuContributionItem
- Create a
AbstractRosterMenuHandler
for a given IRosterEntry instance. Implementers of this method
should construct and return a new AbstractRosterMenuHandler
. When a menu selection is made for
a given IRosterEntry
menu item, the associated AbstractRosterMenuHandler
instance will have its
AbstractRosterMenuHandler.execute(org.eclipse.core.commands.ExecutionEvent)
method will
be called. This way, subclasses may define arbitrary behavior for the dynamic menu item
selection.
- Specified by:
createRosterEntryHandler
in class AbstractRosterMenuContributionItem
- Parameters:
rosterEntry
- the IRosterEntry
for the AbstractRosterMenuHandler
. Will not be null
.
- Returns:
AbstractRosterMenuHandler
instance. Must not be null
.
trimIDNameForMenu
protected java.lang.String trimIDNameForMenu(ID id)