private void updateActionBars() { IActionBars bars = getActionBars(); if (bars != null) bars.updateActionBars(); }
@Override public void update() { getActionBars().updateActionBars(); } }
@Override public void setActiveEditor(IEditorPart targetEditor) { // Hook in the actions this.hookInActions(targetEditor); // Update the action bars targetEditor.getEditorSite().getActionBars().updateActionBars(); }
public void focusLost(FocusEvent e) { if (fViewCopyHandler != null) { IActionBars actionBars= viewSite.getActionBars(); actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), fViewCopyHandler); actionBars.updateActionBars(); fViewCopyHandler= null; } }
@Override public void focusLost(FocusEvent e) { if (fViewCopyHandler != null) { IActionBars actionBars= viewSite.getActionBars(); actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), fViewCopyHandler); actionBars.updateActionBars(); fViewCopyHandler= null; } }
private void fillActionBars(IActionBars actionBars) { IToolBarManager toolBar= actionBars.getToolBarManager(); fillToolBar(toolBar); actionBars.updateActionBars(); // Add selectAll action handlers. actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), fSelectAllAction); }
private void fillActionBars(IActionBars actionBars) { IToolBarManager toolBar= actionBars.getToolBarManager(); fillToolBar(toolBar); actionBars.updateActionBars(); // Add selectAll action handlers. actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), fSelectAllAction); }
public void focusGained(FocusEvent e) { IActionBars actionBars= viewSite.getActionBars(); fViewCopyHandler= actionBars.getGlobalActionHandler(ActionFactory.COPY.getId()); actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction); actionBars.updateActionBars(); } });
@Override public void focusGained(FocusEvent e) { IActionBars actionBars= viewSite.getActionBars(); fViewCopyHandler= actionBars.getGlobalActionHandler(ActionFactory.COPY.getId()); actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction); actionBars.updateActionBars(); } });
public void focusLost(FocusEvent e) { site.getActionBars().setGlobalActionHandler( ActionFactory.SELECT_ALL.getId(), null); site.getActionBars().setGlobalActionHandler( ActionFactory.COPY.getId(), null); site.getActionBars().updateActionBars(); }
public void focusLost(FocusEvent e) { pageSite.getActionBars().setGlobalActionHandler( ActionFactory.SELECT_ALL.getId(), null); pageSite.getActionBars().setGlobalActionHandler( ActionFactory.COPY.getId(), null); pageSite.getActionBars().updateActionBars(); }
public void focusGained(FocusEvent e) { site.getActionBars().setGlobalActionHandler( ActionFactory.SELECT_ALL.getId(), selectAll); site.getActionBars().setGlobalActionHandler( ActionFactory.COPY.getId(), copy); site.getActionBars().updateActionBars(); } });
/** * {@inheritDoc} */ public void init(IPageSite pageSite) { super.init(pageSite); IMenuManager menuManager= pageSite.getActionBars().getMenuManager(); addLayoutActions(menuManager); initActionDefinitionIDs(pageSite.getWorkbenchWindow()); menuManager.updateAll(true); pageSite.getActionBars().updateActionBars(); }
/** * Configures the toolBar. */ private void initializeToolBar() { IToolBarManager tbm = getViewSite().getActionBars().getToolBarManager(); tbm.add(new Separator(IJavaDebugUIConstants.EVALUATION_GROUP)); tbm.add(fClearDisplayAction); getViewSite().getActionBars().updateActionBars(); }
private void createSelectAllAction() { IActionBars actionBars= getViewSite().getActionBars(); if (isInListState()) { fSelectAllAction= new SelectAllAction((TableViewer)fWrappedViewer.getViewer()); actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), fSelectAllAction); } else { actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), null); fSelectAllAction= null; } actionBars.updateActionBars(); }
private void createSelectAllAction() { IActionBars actionBars= getViewSite().getActionBars(); if (isInListState()) { fSelectAllAction= new SelectAllAction((TableViewer)fWrappedViewer.getViewer()); actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), fSelectAllAction); } else { actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), null); fSelectAllAction= null; } actionBars.updateActionBars(); }
private void createSelectAllAction() { IActionBars actionBars= getViewSite().getActionBars(); if (isInListState()) { fSelectAllAction= new SelectAllAction((TableViewer)fWrappedViewer.getViewer()); actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), fSelectAllAction); } else { actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), null); fSelectAllAction= null; } actionBars.updateActionBars(); }
private void initializeToolBar() { IToolBarManager tbm= getViewSite().getActionBars().getToolBarManager(); createToolBarGroups(tbm); tbm.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fSearchAgainAction); tbm.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fCancelAction); tbm.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fSearchesDropDownAction); tbm.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fPinSearchViewAction); getViewSite().getActionBars().updateActionBars(); }
private void initializeToolBar() { IToolBarManager tbm= getViewSite().getActionBars().getToolBarManager(); createToolBarGroups(tbm); tbm.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fSearchAgainAction); tbm.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fCancelAction); tbm.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fSearchesDropDownAction); tbm.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fPinSearchViewAction); getViewSite().getActionBars().updateActionBars(); }
public void install(IActionBars bars) { bars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction); bars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction); bars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction); bars.setGlobalActionHandler(ActionFactory.UNDO.getId(), undoAction); bars.setGlobalActionHandler(ActionFactory.REDO.getId(), redoAction); bars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), selectAllAction); bars.setGlobalActionHandler(ActionFactory.FIND.getId(), findAction); bars.updateActionBars(); }