| java.lang.Object org.eclipse.ui.internal.InternalHandlerUtil
InternalHandlerUtil | public class InternalHandlerUtil (Code) | | Some common utilities for working with handlers and IEvaluationContexts in
Platform UI.
Note: this class should not be instantiated or extended by clients.
PROVISIONAL. This class or interface has been added as part
of a work in progress. There is a guarantee neither that this API will work
nor that it will remain the same. Please do not use this API without
consulting with the Platform/UI team.
since: 3.3 |
getActiveContexts | public static Collection getActiveContexts(Object appContext)(Code) | | Return the active contexts.
Parameters: appContext - The execution appContext that contains the application context a collection of String contextIds, or null . |
getActiveEditor | public static IEditorPart getActiveEditor(Object appContext)(Code) | | Return the active editor.
Parameters: appContext - The execution appContext that contains the application context the active editor, or null . |
getActiveEditorId | public static String getActiveEditorId(Object appContext)(Code) | | Return the part id of the active editor.
Parameters: appContext - The execution appContext that contains the application context the part id of the active editor, or null . |
getActivePart | public static IWorkbenchPart getActivePart(Object appContext)(Code) | | Return the active part.
Parameters: appContext - The execution appContext that contains the application context the active part, or null . |
getActivePartId | public static String getActivePartId(Object appContext)(Code) | | Return the part id of the active part.
Parameters: appContext - The execution appContext that contains the application context the part id of the active part, or null . |
getActiveShell | public static Shell getActiveShell(Object appContext)(Code) | | Return the active shell. Is not necessarily the active workbench window
shell.
Parameters: appContext - The execution appContext that contains the application context the active shell, or null . |
getActiveSite | public static IWorkbenchSite getActiveSite(Object appContext)(Code) | | Return the active part site.
Parameters: appContext - The execution appContext that contains the application context the active part site, or null . |
getActiveWorkbenchWindow | public static IWorkbenchWindow getActiveWorkbenchWindow(Object appContext)(Code) | | Return the active workbench window.
Parameters: appContext - The execution appContext that contains the application context the active workbench window, or null . |
getCurrentSelection | public static ISelection getCurrentSelection(Object appContext)(Code) | | Return the current selection.
Parameters: appContext - The execution appContext that contains the application context the current selection, or null . |
getVariable | public static Object getVariable(Object appContext, String name)(Code) | | Extract the variable.
Parameters: appContext - The application context Parameters: name - The variable name to extract. The object from the application context, or null if it could not be found. |
|
|