|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.action.ContributionItem org.eclipse.ui.actions.CompoundContributionItem org.eclipse.ecf.presence.ui.roster.AbstractPresenceContributionItem org.eclipse.ecf.presence.ui.roster.AbstractRosterEntryContributionItem
public abstract class AbstractRosterEntryContributionItem
Abstract contribution item class for creating menu contribution items for roster entries. Subclasses should be created as appropriate.
Field Summary |
---|
Fields inherited from class org.eclipse.ecf.presence.ui.roster.AbstractPresenceContributionItem |
---|
EMPTY_ARRAY |
Constructor Summary | |
---|---|
AbstractRosterEntryContributionItem()
|
|
AbstractRosterEntryContributionItem(java.lang.String id)
|
Method Summary | |
---|---|
protected IContainer |
getContainerForRosterEntry(IRosterEntry entry)
Get container for the given IRosterEntry. |
protected IRosterEntry |
getSelectedRosterEntry()
Get the currently selected IRosterEntry. |
protected boolean |
isAvailable(IRosterEntry entry)
Return true if given IRosterEntry has an IPresence, and it's IPresence.Type and IPresence.Mode are both AVAILABLE. |
Methods inherited from class org.eclipse.ecf.presence.ui.roster.AbstractPresenceContributionItem |
---|
getContributionItems, getSelection, makeActions |
Methods inherited from class org.eclipse.ui.actions.CompoundContributionItem |
---|
dispose, 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 |
Constructor Detail |
---|
public AbstractRosterEntryContributionItem()
public AbstractRosterEntryContributionItem(java.lang.String id)
Method Detail |
---|
protected IRosterEntry getSelectedRosterEntry()
null
if nothing is selected or if something other
than IRosterEntry is selected.protected IContainer getContainerForRosterEntry(IRosterEntry entry)
entry
- the IRosterEntry. May be null
.
null
if the given entry
is
null, or if the container associated with the entry
cannot be accessed.protected boolean isAvailable(IRosterEntry entry)
entry
- the IRosterEntry to check. If null
,
false
will be returned.
entry
's IPresence.Mode and
IPresence.Type are both AVAILABLE. false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |