pageBook.setLayoutData(new GridData(GridData.FILL_BOTH));
pageBook.setLayoutData(new GridData(GridData.FILL_BOTH));
protected Composite createMainComponent(Composite composite) { if (fCatalogElement != null) // "edit" action { 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); } return composite1; } return createMainComponentWithToolbar(composite); }
data.horizontalAlignment = SWT.FILL; data.verticalAlignment = SWT.FILL; fPreviewPageBook.setLayoutData(data);
pageBook.setLayoutData(new GridData(GridData.FILL_BOTH)); xsdOptionsPanel = new XSDOptionsPanel(this, pageBook); dtdOptionsPanel = new DTDOptionsPanel(this, pageBook);
book.setLayoutData(new GridData(GridData.FILL_BOTH)); PropertySheetPage page = new PropertySheetPage(); page.createControl(book);
@Override public void createPartControl(Composite parent) { createActions(); fPageContent= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.horizontalSpacing= 0; layout.verticalSpacing= 0; fPageContent.setLayout(layout); fDescriptionComposite= null; super.createPartControl(fPageContent); getPageBook().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); fDefaultPartName= getPartName(); initializeToolBar(); InternalSearchUI.getInstance().getSearchManager().addQueryListener(this); initializePageSwitcher(); PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, ISearchHelpContextIds.New_SEARCH_VIEW); restorePageFromMemento(); showLatestSearch(); }
@Override public void createControl(Composite parent) { Composite c = SWTUtils.createHVFillComposite(parent, 0); //Add the export working set section exportWorkingSets(c); book = new PageBook(c, SWT.NONE); book.setLayoutData(SWTUtils.createHVFillGridData()); // set F1 help PlatformUI.getWorkbench().getHelpSystem().setHelp(book, IHelpContextIds.EXPORT_PROJECT_SET_PAGE); workingSetPage = new WorkingSetPage(); workingSetPage.createControl(book); projectPage = new ProjectPage(); // filter out unexportable projects List passedInExportableProjects = new ArrayList(); for (Iterator iterator = passedInSelectedProjects.iterator(); iterator.hasNext();) { IProject project = (IProject) iterator.next(); if (isProjectExportable(project)) passedInExportableProjects.add(project); } // pass in selected, exportable projects projectPage.getSelectedProjects().addAll(passedInExportableProjects); projectPage.getReferenceCountProjects().addAll(passedInExportableProjects); projectPage.createControl(book); setControl(c); book.showPage(projectPage.getControl()); selectedPage = projectPage; Dialog.applyDialogFont(parent); }
/** * Create a changes section on the following page. * * @param parent the parent control * @param page the page showing this section * @param configuration the configuration for the synchronize page */ public ChangesSection(Composite parent, AbstractSynchronizePage page, ISynchronizePageConfiguration configuration) { super(parent, SWT.NONE); this.page = page; this.configuration = configuration; GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessVerticalSpace = true; setLayoutData(data); forms = new FormToolkit(parent.getDisplay()); forms.setBackground(getListBackgroundColor()); HyperlinkGroup group = forms.getHyperlinkGroup(); group.setBackground(getListBackgroundColor()); changesSectionContainer = new PageBook(this, SWT.NONE); data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; changesSectionContainer.setLayoutData(data); }
data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; changesSectionContainer.setLayoutData(data);
toolkit.adapt(explorerPanel); explorerContainer = new PageBook(explorerPanel, SWT.NULL); explorerContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); Composite editorPanel = new Composite(sash, SWT.NULL); playout = new GridLayout(); taskEditorContainer = new PageBook(editorPanel, SWT.NULL); toolkit.adapt(taskEditorContainer); taskEditorContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
public void createContents(int numColumns, Composite parent) { fPageBook= new PageBook(parent, SWT.NONE); fPageBook.setLayoutData(createGridData(numColumns, GridData.FILL_BOTH, SWT.DEFAULT)); fJavaElementComponent.createContents(numColumns, fPageBook); fSyntaxComponent.createContents(numColumns, fPageBook); fSwitchCombo= new Combo(parent, SWT.READ_ONLY); final GridData gd= createGridData(numColumns, GridData.HORIZONTAL_ALIGN_END, SWT.DEFAULT); fSwitchCombo.setLayoutData(gd); fSwitchCombo.setItems(fItems); }
@Override public void createControl(Composite parent) { pagebook = new PageBook(parent, SWT.NULL); pagebook.setLayoutData(new GridData(GridData.FILL_BOTH)); busyLabel = new Table(pagebook, SWT.NONE); TableItem item = new TableItem(busyLabel, SWT.NONE); item.setText(Messages.ReferenceSearchViewPage_busyLabel); busyLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); control = new Composite(pagebook, SWT.NULL); control.setLayoutData(new GridData(GridData.FILL_BOTH)); control.setSize(100, 100); control.setLayout(new FillLayout()); viewer = new TreeViewer(control, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(contentProvider); viewer.setLabelProvider(labelProvider); viewer.setSorter(sorter); createOpenAndLinkWithEditorHandler(); IToolBarManager tbm = getSite().getActionBars().getToolBarManager(); fillToolbar(tbm); tbm.update(true); pagebook.showPage(control); isBusyShowing = false; queryListener = createQueryListener(); NewSearchUI.addQueryListener(queryListener); }
public void createContents(int numColumns, Composite parent) { fPageBook= new PageBook(parent, SWT.NONE); fPageBook.setLayoutData(createGridData(numColumns, GridData.FILL_BOTH, SWT.DEFAULT)); fJavaElementComponent.createContents(numColumns, fPageBook); fSyntaxComponent.createContents(numColumns, fPageBook); fSwitchCombo= new Combo(parent, SWT.READ_ONLY); SWTUtil.setDefaultVisibleItemCount(fSwitchCombo); final GridData gd= createGridData(numColumns, GridData.HORIZONTAL_ALIGN_END, SWT.DEFAULT); fSwitchCombo.setLayoutData(gd); fSwitchCombo.setItems(fItems); }
pageContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
@Override public void createControl(Composite parent) { fQueryListener = createQueryListener(); fMenu = new MenuManager("#PopUp"); //$NON-NLS-1$ fMenu.setRemoveAllWhenShown(true); fMenu.setParent(getSite().getActionBars().getMenuManager()); fMenu.addMenuListener(mgr -> { SearchView.createContextMenuGroups(mgr); fillContextMenu(mgr); fViewPart.fillContextMenu(mgr); }); fPagebook = new PageBook(parent, SWT.NULL); fPagebook.setLayoutData(new GridData(GridData.FILL_BOTH)); fBusyLabel = createBusyControl(); fViewerContainer = new Composite(fPagebook, SWT.NULL); fViewerContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); fViewerContainer.setSize(100, 100); fViewerContainer.setLayout(new FillLayout()); fViewerAdapter= new SelectionProviderAdapter(); getSite().setSelectionProvider(fViewerAdapter); // Register menu getSite().registerContextMenu(fViewPart.getViewSite().getId(), fMenu, fViewerAdapter); createViewer(fViewerContainer, fCurrentLayout); showBusyLabel(fIsBusyShown); NewSearchUI.addQueryListener(fQueryListener); }
fPagebook.setLayoutData(new GridData(GridData.FILL_BOTH)); fBusyLabel = createBusyControl(); fViewerContainer = new Composite(fPagebook, SWT.NULL);
public void createControl(Composite parent) { Composite c = SWTUtils.createHVFillComposite(parent, 0); //Add the export working set section exportWorkingSets(c); book = new PageBook(c, SWT.NONE); book.setLayoutData(SWTUtils.createHVFillGridData()); // set F1 help PlatformUI.getWorkbench().getHelpSystem().setHelp(book, IHelpContextIds.EXPORT_PROJECT_SET_PAGE); workingSetPage = new WorkingSetPage(); workingSetPage.createControl(book); projectPage = new ProjectPage(); //pass in any selected projectPage.getSelectedProjects().addAll(passedInSelectedProjects); projectPage.getReferenceCountProjects().addAll(passedInSelectedProjects); projectPage.createControl(book); setControl(c); book.showPage(projectPage.getControl()); selectedPage = projectPage; Dialog.applyDialogFont(parent); }