Search in sources :

Example 6 with IEditorActionBarContributor

use of org.eclipse.ui.IEditorActionBarContributor in project core by jcryptool.

the class HexEditor method getStatusLineManager.

/**
 * Returns the status line manager of this editor.
 * @return the status line manager of this editor
 */
private IStatusLineManager getStatusLineManager() {
    IEditorActionBarContributor contributor = getEditorSite().getActionBarContributor();
    if (!(contributor instanceof EditorActionBarContributor))
        return null;
    IActionBars actionBars = ((EditorActionBarContributor) contributor).getActionBars();
    if (actionBars == null)
        return null;
    return actionBars.getStatusLineManager();
}
Also used : IEditorActionBarContributor(org.eclipse.ui.IEditorActionBarContributor) EditorActionBarContributor(org.eclipse.ui.part.EditorActionBarContributor) IEditorActionBarContributor(org.eclipse.ui.IEditorActionBarContributor) IActionBars(org.eclipse.ui.IActionBars)

Aggregations

IEditorActionBarContributor (org.eclipse.ui.IEditorActionBarContributor)6 EditorActionBarContributor (org.eclipse.ui.part.EditorActionBarContributor)2 ExtendedEditorActionBuilder (org.eclipse.wst.sse.ui.internal.ExtendedEditorActionBuilder)2 IExtendedContributor (org.eclipse.wst.sse.ui.internal.IExtendedContributor)2 IPopupMenuContributor (org.eclipse.wst.sse.ui.internal.IPopupMenuContributor)2 IMenuManager (org.eclipse.jface.action.IMenuManager)1 ISelection (org.eclipse.jface.viewers.ISelection)1 ISelectionChangedListener (org.eclipse.jface.viewers.ISelectionChangedListener)1 TaskEditorActionContributor (org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorActionContributor)1 Point (org.eclipse.swt.graphics.Point)1 IActionBars (org.eclipse.ui.IActionBars)1 IEditorPart (org.eclipse.ui.IEditorPart)1 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)1 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)1 PartInitException (org.eclipse.ui.PartInitException)1 MultiPageEditorActionBarContributor (org.eclipse.ui.part.MultiPageEditorActionBarContributor)1