/** * @see nexcore.tool.uml.ui.core.editor.section.AbstractSection#createClient(org.eclipse.ui.forms.widgets.Section, * org.eclipse.ui.forms.widgets.FormToolkit) */ @Override protected void createClient(Section section, FormToolkit toolkit) { section.setText(UMLMessage.LABEL_DOCUMENT_INFORMATION); section.setDescription(UMLMessage.MESSAGE_DOCUMENT_OVERVIEW); TableWrapData td = new TableWrapData(TableWrapData.FILL, TableWrapData.TOP); td.grabHorizontal = true; Composite client = toolkit.createComposite(section); client.setLayout(new GridLayout(1, false)); createTextControl(toolkit, client); initializeSection(); section.setClient(client); }
/** * @see org.yakindu.sct.editor.sgen.extensions.IFeatureConfigurationSection#getSection() */ @Override public Section createSection(final FormToolkit toolkit, final Composite parent) { this.section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); this.section.setText(convertCamelCaseName(getFeatureType().getName(), !getFeatureType().isOptional())); this.section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB)); final Composite composite = toolkit.createComposite(this.section); final TableWrapLayout layout = new TableWrapLayout(); layout.numColumns = 2; composite.setLayout(layout); for (final FeatureParameter parameter : getFeatureType().getParameters()) { final Control control = createParameterControl(toolkit, composite, parameter); this.controls.put(parameter, control); } this.section.setClient(composite); return this.section; }
private void createGeneralInformationSection(Composite parent) { FormToolkit toolkit = super.getToolkit(); Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR); section.setDescription(AngularCLIMessages.AngularCLIEditor_OverviewPage_GeneralInformationSection_desc); section.setText(AngularCLIMessages.AngularCLIEditor_OverviewPage_GeneralInformationSection_title); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); Composite body = createBody(section); // Project name createText(body, AngularCLIMessages.AngularCLIEditor_OverviewPage_projectName_label, new JSONPath("project.name")); // project version createText(body, AngularCLIMessages.AngularCLIEditor_OverviewPage_projectVersion_label, new JSONPath("project.version")); }
private void createGeneralInformationSection(Composite parent) { FormToolkit toolkit = super.getToolkit(); Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR); section.setDescription(TsconfigEditorMessages.OverviewPage_GeneralInformationSection_desc); section.setText(TsconfigEditorMessages.OverviewPage_GeneralInformationSection_title); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); Composite body = createBody(section); // Target/Module createCombo(body, TsconfigEditorMessages.OverviewPage_target_label, new JSONPath("compilerOptions.target"), TsconfigJson.getAvailableTargets(), TsconfigJson.getDefaultTarget()); createCombo(body, TsconfigEditorMessages.OverviewPage_module_label, new JSONPath("compilerOptions.module"), TsconfigJson.getAvailableModules()); createCombo(body, TsconfigEditorMessages.OverviewPage_moduleResolution_label, new JSONPath("compilerOptions.moduleResolution"), TsconfigJson.getAvailableModuleResolutions(), TsconfigJson.getDefaultModuleResolution()); // Others.... createCheckbox(body, TsconfigEditorMessages.OverviewPage_experimentalDecorators_label, new JSONPath("compilerOptions.experimentalDecorators")); }
private void createDebuggingSection(Composite parent) { FormToolkit toolkit = super.getToolkit(); Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR); section.setDescription(TsconfigEditorMessages.OutputPage_DebuggingSection_desc); section.setText(TsconfigEditorMessages.OutputPage_DebuggingSection_title); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); Composite body = createBody(section); createCheckbox(body, TsconfigEditorMessages.OutputPage_sourceMap_label, new JSONPath("compilerOptions.sourceMap")); createTextAndBrowseButton(body, TsconfigEditorMessages.OutputPage_sourceRoot_label, new JSONPath("compilerOptions.sourceRoot"), false); createTextAndBrowseButton(body, TsconfigEditorMessages.OutputPage_mapRoot_label, new JSONPath("compilerOptions.mapRoot"), false); createCheckbox(body, TsconfigEditorMessages.OutputPage_inlineSourceMap_label, new JSONPath("compilerOptions.inlineSourceMap")); createCheckbox(body, TsconfigEditorMessages.OutputPage_inlineSources_label, new JSONPath("compilerOptions.inlineSources")); }
private void createReportingSection(Composite parent) { FormToolkit toolkit = super.getToolkit(); Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR); section.setDescription(TsconfigEditorMessages.OutputPage_ReportingSection_desc); section.setText(TsconfigEditorMessages.OutputPage_ReportingSection_title); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); Composite body = createBody(section); createCheckbox(body, TsconfigEditorMessages.OutputPage_diagnostics_label, new JSONPath("compilerOptions.diagnostics")); createCheckbox(body, TsconfigEditorMessages.OutputPage_pretty_label, new JSONPath("compilerOptions.pretty")); createCheckbox(body, TsconfigEditorMessages.OutputPage_traceResolution_label, new JSONPath("compilerOptions.traceResolution")); createCheckbox(body, TsconfigEditorMessages.OutputPage_listEmittedFiles_label, new JSONPath("compilerOptions.listEmittedFiles")); }
private void createScopeSection(Composite parent) { FormToolkit toolkit = super.getToolkit(); Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR); section.setDescription(TsconfigEditorMessages.FilesPage_ScopeSection_desc); section.setText(TsconfigEditorMessages.FilesPage_ScopeSection_title); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); Composite client = toolkit.createComposite(section); section.setClient(client); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginWidth = 2; layout.marginHeight = 2; client.setLayout(layout); Table table = toolkit.createTable(client, SWT.NONE); GridData gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 200; gd.widthHint = 100; table.setLayoutData(gd); }
/** * @see nexcore.tool.uml.ui.core.editor.section.AbstractSection#createClient(org.eclipse.ui.forms.widgets.Section, * org.eclipse.ui.forms.widgets.FormToolkit) */ @Override protected void createClient(Section section, FormToolkit toolkit) { section.setText(UMLMessage.LABEL_MODEL_LIBRARY); section.setDescription(UMLMessage.MESSAGE_MODEL_LIBRARY_OVERVIEW); TableWrapData td = new TableWrapData(TableWrapData.FILL, TableWrapData.TOP); td.grabHorizontal = true; Composite client = toolkit.createComposite(section); FillLayout layout = new FillLayout(SWT.VERTICAL); layout.marginWidth = toolkit.getBorderStyle() != SWT.NULL ? 0 : 2; client.setLayout(layout); Composite composite = toolkit.createComposite(client); GridLayout compositeLayout = new GridLayout(); compositeLayout.numColumns = 2; composite.setLayout(compositeLayout); initializeSection(); createLibraryControl(toolkit, composite); section.setClient(client); }
@Override public void initialize(IManagedForm mform) { super.initialize(mform); FormToolkit toolkit = mform.getToolkit(); ScrolledForm sform = mform.getForm(); titleComposite = toolkit.createComposite(sform.getBody()); titleComposite.setLayout(new GridLayout(getNumTitleComponents(), false)); titleComposite.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); populateTitleComposite(toolkit, sform, titleComposite); Composite separator = toolkit.createCompositeSeparator(sform.getBody()); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP); data.maxHeight = 2; separator.setLayoutData(data); }
protected Label createLabel(Composite parent) { Label label; String name = getName(); if (name == null) name = ""; boolean truncated = name.length() > 20; if (truncated) { name = name.substring(0,17)+"..."; } label = toolkit.createLabel(parent, name); String toolTipText = ""; if (truncated) { toolTipText = getName(); } if ((getToolTipText() != null) && (getToolTipText().trim().length() != 0)) { if (truncated) { toolTipText += " \n"; } toolTipText += getToolTipText(); } label.setToolTipText(toolTipText); label.setLayoutData(new TableWrapData(TableWrapData.LEFT, TableWrapData.MIDDLE)); return label; }
/** * Creates a form text. * * @param parent the parent to put the form text on * @param text the form text to be displayed * @return the created form text * * @see FormToolkit#createFormText(org.eclipse.swt.widgets.Composite, boolean) */ private FormText createFormText(Composite parent, String text) { FormToolkit toolkit= new FormToolkit(getShell().getDisplay()); try { FormText formText= toolkit.createFormText(parent, true); formText.setFont(parent.getFont()); try { formText.setText(text, true, false); } catch (IllegalArgumentException e) { formText.setText(e.getMessage(), false, false); JavaPlugin.log(e); } formText.marginHeight= 2; formText.marginWidth= 0; formText.setBackground(null); formText.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); return formText; } finally { toolkit.dispose(); } }
private void createPluginsSection(Composite parent) { Section sctnPlugins = createSection(parent, "Plug-ins"); sctnPlugins.setLayout(FormUtils.createClearTableWrapLayout(false, 1)); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); sctnPlugins.setLayoutData(data); FormText text = formToolkit.createFormText(sctnPlugins, true); ImageDescriptor idesc = HybridUI.getImageDescriptor(HybridUI.PLUGIN_ID, "/icons/etool16/cordovaplug_wiz.png"); text.setImage("plugin", idesc.createImage()); text.setText(PLUGINS_SECTION_CONTENT, true, false); sctnPlugins.setClient(text); text.addHyperlinkListener(this); }
private void createAuthorSection(Composite parent) { Section sctnAuthor = createSection(parent, "Author"); sctnAuthor.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); Composite composite = formToolkit.createComposite(sctnAuthor, SWT.WRAP); formToolkit.paintBordersFor(composite); sctnAuthor.setClient(composite); composite.setLayout(FormUtils.createSectionClientGridLayout(false, 2)); createFormFieldLabel(composite, "Name:"); txtAuthorname = formToolkit.createText(composite, "", SWT.WRAP); txtAuthorname.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); createFormFieldLabel(composite, "Email:"); txtEmail = formToolkit.createText(composite, "", SWT.NONE); txtEmail.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); createFormFieldLabel(composite, "URL:"); txtUrl = formToolkit.createText(composite, "", SWT.NONE); txtUrl.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); }
protected void createClient(Section section, FormToolkit toolkit) { section.setText("Configurations"); //$NON-NLS-1$ String desc = "This section describe the configurations defined in your project"; section.setDescription(desc); Composite client = toolkit.createComposite(section); TableWrapLayout layout = new TableWrapLayout(); layout.rightMargin = toolkit.getBorderStyle() != SWT.NULL ? 0 : 2; layout.leftMargin = layout.rightMargin; layout.numColumns = NUM_COLUMNS; client.setLayout(layout); toolkit.paintBordersFor(client); section.setClient(client); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.colspan = 2; section.setLayoutData(td); }
private void createSecondSection( ScrolledForm form, FormToolkit toolkit) { ExpandableComposite ec = toolkit.createExpandableComposite(form.getBody(), ExpandableComposite.TREE_NODE| ExpandableComposite.CLIENT_INDENT); ec.setText("Expandable Composite title"); String ctext = "We will now create a somewhat long text so that "+ "we can use it as content for the expandable composite. "+ "Expandable composite is used to hide or show the text using the " + "toggle control"; Label client = toolkit.createLabel(ec, ctext, SWT.WRAP); ec.setClient(client); TableWrapData td = new TableWrapData(); td.colspan = 2; ec.setLayoutData(td); ec.addExpansionListener(new ExpansionAdapter() { @Override public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); }
public static Composite createStaticSection( final FormToolkit toolkit, final Composite parent, final String sectionTitle, final String sectionDescription, final int numOfColumns ) { Section section; section = toolkit.createSection( parent, ExpandableComposite.TITLE_BAR | Section.DESCRIPTION | SWT.WRAP ); section.setText( sectionTitle ); section.setDescription( sectionDescription ); toolkit.createCompositeSeparator( section ); section.setLayout( AlignFormLayoutFactory.createClearTableWrapLayout( false, 1 ) ); TableWrapData data = new TableWrapData( TableWrapData.FILL_GRAB ); section.setLayoutData( data ); Composite client = toolkit.createComposite( section ); client.setLayout( AlignFormLayoutFactory.createSectionClientTableWrapLayout( false, numOfColumns ) ); section.setClient( client ); return client; }
public static Composite createHtmlSection( final FormToolkit toolkit, final Composite parent, final String sectionTitle) { Section section = toolkit.createSection( parent, ExpandableComposite.TITLE_BAR | Section.DESCRIPTION | ExpandableComposite.TWISTIE | SWT.WRAP ); section.setText(sectionTitle); TableWrapData td = new TableWrapData(); td.grabHorizontal = true; td.heightHint = 400; //added section.setLayoutData(td); section.setExpanded( false ); Composite client = toolkit.createComposite( section ); section.setClient( client ); return client; }
@Override public void createPartControl(Composite parent){ parent.setLayout(new FillLayout()); form = tk.createScrolledForm(parent); TableWrapLayout twl = new TableWrapLayout(); form.getBody().setLayout(twl); tblArtikel = new LabeledInputField.AutoForm(form.getBody(), getFieldDefs(parent.getShell())); TableWrapData twd = new TableWrapData(TableWrapData.FILL_GRAB); twd.grabHorizontal = true; tblArtikel.setLayoutData(twd); GlobalEventDispatcher.addActivationListener(this, this); }
/** * Ein TableWrapDAta-Objekt erzeugen, das den horizontalen und/oder vertikalen Freiraum * ausfüllt. * * @param horizontal * true, wenn horizontal gefüllt werden soll * @param vertical * true, wenn vertikal gefüllt werden soll. * @return ein neu erzeugtes, direkt verwendbares GridData-Objekt */ public static TableWrapData getFillTableWrapData(final int hSpan, final boolean hFill, final int vSpan, final boolean vFill){ TableWrapData layoutData = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); if (hFill) { layoutData.grabHorizontal = true; layoutData.align = TableWrapData.FILL; } if (vFill) { layoutData.grabVertical = true; layoutData.valign = TableWrapData.FILL; } layoutData.colspan = (hSpan < 1 ? 1 : hSpan); layoutData.rowspan = (vSpan < 1 ? 1 : vSpan); return layoutData; }
private void createRemoveButton() { removeButton = toolkit.createButton(this, "", SWT.PUSH); removeButton.setLayoutData(new TableWrapData()); removeButton.setImage(Icon.DELETE.get()); removeButton .setToolTipText(M.RemoveObject); if (content == null) removeButton.setEnabled(false); removeButton.addMouseListener(new MouseAdapter() { @Override public void mouseDown(final MouseEvent e) { setContent(null); for (ISingleModelDrop handler : handlers) { handler.handle(null); } } }); }
protected void createClient(Section section, FormToolkit toolkit) { section.setText(getText()); section.setDescription(getDescription()); section.setExpanded(isSectionExpanded()); text = toolkit.createFormText(section, false); text.setColor(getRedKey(),toolkit.getColors().getColor(getRedKey())); try { text.setText(getTextContent(), true, false); } catch (SWTException e) { text.setText("", false, false); } //$NON-NLS-1$ // text.setImage("page", image); section.setClient(text); section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); text.addHyperlinkListener(this); text.setColor(getRedKey(),toolkit.getColors().getColor(getRedKey())); text.setColor(getBlueKey(),toolkit.getColors().getColor(getBlueKey())); text.setColor(getGreenKey(),toolkit.getColors().getColor(getGreenKey())); text.setColor(getYellowKey(),toolkit.getColors().getColor(getYellowKey())); }
private Control createParameterControl(final FormToolkit toolkit, final Composite composite, final FeatureParameter parameter) { final StringBuilder builder = new StringBuilder(); builder.append(convertCamelCaseName(parameter.getName(), !parameter.isOptional())); builder.append(':'); final Label label = toolkit.createLabel(composite, builder.toString()); label.setLayoutData(new TableWrapData(TableWrapData.FILL, TableWrapData.FILL)); Control control; switch (parameter.getParameterType()) { case BOOLEAN: final Button button = toolkit.createButton(composite, "", SWT.CHECK); //$NON-NLS-1$ button.addSelectionListener(this); control = button; break; case INTEGER: case FLOAT: case STRING: default: final Text text = toolkit.createText(composite, "", SWT.SINGLE | SWT.BORDER); //$NON-NLS-1$ text.addFocusListener(this); control = text; break; } control.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL)); control.setData(parameter); return control; }
/** * @see org.yakindu.sct.editor.sgen.extensions.IFeatureConfigurationSection#createSection(org.eclipse.ui.forms.widgets.FormToolkit, * org.eclipse.swt.widgets.Composite) */ @Override public Section createSection(final FormToolkit toolkit, final Composite parent) { this.section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); this.section.setText(convertCamelCaseName(getFeatureType().getName(), !getFeatureType().isOptional())); this.section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB)); final Composite composite = toolkit.createComposite(this.section); final TableWrapLayout layout = new TableWrapLayout(); layout.numColumns = 2; composite.setLayout(layout); final FeatureParameter parameter = SGenModelUtil.getFeatureParameter(getFeatureType(), "licenseText"); //$NON-NLS-1$ final Label label = toolkit.createLabel(composite, convertCamelCaseName(parameter.getName(), !parameter.isOptional()) + ':'); label.setLayoutData(new TableWrapData(TableWrapData.FILL, TableWrapData.FILL)); this.licenseText = toolkit.createText(composite, "", SWT.SINGLE | SWT.MULTI | SWT.WRAP | SWT.BORDER); //$NON-NLS-1$ final TableWrapData layoutData = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL); layoutData.heightHint = 5 * this.licenseText.getLineHeight(); this.licenseText.setLayoutData(layoutData); this.licenseText.addFocusListener(this); this.licenseText.setData(parameter); this.section.setClient(composite); return this.section; }
private void createLeftContent(Composite parent) { FormToolkit toolkit = super.getToolkit(); Composite left = toolkit.createComposite(parent); left.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1)); left.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); // General Information createGeneralInformationSection(left); }
/** * Constructs a section and returns a section client composite * * the section layout is TableWrapLayout * * * @param parent parent container for the section * @param title title of the section * @param description description of the section * @param toolkit toolkit to create the composite * @param sectionFlags parameters of the section * @param expansionListener * @return a section client (the content container of the section) */ public static Section createSectionComposite(Composite parent, String title, String description, FormToolkit toolkit, int sectionFlags, IExpansionListener expansionListener) { Section section = toolkit.createSection(parent, sectionFlags); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; section.setLayoutData(td); section.setText(title); section.setDescription(description); if (expansionListener != null) { section.addExpansionListener(expansionListener); } // create section client Composite sectionClient = toolkit.createComposite(section); TableWrapLayout layout = new TableWrapLayout(); layout.numColumns = 1; sectionClient.setLayout(layout); section.setClient(sectionClient); // draw flat borders toolkit.paintBordersFor(sectionClient); return section; }
private void createLeftContent(Composite parent) { FormToolkit toolkit = super.getToolkit(); Composite left = toolkit.createComposite(parent); left.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1)); left.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); // General Information createGeneralInformationSection(left); // Compiler section createCompilerSection(left); }
private void createRightContent(Composite parent) { FormToolkit toolkit = super.getToolkit(); Composite right = toolkit.createComposite(parent); right.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1)); right.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); createValidatingSection(right); }
private void createLeftContent(Composite parent) { FormToolkit toolkit = super.getToolkit(); Composite left = toolkit.createComposite(parent); left.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1)); left.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); createOutputSection(left); }
private void createRightContent(Composite parent) { FormToolkit toolkit = super.getToolkit(); Composite right = toolkit.createComposite(parent); right.setLayout(FormLayoutFactory.createFormPaneTableWrapLayout(false, 1)); right.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); createDebuggingSection(right); createReportingSection(right); createJSXSection(right); }
private void createOutputSection(Composite parent) { FormToolkit toolkit = super.getToolkit(); Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR); section.setDescription(TsconfigEditorMessages.OutputPage_OutputSection_desc); section.setText(TsconfigEditorMessages.OutputPage_OutputSection_title); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); Composite body = createBody(section); createTextAndBrowseButton(body, TsconfigEditorMessages.OutputPage_rootDir_label, new JSONPath("compilerOptions.rootDir"), false); createTextAndBrowseButton(body, TsconfigEditorMessages.OutputPage_outFile_label, new JSONPath("compilerOptions.outFile"), true); createTextAndBrowseButton(body, TsconfigEditorMessages.OutputPage_outDir_label, new JSONPath("compilerOptions.outDir"), false); createCheckbox(body, TsconfigEditorMessages.OutputPage_noEmit_label, new JSONPath("compilerOptions.noEmit")); createCheckbox(body, TsconfigEditorMessages.OutputPage_noEmitHelpers_label, new JSONPath("compilerOptions.noEmitHelpers")); createCheckbox(body, TsconfigEditorMessages.OutputPage_noEmitOnError_label, new JSONPath("compilerOptions.noEmitOnError")); createCheckbox(body, TsconfigEditorMessages.OutputPage_emitDecoratorMetadata_label, new JSONPath("compilerOptions.emitDecoratorMetadata")); createCheckbox(body, TsconfigEditorMessages.OutputPage_declaration_label, new JSONPath("compilerOptions.declaration")); createTextAndBrowseButton(body, TsconfigEditorMessages.OutputPage_declarationDir_label, new JSONPath("compilerOptions.declarationDir"), false); createCheckbox(body, TsconfigEditorMessages.OutputPage_emitBOM_label, new JSONPath("compilerOptions.emitBOM")); createCheckbox(body, TsconfigEditorMessages.OutputPage_preserveConstEnums_label, new JSONPath("compilerOptions.preserveConstEnums")); createCheckbox(body, TsconfigEditorMessages.OutputPage_removeComments_label, new JSONPath("compilerOptions.removeComments")); createCheckbox(body, TsconfigEditorMessages.OutputPage_isolatedModules_label, new JSONPath("compilerOptions.isolatedModules")); createCheckbox(body, TsconfigEditorMessages.OutputPage_stripInternal_label, new JSONPath("compilerOptions.stripInternal")); }
private void createJSXSection(Composite parent) { FormToolkit toolkit = super.getToolkit(); Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR); section.setDescription(TsconfigEditorMessages.OutputPage_JSXSection_desc); section.setText(TsconfigEditorMessages.OutputPage_JSXSection_title); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); Composite body = createBody(section); CCombo jsxCombo = createCombo(body, TsconfigEditorMessages.OutputPage_jsx_label, new JSONPath("compilerOptions.jsx"), new String[] { "", "preserve", "react" }); Text reactNamespaceText = createText(body, TsconfigEditorMessages.OutputPage_reactNamespace_label, new JSONPath("compilerOptions.reactNamespace"), null, "jsxFactory"); }
/** * @see nexcore.tool.uml.ui.core.editor.section.AbstractSection#createClient(org.eclipse.ui.forms.widgets.Section, * org.eclipse.ui.forms.widgets.FormToolkit) */ @Override protected void createClient(Section section, FormToolkit toolkit) { section.setText(UMLMessage.LABEL_GENERAL_INFORMATION); section.setDescription(UMLMessage.MESSAGE_OVERVIEW); TableWrapData td = new TableWrapData(TableWrapData.FILL, TableWrapData.TOP); td.grabHorizontal = true; Composite client = toolkit.createComposite(section); FillLayout layout = new FillLayout(SWT.VERTICAL); layout.marginWidth = toolkit.getBorderStyle() != SWT.NULL ? 0 : 2; client.setLayout(layout); Composite composite = toolkit.createComposite(client); GridLayout compositeLayout = new GridLayout(); compositeLayout.numColumns = 3; composite.setLayout(compositeLayout); createModelNameControl(toolkit, composite); createModelLocationControl(toolkit, composite); createModelSizeControl(toolkit, composite); createModelLastModifiedDateControl(toolkit, composite); initializeSection(); section.setClient(client); }
/** * 개요 - 일반 정보 섹션 생성 * * @param parent * void */ private void createOverviewGeneralSection(Composite parent) { generalSection = new OverviewGeneralSection(this, parent); managedForm.addPart(generalSection); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.grabVertical = true; td.maxWidth = 50; generalSection.getSection().setLayoutData(td); }
/** * 개요 - 모델 상세 정보 섹션 생성 * * @param parent * void */ @SuppressWarnings("unused") private void createOverviewModelDetailSection(Composite parent) { modelDetailSection = new OverviewModelDetailSection(this, parent); managedForm.addPart(modelDetailSection); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.grabVertical = true; td.maxWidth = 50; modelDetailSection.getSection().setLayoutData(td); }
/** * 개요 - 프로젝트 정보 섹션 생성 * * @param parent * void */ @SuppressWarnings("unused") private void createProjectInformationSection(Composite parent) { projectInformation = new OverviewProjectInformationSection(this, parent); managedForm.addPart(projectInformation); TableWrapData tableWrapData = new TableWrapData(TableWrapData.FILL_GRAB); tableWrapData.grabHorizontal = true; tableWrapData.grabVertical = true; tableWrapData.maxWidth = 50; projectInformation.getSection().setLayoutData(tableWrapData); }
/** * 개요 - 문서 섹션 생성 * * @param parent * void */ private void createOverviewDocumentSection(Composite parent) { documentSection = new OverviewDocumentSection(this, parent); managedForm.addPart(documentSection); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.grabVertical = true; td.maxWidth = 50; documentSection.getSection().setLayoutData(td); }
/** * 상세 - 프로파일 정보 섹션 생성 * * @param managedForm2 * @param parent * void */ private void createDetailsProfileSection(Composite parent) { profileSection = new DetailsProfileSection(this, parent); managedForm.addPart(profileSection); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.grabVertical = true; td.maxWidth = 50; profileSection.getSection().setLayoutData(td); }
/** * 상세 - 모델 라이브러리 섹션 생성 * * @param parent * void */ private void createDetailsModelLibrarySection(Composite parent) { librarySection = new DetailsModelLibrarySection(this, parent); managedForm.addPart(librarySection); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.grabVertical = true; td.maxWidth = 50; librarySection.getSection().setLayoutData(td); }
/** * * * @param body void */ private void createFragmentSection(Composite parent) { fragmentSection = new FragmentSection(this, parent); managedForm.addPart(fragmentSection); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.grabVertical = true; td.maxWidth = 50; fragmentSection.getSection().setLayoutData(td); }