public interface ICompareContainer extends IRunnableContext
This interface is not intended to be implemented by clients.
| Modifier and Type | Method and Description |
|---|---|
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
|
runvoid addCompareInputChangeListener(ICompareInput input, ICompareInputChangeListener listener)
input - the compare inputlistener - the compare input change listenervoid removeCompareInputChangeListener(ICompareInput input, ICompareInputChangeListener listener)
input - the compare inputlistener - the compare input change listenervoid 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 providervoid setStatusMessage(String message)
message - the status messageIActionBars getActionBars()
null if the container
does not have an action bars.nullIServiceLocator getServiceLocator()
null if the container
does not have one.nullICompareNavigator getNavigator()
ICompareNavigator associated with this container or null
if the container does not have a global navigator.ICompareNavigator associated with this container or nullvoid 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 performedIWorkbenchPart getWorkbenchPart()
null if there is no part or it is not available.null
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.