/** * The <code>PropertySheetPage</code> implementation of this <code>IPage</code> method * calls <code>makeContributions</code> for backwards compatibility with * previous versions of <code>IPage</code>. * <p> * Subclasses may reimplement. * </p> */ @Override public void setActionBars(IActionBars actionBars) { super.setActionBars(actionBars); cellEditorActionHandler = new CellEditorActionHandler(actionBars); cellEditorActionHandler.setCopyAction(copyAction); }
/** * The <code>PropertySheetPage</code> implementation of this <code>IPage</code> method * calls <code>makeContributions</code> for backwards compatibility with * previous versions of <code>IPage</code>. * <p> * Subclasses may reimplement. * </p> */ public void setActionBars(IActionBars actionBars) { super.setActionBars(actionBars); cellEditorActionHandler = new CellEditorActionHandler(actionBars); cellEditorActionHandler.setCopyAction(copyAction); }
/** * The <code>PropertySheetPage</code> implementation of this <code>IPage</code> method * calls <code>makeContributions</code> for backwards compatibility with * previous versions of <code>IPage</code>. * <p> * Subclasses may reimplement. * </p> */ @Override public void setActionBars(IActionBars actionBars) { super.setActionBars(actionBars); cellEditorActionHandler = new CellEditorActionHandler(actionBars); cellEditorActionHandler.setCopyAction(copyAction); }
/** * Creates the search list inner viewer. * @param parent the parent */ @Override public void createPartControl(Composite parent) { Assert.isTrue(fViewer == null); fViewer= new SearchResultViewer(this, parent); if (fMemento != null) fViewer.restoreState(fMemento); fMemento= null; SearchManager.getDefault().addSearchChangeListener(fViewer); fViewer.init(); // Add selectAll action handlers. fCellEditorActionHandler = new CellEditorActionHandler(getViewSite().getActionBars()); fSelectAllAction= new SelectAllAction(); fSelectAllAction.setViewer(fViewer); fCellEditorActionHandler.setSelectAllAction(fSelectAllAction); fillActionBars(getViewSite().getActionBars()); fPropertyChangeListener= event -> { if (SearchPreferencePage.POTENTIAL_MATCH_FG_COLOR.equals(event.getProperty()) || SearchPreferencePage.EMPHASIZE_POTENTIAL_MATCHES.equals(event.getProperty())) if (fViewer != null) fViewer.updatedPotentialMatchFgColor(); }; SearchPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(fPropertyChangeListener); PlatformUI.getWorkbench().getHelpSystem().setHelp(fViewer.getControl(), SearchPlugin.getDefault().getSearchViewHelpContextId()); }
fCellEditorActionHandler = new CellEditorActionHandler(getViewSite().getActionBars()); fSelectAllAction= new SelectAllAction(); fSelectAllAction.setViewer(fViewer);
editorActionHandler = new CellEditorActionHandler(getViewSite() .getActionBars()); editorActionHandler.addCellEditor(descriptionEditor);
actionHandler = new CellEditorActionHandler(actionBars); actionHandler.addCellEditor(getCellEditor()); actionBars.updateActionBars();
.getActiveEditor().getEditorSite().getActionBars(); saveCurrentActions(actionBars); actionHandler = new CellEditorActionHandler(actionBars); actionHandler.addCellEditor(getCellEditor()); actionBars.updateActionBars();