public void dispose() { super.dispose(); if (fCreator != null) fCreator.removePropertyChangeListener(this); fCreator = null; }
@Override public void init(IPageSite pageSite) { super.init(pageSite); }
/** * Creates a new <code>ShowActionGroup</code>. The action requires * that the selection provided by the page's selection provider is of type * <code>org.eclipse.jface.viewers.IStructuredSelection</code>. * * @param page the page that owns this action group */ public ShowActionGroup(Page page) { this(page.getSite()); }
currentPageContainer.getPage().dispose(); currentPageContainer.getSubBars().dispose(); Control pageControl = currentPageContainer.getPage().getControl(); if (pageControl != null && !pageControl.isDisposed()) {
@Override protected PageRec doCreatePage(IWorkbenchPart part) { Page page = createMinimapPage(part); if (page == null) { return null; } PageSite site = new PageSite(this.getViewSite()); page.init(site); page.createControl(this.getPageBook()); return new PageBookView.PageRec(part, page); }
private PageContainer createPage(IHistoryPageSource source, Object object) { Page page = source.createPage(object); PageSite site = initPage(page); ((IHistoryPage) page).setSite(new WorkbenchHistoryPageSite(this, page.getSite())); page.createControl(book); PageContainer container = new PageContainer(page, source); container.setSubBars((SubActionBars) site.getActionBars()); return container; }
@Override protected Control createPage(Composite parent, ToolBarManager toolBarManager) { site = new DialogHistoryPageSite(getShell()); historyPage = (IHistoryPage)pageSource.createPage(object); historyPage.setSite(site); site.setToolBarManager(toolBarManager); ((Page) historyPage).createControl(parent); historyPage.setInput(object); String description = historyPage.getDescription(); if (description == null) description = ""; //$NON-NLS-1$ setPageDescription(description); return ((Page) historyPage).getControl(); }
/** * 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); }
protected IPage createDefaultPage(PageBook book) { Page page = new MessagePage(); page.createControl(getPageBook()); initPage(page); return page; }
/** * The <code>Page</code> implementation of this <code>IPage</code> method * disposes of this page's control (if it has one and it has not already * been disposed). Subclasses may extend. */ @Override public void dispose() { Control ctrl = getControl(); if (ctrl != null && !ctrl.isDisposed()) { ctrl.dispose(); } site = null; }
protected Control createPage(Composite parent, ToolBarManager toolBarManager) { site = new DialogHistoryPageSite(getShell()); historyPage = (IHistoryPage)pageSource.createPage(object); historyPage.setSite(site); site.setToolBarManager(toolBarManager); ((Page) historyPage).createControl(parent); historyPage.setInput(object); String description = historyPage.getDescription(); if (description == null) description = ""; //$NON-NLS-1$ setPageDescription(description); return ((Page) historyPage).getControl(); }
/** * 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); }
@Override protected IPage createDefaultPage(PageBook book) { Page page = new MessagePage(); page.createControl(getPageBook()); initPage(page); return page; }
@Override public void dispose() { NewSearchUI.removeQueryListener(queryListener); super.dispose(); }
@Override public void init(IPageSite pageSite) { super.init(pageSite); }
/** * Creates a new <code>JavaSearchActionGroup</code>. The group * requires that the selection provided by the page's selection provider * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>. * * @param page the page that owns this action group */ public JavaSearchActionGroup(Page page) { this(page.getSite()); }
/** * 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); }
protected IPage createPage(CompareViewerPane parent, IToolBarManager toolBarManager) { site = new DialogHistoryPageSite(parent.getShell()); historyPage = (IHistoryPage)pageSource.createPage(object); historyPage.setSite(site); site.setToolBarManager(toolBarManager); ((Page) historyPage).createControl(parent); historyPage.setInput(object); String description = historyPage.getDescription(); if (description == null) description = ""; //$NON-NLS-1$ setPageDescription(description); if (getTitle() == null) setTitle(historyPage.getName()); historyPage.addPropertyChangeListener(changeListener); return (IPage)historyPage; }
@Override public void dispose() { fMinimapWidget.uninstall(); super.dispose(); } }
@Override public void init(IPageSite pageSite) { super.init(pageSite); }