/** * {@inheritDoc} */ @Override protected void createFormContent(IManagedForm managedForm) { ScrolledForm form = managedForm.getForm(); form.setText(TITLE); form.setImage(InspectIT.getDefault().getImage(InspectITImages.IMG_CLASS_EXCLUDE)); FormToolkit toolkit = managedForm.getToolkit(); toolkit.decorateFormHeading(form.getForm()); Composite body = form.getBody(); body.setLayout(new GridLayout(1, true)); ExcludeRulesPart excludeRulesPart = new ExcludeRulesPart(this, body, toolkit); managedForm.addPart(excludeRulesPart); }
public void run() { sashForm.setOrientation( SWT.VERTICAL ); form.reflow( true ); } };
/** * {@inheritDoc} */ @Override public void createPartControl(Composite parent, FormToolkit toolkit) { scrolledForm = toolkit.createScrolledForm(parent); scrolledForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); scrolledForm.getBody().setLayout(new GridLayout(1, true)); scrolledForm.getBody().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); this.initializeInput(scrolledForm.getBody(), toolkit); }
@Override protected void createFormContent(IManagedForm managedForm) { super.createFormContent(managedForm); ScrolledForm form = managedForm.getForm(); form.setText(PDEUIMessages.CategoryPage_header); form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_CATEGORY_OBJ)); fBlock.createContent(managedForm); fCategorySection.fireSelection(); PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.CATEGORY_EDITOR); }
/** * {@inheritDoc} */ @Override protected void createFormContent(IManagedForm managedForm) { ScrolledForm form = managedForm.getForm(); form.setText(TITLE); form.setImage(InspectIT.getDefault().getImage(InspectITImages.IMG_BEAN)); FormToolkit toolkit = managedForm.getToolkit(); toolkit.decorateFormHeading(form.getForm()); jmxMasterBlock.createContent(managedForm); }
/** * {@inheritDoc} */ @Override protected void createFormContent(IManagedForm managedForm) { ScrolledForm form = managedForm.getForm(); form.setText(TITLE); FormToolkit toolkit = managedForm.getToolkit(); toolkit.decorateFormHeading(form.getForm()); Composite body = form.getBody(); body.setLayout(new GridLayout(1, true)); AgentMappingPart agentMappingPart = new AgentMappingPart(this, body, toolkit); managedForm.addPart(agentMappingPart); } }
"Page.createInfoArea()", "Time in Page.createInfoArea() after new FormToolkit(): "); //$NON-NLS-1$ //$NON-NLS-2$ form = toolkit.createScrolledForm(parent); form.setData("novarrows", Boolean.TRUE); //$NON-NLS-1$ form.setText(ViewUtilities.escapeForLabel(getTitle())); form.setDelayedReflow(true); CheatSheetStopWatch .printLapTime( GridData gd = new GridData(GridData.FILL_BOTH); gd.widthHint = 10; form.setLayoutData(gd); CheatSheetStopWatch .printLapTime( layout.horizontalSpacing = 0; layout.verticalSpacing = 3; form.getBody().setLayout(layout);
/** * {@inheritDoc} * <p> * Manually set focus to form body, otherwise is the tool-bar in focus. */ @Override public void setFocus() { mainForm.getBody().setFocus(); }
/** * Creates a new instance of the message manager that will work with the * provided form. * * @param scrolledForm * the form to control */ public MessageManager(ScrolledForm scrolledForm) { this.form = scrolledForm.getForm(); }
toolkit.getHyperlinkGroup().setHyperlinkUnderlineMode(HyperlinkSettings.UNDERLINE_HOVER); form = toolkit.createScrolledForm(parent); form.setLayoutData(new GridData(GridData.FILL_BOTH)); FormColors colors = toolkit.getColors(); toolkit.decorateFormHeading(form.getForm()); mform = new ManagedForm(toolkit, form); GridLayout glayout = new GridLayout(); glayout.marginHeight = 0; glayout.marginWidth = 0; form.getBody().setLayout(glayout); final SashForm sash = new SashForm(form.getBody(), SWT.NULL); GridData gd = new GridData(GridData.FILL_BOTH); gd.widthHint = 10;
/** * Configures the dialog form and creates form content. Clients should * override this method. * * @param mform * the dialog form */ protected void createFormContent(IManagedForm mform) { mform.getForm().setText(Messages.FormDialog_defaultTitle); } }
@Override protected void createFormContent(IManagedForm managedForm) { ScrolledForm form = managedForm.getForm(); ISchema schema = (ISchema) ((SchemaEditor) getEditor()).getAggregateModel(); if (schema.isEditable()) { form.getToolBarManager().add(createUIControlConPreviewRefDoc()); form.getToolBarManager().update(true); } super.createFormContent(managedForm); form.getBody().setLayout(FormLayoutFactory.createFormGridLayout(false, 1)); Composite top = managedForm.getToolkit().createComposite(form.getBody()); top.setLayout(FormLayoutFactory.createFormPaneGridLayout(true, 2)); top.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); fGeneralInfoSection = new SchemaSpecSection(this, top); fInclusionSection = new SchemaIncludesSection(this, top); fDocSection = new DocSection(this, form.getBody(), fColorManager); managedForm.addPart(fGeneralInfoSection); managedForm.addPart(fInclusionSection); managedForm.addPart(fDocSection); PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.SCHEMA_EDITOR_DOC); }
separator.setLayoutData(gd); innerForm = innerToolkit.createScrolledForm(container); innerForm.setDelayedReflow(true); innerForm.setLayoutData(new GridData(GridData.FILL_BOTH)); final ScrollBar scrollBar = innerForm.getVerticalBar(); scrollBar.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { tlayout.topMargin = 0; tlayout.bottomMargin = 0; innerForm.getBody().setLayout(tlayout); results = new ArrayList(); contributeToToolBar(tbm);
workArea.addDisposeListener(e -> toolkit.dispose()); final ScrolledForm form = toolkit.createScrolledForm(workArea); form.setBackground(workArea.getBackground()); form.getBody().setLayout(new GridLayout()); form.setLayoutData(layoutData); final ExpandableComposite expandable = toolkit .createExpandableComposite(form.getBody(), ExpandableComposite.TWISTIE); expandable
@Override protected void createFormContent(IManagedForm managedForm) { super.createFormContent(managedForm); ScrolledForm form = managedForm.getForm(); form.getBody().setLayout(FormLayoutFactory.createFormGridLayout(false, 1)); // Set form header image form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_DOC_SECTION_OBJ)); infoSection = new InfoSection(this, form.getBody(), colorManager); managedForm.addPart(infoSection); PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.MANIFEST_FEATURE_INFO); initialize(); }
vaction.setImageDescriptor(PDEPluginImages.DESC_VERTICAL); vaction.setDisabledImageDescriptor(PDEPluginImages.DESC_VERTICAL_DISABLED); form.getToolBarManager().add(haction); form.getToolBarManager().add(vaction);
@Override public void setFocus () { this.form.setFocus (); }
/** * Sets layout data for the form. * * @param layoutData * LayoutData. */ public void setLayoutData(Object layoutData) { form.setLayoutData(layoutData); }