/** * 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(); }
@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(); }
Control pageControl = currentPageContainer.getPage().getControl(); if (pageControl != null && !pageControl.isDisposed()) {