private void pluginSelected(IPluginModelBase model, boolean checked) { TracingPropertySource source = getPropertySource(model); if (source == null) { fPageBook.showEmptyPage(); } else { PageBookKey key = new PageBookKey(model, checked); if (!fPageBook.hasPage(key) || source.isChanged()) { Composite parent = fPageBook.createPage(key); source.createContents(parent, checked); source.setChanged(false); } fPageBook.showPage(key); } }
private boolean showCachedPage(AbstractIntroPage page) { String formPageId = null; if (pageForm.hasPage(page.getId())) { pageForm.showPage(page, sharedStyleManager); formPageId = PageForm.PAGE_FORM_ID; } else if (pageFormWithNav.hasPage(page.getId())) { pageFormWithNav.showPage(page, sharedStyleManager); formPageId = PageFormWithNavigation.PAGE_FORM_WITH_NAVIGATION_ID; } else if (mainPageBook.hasPage(page.getId())) formPageId = page.getId(); else return false; mainPageBook.showPage(formPageId); return true; }
@Override public void run() { if (!pageBook.hasPage(key)) { Composite parent = pageBook.createPage(key); fpage.createContents(parent); parent.setData(fpage); } //commit the current page if (oldPage!=null && oldPage.isDirty()) oldPage.commit(false); //refresh the new page if (fpage.isStale()) fpage.refresh(); fpage.selectionChanged(masterPart, currentSelection); pageBook.showPage(key); } });
categoryForm.createPartControl(categoryPageBook, styleManager); categoryPageBook.showPage(page.getId());
fpage.refresh(); fpage.selectionChanged(masterPart, currentSelection); pageBook.showPage(key); }); return;