Java Code Examples for org.eclipse.ui.part.IPageBookViewPage#init()
The following examples show how to use
org.eclipse.ui.part.IPageBookViewPage#init() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CasEditorView.java From uima-uimaj with Apache License 2.0 | 6 votes |
/** * Creates the view page. * * @param casViewPageBookedPage the cas view page booked page * @param editor the editor */ private void createViewPage( CasEditorViewPage casViewPageBookedPage, ICasEditor editor) { IPageBookViewPage page = doCreatePage(editor); if (page != null) { try { page.init(new SubPageSite(casViewPageBookedPage.getSite())); } catch (PartInitException e) { CasEditorPlugin.log(e); } casViewPageBookedPage.setCASViewPage(page); } else { casViewPageBookedPage.setCASViewPage(null); } }
Example 2
Source File: OutlinePageBook.java From uima-uimaj with Apache License 2.0 | 5 votes |
@Override protected void initializeAndShowPage(final IPageBookViewPage page) { if (viewer != null) viewer.removeSelectionChangedListener(this); IPageSite site = new SubPageSite(getSite()); if (book != null && page != null) { try { page.init(site); } catch (PartInitException e) { CasEditorPlugin.log(e); } } super.initializeAndShowPage(page); if (book != null) { if (page != null) { viewer = ((AnnotationOutline) page).getViewer(); viewer.addSelectionChangedListener(this); } else { viewer = null; } } }