use of org.eclipse.ui.part.PageBook in project linuxtools by eclipse.
the class DockerExplorerView method createPartControl.
@Override
public void createPartControl(final Composite parent) {
final FormToolkit toolkit = new FormToolkit(parent.getDisplay());
this.pageBook = new PageBook(parent, SWT.NONE);
this.connectionsPane = createConnectionsPane(pageBook, toolkit);
this.explanationsPane = createExplanationPane(pageBook, toolkit);
showConnectionsOrExplanations();
this.containersAndImagesSearchFilter = getContainersAndImagesSearchFilter();
getCommonViewer().addFilter(containersAndImagesSearchFilter);
DockerConnectionManager.getInstance().addConnectionManagerListener(this);
if (DockerConnectionManager.getInstance().getConnections().length > 0) {
IDockerConnection conn = DockerConnectionManager.getInstance().getConnections()[0];
getCommonViewer().setSelection(new StructuredSelection(conn));
}
}
use of org.eclipse.ui.part.PageBook in project linuxtools by eclipse.
the class DockerImageHierarchyView method createPartControl.
@Override
public void createPartControl(final Composite parent) {
final FormToolkit toolkit = new FormToolkit(parent.getDisplay());
this.pageBook = new PageBook(parent, SWT.NONE);
this.hierarchyPane = createHierarchyPane(pageBook, toolkit);
this.explanationsPane = createExplanationPane(pageBook, toolkit);
showHierarchyOrExplanations();
}
use of org.eclipse.ui.part.PageBook in project jbosstools-hibernate by jbosstools.
the class DiagramContentOutlinePage method createControl.
/**
* @see org.eclipse.ui.part.IPage#createControl(org.eclipse.swt.widgets.Composite)
*/
public void createControl(Composite parent) {
pageBook = new PageBook(parent, SWT.NONE);
outline = getViewer().createControl(pageBook);
overview = new Canvas(pageBook, SWT.NONE);
pageBook.showPage(outline);
configureOutlineViewer();
hookOutlineViewer();
initializeOutlineViewer();
}
use of org.eclipse.ui.part.PageBook in project egit by eclipse.
the class MultiPageEditorContentOutlinePage method createControl.
@Override
public void createControl(Composite parent) {
book = new PageBook(parent, SWT.NONE);
emptyPage = new MessagePage();
emptyPage.createControl(book);
emptyPage.setMessage(UIText.MultiPageEditorContentOutlinePage_NoOutline);
Object activePage = editorPart.getSelectedPage();
if (activePage instanceof IEditorPart) {
showPage(createOutlinePage((IEditorPart) activePage));
} else {
currentPage = emptyPage;
book.showPage(emptyPage.getControl());
}
pageListener = (event) -> {
Object newPage = event.getSelectedPage();
if (!(newPage instanceof IEditorPart)) {
showPage(emptyPage);
return;
}
IPage newOutlinePage = pages.get(newPage);
if (newOutlinePage == null) {
newOutlinePage = createOutlinePage((IEditorPart) newPage);
}
showPage(newOutlinePage);
};
editorPart.addPageChangedListener(pageListener);
}
use of org.eclipse.ui.part.PageBook in project webtools.servertools by eclipse.
the class ServersView2 method createPartControl.
@Override
public void createPartControl(Composite parent) {
// Add PageBook as parent composite
FormToolkit toolkit = new FormToolkit(parent.getDisplay());
book = new PageBook(parent, SWT.NONE);
super.createPartControl(book);
// Main page for the Servers tableViewer
mainPage = getCommonViewer().getControl();
// Page prompting to define a new server
noServersPage = createDefaultPage(toolkit);
book.showPage(mainPage);
IContextService contextSupport = (IContextService) getSite().getService(IContextService.class);
contextSupport.activateContext(SERVERS_VIEW_CONTEXT);
deferInitialization();
}
Aggregations