当前位置: 首页>>代码示例>>Java>>正文


Java TableWrapData.FILL_GRAB属性代码示例

本文整理汇总了Java中org.eclipse.ui.forms.widgets.TableWrapData.FILL_GRAB属性的典型用法代码示例。如果您正苦于以下问题:Java TableWrapData.FILL_GRAB属性的具体用法?Java TableWrapData.FILL_GRAB怎么用?Java TableWrapData.FILL_GRAB使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.ui.forms.widgets.TableWrapData的用法示例。


在下文中一共展示了TableWrapData.FILL_GRAB属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createGeneralInformationSection

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"));

}
 
开发者ID:angelozerr,项目名称:angular-eclipse,代码行数:16,代码来源:OverviewPage.java

示例2: createGeneralInformationSection

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"));

}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:23,代码来源:OverviewPage.java

示例3: createDebuggingSection

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"));
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:20,代码来源:OutputPage.java

示例4: createReportingSection

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"));
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:18,代码来源:OutputPage.java

示例5: createScopeSection

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);
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:22,代码来源:FilesPage.java

示例6: initialize

@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);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:18,代码来源:TitleFormPart.java

示例7: createPluginsSection

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);

}
 
开发者ID:eclipse,项目名称:thym,代码行数:16,代码来源:EssentialsPage.java

示例8: createClient

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);
}
 
开发者ID:apache,项目名称:ant-ivyde,代码行数:18,代码来源:IvyConfSection.java

示例9: createStaticSection

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;
}
 
开发者ID:dozed,项目名称:align-api-project,代码行数:22,代码来源:AlignFormSectionFactory.java

示例10: createPartControl

@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);
	
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:16,代码来源:Artikeldetail.java

示例11: createSection

/**
 * @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;
}
 
开发者ID:wendehals,项目名称:arduino_sct_tools,代码行数:32,代码来源:LicenseHeaderFeatureConfigurationSection.java

示例12: createSectionComposite

/**
 * 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;
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:41,代码来源:FormHelper.java

示例13: createOutputSection

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"));
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:38,代码来源:OutputPage.java

示例14: createJSXSection

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");
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:15,代码来源:OutputPage.java

示例15: createOverviewGeneralSection

/**
 * 개요 - 일반 정보 섹션 생성
 * 
 * @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);
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:15,代码来源:OverviewPage.java


注:本文中的org.eclipse.ui.forms.widgets.TableWrapData.FILL_GRAB属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。