|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A compare container is used to represent any UI that can contain compare viewers.
This interface is not intended to be implemented by clients.
Method Summary | |
---|---|
void |
addCompareInputChangeListener(ICompareInput input,
ICompareInputChangeListener listener)
Register for change events for the given compare input. |
IActionBars |
getActionBars()
Return the action bars for the container or null if the container
does not have an action bars. |
ICompareNavigator |
getNavigator()
Return the ICompareNavigator associated with this container or null
if the container does not have a global navigator. |
IServiceLocator |
getServiceLocator()
Return the service locator for the container or null if the container
does not have one. |
IWorkbenchPart |
getWorkbenchPart()
Return the workbench part associated with this container or null if there is no part or it is not available. |
void |
registerContextMenu(MenuManager menu,
ISelectionProvider selectionProvider)
Register the content menu with the container to give the container a chance to add additional items to the context menu such as popup menu object contributions. |
void |
removeCompareInputChangeListener(ICompareInput input,
ICompareInputChangeListener listener)
Remove the change listener from the given compare input. |
void |
runAsynchronously(IRunnableWithProgress runnable)
Queue the given task to be run asynchronously. |
void |
setStatusMessage(String message)
Set the status message displayed by the container to the given message |
Methods inherited from interface org.eclipse.jface.operation.IRunnableContext |
---|
run |
Method Detail |
public void addCompareInputChangeListener(ICompareInput input, ICompareInputChangeListener listener)
input
- the compare inputlistener
- the compare input change listenerpublic void removeCompareInputChangeListener(ICompareInput input, ICompareInputChangeListener listener)
input
- the compare inputlistener
- the compare input change listenerpublic void registerContextMenu(MenuManager menu, ISelectionProvider selectionProvider)
IWorkbenchActionConstants.MB_ADDITIONS
separator as this is where the container will add actions.
menu
- the menu being registeredselectionProvider
- the selection providerpublic void setStatusMessage(String message)
message
- the status messagepublic IActionBars getActionBars()
null
if the container
does not have an action bars.
null
public IServiceLocator getServiceLocator()
null
if the container
does not have one.
null
public ICompareNavigator getNavigator()
ICompareNavigator
associated with this container or null
if the container does not have a global navigator.
ICompareNavigator
associated with this container or null
public void runAsynchronously(IRunnableWithProgress runnable)
This method should be treated as a request to run the given task asynchronously. However, clients should not assume that the code will be run asynchronously. Depending on the container implementation, a call to this method may or may not block the caller until the task is completed. Also, the task may be executed in a modal or non-modal fashion.
runnable
- the task to be performedpublic IWorkbenchPart getWorkbenchPart()
null
if there is no part or it is not available.
null
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.