use of org.eclipse.ui.part.PageBook in project webtools.sourceediting by eclipse.
the class EditCatalogEntryDialog method createMainComponent.
protected Composite createMainComponent(Composite composite) {
if (// "edit" action
fCatalogElement != null) {
Composite composite1 = new Composite(composite, SWT.NONE);
GridData data = new GridData(GridData.FILL_BOTH);
composite1.setLayoutData(data);
GridLayout layout = new GridLayout();
composite1.setLayout(layout);
pageContainer = new PageBook(composite1, SWT.NONE);
pageContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
if (fCatalogElement.getType() == ICatalogElement.TYPE_ENTRY) {
CatalogElementPage entryPage = new CatalogEntryPage();
entryPage.createControl(pageContainer);
showPage(entryPage);
} else if (fCatalogElement.getType() == ICatalogElement.TYPE_NEXT_CATALOG) {
CatalogElementPage nextCatalogPage = new NextCatalogPage();
nextCatalogPage.createControl(pageContainer);
showPage(nextCatalogPage);
} else if (fCatalogElement.getType() == ICatalogElement.TYPE_DELEGATE) {
DelegateCatalogPage delegateCatalogPage = new DelegateCatalogPage();
delegateCatalogPage.createControl(pageContainer);
showPage(delegateCatalogPage);
} else if (fCatalogElement.getType() == ICatalogElement.TYPE_SUFFIX) {
SuffixEntryPage suffixEntryPage = new SuffixEntryPage();
suffixEntryPage.createControl(pageContainer);
showPage(suffixEntryPage);
} else if (fCatalogElement.getType() == ICatalogElement.TYPE_REWRITE) {
RewriteEntryPage rewriteEntryPage = new RewriteEntryPage();
rewriteEntryPage.createControl(pageContainer);
showPage(rewriteEntryPage);
}
return composite1;
}
return createMainComponentWithToolbar(composite);
}
use of org.eclipse.ui.part.PageBook in project mdw-designer by CenturyLinkCloud.
the class AutomatedTestView method createSashForm.
private SashForm createSashForm(Composite parent) {
sashForm = new SashForm(parent, SWT.HORIZONTAL);
ViewForm results = new ViewForm(sashForm, SWT.NONE);
PageBook viewerBook = new PageBook(results, SWT.BORDER);
treeViewer = new TreeViewer(viewerBook, SWT.V_SCROLL | SWT.SINGLE);
treeViewer.setUseHashlookup(true);
treeViewer.setContentProvider(contentProvider);
treeViewer.setLabelProvider(new AutomatedTestLabelProvider());
treeViewer.addOpenListener(new IOpenListener() {
public void open(OpenEvent event) {
actionGroup.getActionHandler().open(selectedItem);
}
});
treeViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
handleSelectionChanged((IStructuredSelection) event.getSelection());
}
});
viewerBook.showPage(treeViewer.getTree());
results.setContent(viewerBook);
ViewForm output = new ViewForm(sashForm, SWT.NONE);
outputText = new Text(output, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);
outputText.setFont(JFaceResources.getTextFont());
output.setContent(outputText);
sashForm.setWeights(new int[] { 33, 67 });
return sashForm;
}
use of org.eclipse.ui.part.PageBook in project jbosstools-hibernate by jbosstools.
the class GenericGeneratorsComposite method initializeLayout.
@Override
protected void initializeLayout(Composite container) {
// List pane
this.listPane = this.addListPane(container);
// Property pane
PageBook pageBook = new PageBook(container, SWT.NULL);
pageBook.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// Named GenericGenerator property pane
this.genericGeneratorPane = this.buildGenericGeneratorComposite(pageBook);
installPaneSwitcher(pageBook);
}
use of org.eclipse.ui.part.PageBook in project jbosstools-hibernate by jbosstools.
the class HibernateQueriesComposite method initializeLayout.
@Override
protected void initializeLayout(Composite container) {
// List pane
addListPane(container);
// this.listPane = addListPane(container);
// Property pane
PageBook pageBook = new PageBook(container, SWT.NULL);
pageBook.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// Hibernate Named Query property pane
this.hibernateNamedQueryPane = new HibernateNamedQueryPropertyComposite(this, buildHibernateNamedQueryHolder(), pageBook);
// Hibernate Named Native Query property pane
this.hibernateNamedNativeQueryPane = new HibernateNamedNativeQueryPropertyComposite(this, buildHibernateNamedNativeQueryHolder(), pageBook);
// Named Query property pane
this.namedQueryPane = this.buildNamedQueryPropertyComposite(pageBook);
// Named Native Query property pane
this.namedNativeQueryPane = new NamedNativeQueryPropertyComposite(this, buildNamedNativeQueryHolder(), pageBook);
installPaneSwitcher(pageBook);
}
use of org.eclipse.ui.part.PageBook in project jbosstools-hibernate by jbosstools.
the class TypeDefsComposite method initializeLayout.
@Override
protected void initializeLayout(Composite container) {
// List pane
// this.listPane = this.addListPane(container);
addListPane(container);
// Property pane
PageBook pageBook = new PageBook(container, SWT.NULL);
pageBook.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// Named JavaTypeDef property pane
this.typeDefPane = this.buildTypeDefPropertyComposite(pageBook);
installPaneSwitcher(pageBook);
}
Aggregations