Java Code Examples for org.eclipse.swt.widgets.Group

The following are top voted examples for showing how to use org.eclipse.swt.widgets.Group. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: n4js   File: InstallNpmDependencyDialog.java   Source Code and License 6 votes vote down vote up
private void createVersionArea(final Group parent, String versionLabel, Consumer<String> textHandler,
		Consumer<Boolean> flagHandler) {
	final Composite area = createVersionArea(parent, versionLabel);
	final Composite textArea = createVersionInputArea(area);

	final Text txtUpperVersion = getSimpleTextArea(textArea);
	txtUpperVersion.addModifyListener(new ModifyListener() {

		@Override
		public void modifyText(ModifyEvent e) {
			Text textWidget = (Text) e.getSource();
			textHandler.accept(textWidget.getText());
		}
	});

	createVersionInclsivnessArea(area, flagHandler);
}
 
Example 2
Project: n4js   File: InstallNpmDependencyDialog.java   Source Code and License 6 votes vote down vote up
private void createNameArea(Composite parent, String areaName, Consumer<String> textHandler) {
	final Group area = new Group(parent, SHADOW_ETCHED_IN);
	area.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create());
	area.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
	area.setText(areaName);

	final Text txtPackageName = getSimpleTextArea(area);
	txtPackageName.addModifyListener(new ModifyListener() {

		@Override
		public void modifyText(ModifyEvent e) {
			Text textWidget = (Text) e.getSource();
			textHandler.accept(textWidget.getText());
		}
	});
}
 
Example 3
Project: n4js   File: N4MFWizardNewProjectCreationPage.java   Source Code and License 6 votes vote down vote up
private Composite initTestProjectUI(DataBindingContext dbc, Composite parent) {
	// Additional test project options
	final Group testProjectOptionsGroup = new Group(parent, NONE);
	testProjectOptionsGroup.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create());

	final Button createTestGreeterFileButton = new Button(testProjectOptionsGroup, CHECK);
	createTestGreeterFileButton.setText("Create a test project greeter file");

	final Button addNormalSourceFolderButton = new Button(testProjectOptionsGroup, CHECK);
	addNormalSourceFolderButton.setText("Also create a non-test source folder");

	Label nextPageHint = new Label(testProjectOptionsGroup, NONE);
	nextPageHint.setText("The projects which should be tested can be selected on the next page");
	nextPageHint.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_FOREGROUND));

	initTestProjectBinding(dbc, addNormalSourceFolderButton, createTestGreeterFileButton);

	return testProjectOptionsGroup;
}
 
Example 4
Project: gemoc-studio-modeldebugging   File: LaunchConfigurationMainTab.java   Source Code and License 6 votes vote down vote up
@Override
public void createControl(Composite parent) {
	_parent = parent;
	Composite area = new Composite(parent, SWT.NULL);
	GridLayout gl = new GridLayout(1, false);
	gl.marginHeight = 0;
	area.setLayout(gl);
	area.layout();
	setControl(area);

	Group modelArea = createGroup(area, "Model:");
	createModelLayout(modelArea, null);

	Group languageArea = createGroup(area, "Language:");
	createLanguageLayout(languageArea, null);

	Group debugArea = createGroup(area, "Animation:");
	createAnimationLayout(debugArea, null);

	_k3Area = createGroup(area, "Sequential DSA execution:");
	createK3Layout(_k3Area, null);

}
 
Example 5
Project: pmTrans   File: FindReplaceDialog.java   Source Code and License 6 votes vote down vote up
private void renderTransparency(final Shell shell) {
	Group group = new Group(shell, SWT.NONE);
	group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 6, 1));
	group.setLayout(new GridLayout(1, false));
	group.setText("Transparency");
	final Scale transparencySlider = new Scale(group, SWT.HORIZONTAL);
	transparencySlider.setMinimum(20);
	transparencySlider.setMaximum(100);
	transparencySlider.setPageIncrement(90);
	transparencySlider.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
	transparencySlider.setSelection(100);
	transparencySlider.addListener(SWT.Selection, new Listener() {

		@Override
		public void handleEvent(Event event) {
			shell.setAlpha(255 * transparencySlider.getSelection() / 100);
		}
	});
}
 
Example 6
Project: convertigo-eclipse   File: JavelinAttributeEditorComposite.java   Source Code and License 6 votes vote down vote up
/**
 * This method initializes groupDecoration	
 *
 */
private void createGroupDecoration() {
	GridData gridData1 = new org.eclipse.swt.layout.GridData();
	gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData1.horizontalSpan = 2;
	gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	groupDecoration = new Group(this, SWT.NONE);
	groupDecoration.setText("Decoration");
	createCompositeIntense();
	groupDecoration.setLayoutData(gridData1);
	createCompositeReverse();
	createCompositeUnderline();
	createCompositeBlink();
	
	
}
 
Example 7
Project: convertigo-eclipse   File: VisibilityEditorComposite.java   Source Code and License 6 votes vote down vote up
private void createGroupVisibility() {
	GridData gridData = new org.eclipse.swt.layout.GridData();
	gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	groupVisibility = new Group(this, SWT.NONE);
	groupVisibility.setText("Mask value in");
	groupVisibility.setLayoutData(gridData);
	
	checkboxLog = new Button(groupVisibility, SWT.CHECK);
	checkboxLog.setBounds(new org.eclipse.swt.graphics.Rectangle(12,42,200,18));
	checkboxLog.setText("log files");
	
	checkboxStudio = new Button(groupVisibility, SWT.CHECK);
	checkboxStudio.setBounds(new org.eclipse.swt.graphics.Rectangle(12,72,200,16));
	checkboxStudio.setText("studio user interface");
	
	checkboxPlatform = new Button(groupVisibility, SWT.CHECK);
	checkboxPlatform.setBounds(new org.eclipse.swt.graphics.Rectangle(12,102,200,16));
	checkboxPlatform.setText("platform user interface");
	
	checkboxXml = new Button(groupVisibility, SWT.CHECK);
	checkboxXml.setBounds(new org.eclipse.swt.graphics.Rectangle(12,132,200,16));
	checkboxXml.setText("project's XML files");
}
 
Example 8
Project: convertigo-eclipse   File: IncludedTagAttributesEditorComposite.java   Source Code and License 6 votes vote down vote up
/**
 * This method initializes groupDefinition	
 *
 */
private void createGroupDefinition() {
	groupDefinition = new Group(this, SWT.NONE);
	groupDefinition.setText("Definition");
	checkBoxName = new Button(groupDefinition, SWT.CHECK);
	checkBoxName.setBounds(new org.eclipse.swt.graphics.Rectangle(8,18,50,16));
	checkBoxName.setText("name");
	checkBoxType = new Button(groupDefinition, SWT.CHECK);
	checkBoxType.setBounds(new org.eclipse.swt.graphics.Rectangle(8,41,51,16));
	checkBoxType.setText("type");
	checkBoxType
			.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
				public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
					if (!checkBoxType.getSelection()) {
						//com.twinsoft.convertigo.studio.Studio.theApp.warning(java.util.ResourceBundle.getBundle("com/twinsoft/convertigo/studio/res/editors/IncludedTagAttributesEditorPanel").getString("type_warning"));
					}
				}
			});
}
 
Example 9
Project: convertigo-eclipse   File: LearnScreenClassWizardComposite2.java   Source Code and License 6 votes vote down vote up
/**
 * This method initializes group	
 *
 */
private void createGroup() {
	GridData gridData3 = new org.eclipse.swt.layout.GridData();
	gridData3.grabExcessHorizontalSpace = false;
	gridData3.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	gridData3.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	group = new Group(this, SWT.NONE);
	group.setLayoutData(gridData3);
	radioButton1 = new Button(group, SWT.RADIO);
	radioButton1.setBounds(new org.eclipse.swt.graphics.Rectangle(143,18,109,16));
	radioButton1.setText("Sister screen class");
	radioButton2 = new Button(group, SWT.RADIO);
	radioButton2.setBounds(new org.eclipse.swt.graphics.Rectangle(12,18,126,16));
	radioButton2.setText("Inherited screen class");
	radioButton2.setSelection(true);
}
 
Example 10
Project: convertigo-eclipse   File: NewProjectWizardComposite6.java   Source Code and License 6 votes vote down vote up
/**
 * This method initializes group	
 *
 */
private void createGroup() {
	GridData gridData1 = new GridData();
	gridData1.horizontalAlignment = GridData.BEGINNING;
	gridData1.grabExcessHorizontalSpace = true;
	gridData1.verticalAlignment = GridData.CENTER;
	GridData gridData = new GridData();
	gridData.horizontalAlignment = GridData.FILL;
	gridData.verticalAlignment = GridData.CENTER;
	GridLayout gridLayout1 = new GridLayout();
	gridLayout1.numColumns = 2;
	GridData gridData3 = new GridData();
	gridData3.horizontalAlignment = GridData.FILL;
	gridData3.horizontalSpan = 2;
	gridData3.grabExcessHorizontalSpace = true;
	gridData3.grabExcessVerticalSpace = false;
	gridData3.verticalAlignment = GridData.FILL;
	group = new Group(this, SWT.NONE);
	group.setText("Target Server");
	group.setLayoutData(gridData3);
	group.setLayout(gridLayout1);
	label = new Label(group, SWT.NONE);
	label.setText("HTTP Server");
	httpServer = new Text(group, SWT.BORDER);
	httpServer.setLayoutData(gridData);
	
	label2 = new Label(group, SWT.NONE);
	label2.setText("HTTP Port");
	httpPort = new Text(group, SWT.BORDER);
	httpPort.setLayoutData(gridData1);
	label3 = new Label(group, SWT.NONE);
	label3.setText("SSL");
	ssl = new Button(group, SWT.CHECK);
	
	httpServer.addModifyListener(modifyListener);
       httpPort.addModifyListener(modifyListener);
       ssl.addSelectionListener(selectionListener);
}
 
Example 11
Project: n4js   File: InstallNpmDependencyDialog.java   Source Code and License 5 votes vote down vote up
@Override
protected Control createDialogArea(Composite parent) {
	final Group customDialogArea = new Group(parent, SHADOW_ETCHED_IN);
	customDialogArea.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).equalWidth(false).create());
	customDialogArea.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).align(FILL, TOP).create());

	createNameArea(customDialogArea, PACKAGE_NAME, this::handlePackageNameInput);
	createVersionArea(customDialogArea, MINIMUM_VERSION_OPTIONAL, this::handleLowerVersionInput,
			this::setLowerExcluded);
	createVersionArea(customDialogArea, MAXIMUM_VERSION_OPTIONAL, this::handleUpperVersionInput,
			this::setUpperExcluded);

	return customDialogArea;
}
 
Example 12
Project: n4js   File: InstallNpmDependencyDialog.java   Source Code and License 5 votes vote down vote up
private Composite createVersionArea(final Composite parent, final String label) {
	final Group area = new Group(parent, SHADOW_ETCHED_IN);
	area.setLayout(GridLayoutFactory.fillDefaults().numColumns(2).create());
	area.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
	area.setText(label);
	return area;
}
 
Example 13
Project: n4js   File: AbstractExportToSingleFileWizardPage.java   Source Code and License 5 votes vote down vote up
/**
 * Create the options specification widgets.
 */
protected void createOptionsGroup(Composite parent) {
	// options group
	Group optionsGroup = new Group(parent, SWT.NONE);
	GridLayout layout = new GridLayout();
	optionsGroup.setLayout(layout);
	optionsGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL
			| GridData.GRAB_HORIZONTAL));
	optionsGroup.setText(IDEWorkbenchMessages.WizardExportPage_options);
	optionsGroup.setFont(parent.getFont());

	createOptionsGroupButtons(optionsGroup);

}
 
Example 14
Project: n4js   File: AbstractExportToSingleFileWizardPage.java   Source Code and License 5 votes vote down vote up
/**
 * Create the button for checking if we should ask if we are going to overwrite existing files.
 */
private void createOverwriteExisting(Group optionsGroup, Font font) {
	// overwrite... checkbox
	overwriteExistingFilesCheckbox = new Button(optionsGroup, SWT.CHECK | SWT.LEFT);
	overwriteExistingFilesCheckbox.setText(N4ExportMessages.ExportFile_overwriteExisting);
	overwriteExistingFilesCheckbox.setFont(font);
}
 
Example 15
Project: n4js   File: ExportSelectionPage.java   Source Code and License 5 votes vote down vote up
@Override
protected void createOptionsGroupButtons(Group optionsGroup) {
	Font font = optionsGroup.getFont();
	optionsGroup.setLayout(new GridLayout(2, true));

	Composite left = new Composite(optionsGroup, SWT.NONE);
	left.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, false));
	left.setLayout(new GridLayout(1, true));

	// compress... checkbox
	compressContentsCheckbox = new Button(left, SWT.CHECK | SWT.LEFT);
	compressContentsCheckbox.setText(DataTransferMessages.ZipExport_compressContents);
	compressContentsCheckbox.setFont(font);

}
 
Example 16
Project: n4js   File: NpmToolRunnerPage.java   Source Code and License 5 votes vote down vote up
@Override
protected void createOptionsGroupButtons(Group optionsGroup) {

	npmGoalSelection = new Combo(optionsGroup, SWT.SINGLE
			| SWT.BORDER);
	npmGoalSelection.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
	npmGoalSelection.addListener(SWT.Modify, this);
	npmGoalSelection.addListener(SWT.Selection, this);

}
 
Example 17
Project: n4js   File: N4MFWizardNewProjectCreationPage.java   Source Code and License 5 votes vote down vote up
private Composite initDefaultOptionsUI(DataBindingContext dbc, Composite parent) {
	// A group for default options
	final Group defaultOptions = new Group(parent, NONE);
	defaultOptions.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create());

	final Button createGreeterFileButton = new Button(defaultOptions, CHECK);
	createGreeterFileButton.setText("Create a greeter file");

	initDefaultCreateGreeterBindings(dbc, createGreeterFileButton);

	return defaultOptions;
}
 
Example 18
Project: SimQRI   File: StudentsTPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.StudentsTPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 19
Project: SimQRI   File: BetaPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.BetaPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 20
Project: SimQRI   File: OutputPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.OutputPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 21
Project: SimQRI   File: SupplierPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.SupplierPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 22
Project: SimQRI   File: ConveyorBeltPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.ConveyorBeltPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 23
Project: bdf2   File: DbToolCreationWizardPage.java   Source Code and License 5 votes vote down vote up
public void createControl(Composite parent) {
	super.createControl(parent);
	Composite composite = (Composite) getControl();
	Group group = new Group(composite, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 2;
	group.setLayout(layout);
	group.setText("设置");
	group.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));

	Label label = new Label(group, SWT.NULL);
	label.setText("数据库方言:");
	final Combo combo = new Combo(group, SWT.READ_ONLY);
	GridData gd = new GridData(GridData.FILL_HORIZONTAL);
	combo.setLayoutData(gd);
	DbType[] values = DbType.values();
	for (DbType type : values) {
		combo.add(type.name());
	}
	combo.select(0);
	currentDbType = combo.getText();
	setFileName("NewFile" + DEFAULT_EXTENSION);
	combo.addSelectionListener(new SelectionAdapter() {
		public void widgetSelected(SelectionEvent e) {
			currentDbType = combo.getText();
		}
	});
	setPageComplete(validatePage());
}
 
Example 24
Project: time4sys   File: OtherPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(LibraryMessages.OtherPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 25
Project: SimQRI   File: FDistributionPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.FDistributionPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 26
Project: SimQRI   File: ProcessOutputFlowPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.ProcessOutputFlowPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 27
Project: SimQRI   File: PoissonPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.PoissonPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 28
Project: SimQRI   File: ChiSquarePropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.ChiSquarePropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 29
Project: time4sys   File: TimingPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(SrmMessages.TimingPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 30
Project: SimQRI   File: ModelPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.ModelPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 31
Project: SimQRI   File: OrderOnStockThresholdPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.OrderOnStockThresholdPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 32
Project: SimQRI   File: BatchProcessPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.BatchProcessPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 33
Project: SimQRI   File: GaussianPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.GaussianPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 34
Project: SimQRI   File: ParetoPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.ParetoPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 35
Project: SimQRI   File: ScalarPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.ScalarPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 36
Project: SimQRI   File: StorageOutputFlowPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.StorageOutputFlowPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 37
Project: SimQRI   File: GammaPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.GammaPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 38
Project: SimQRI   File: UniformPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.UniformPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 39
Project: time4sys   File: OtherPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(SrmMessages.OtherPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 40
Project: SimQRI   File: BinomialPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.BinomialPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 41
Project: SimQRI   File: CauchyPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.CauchyPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 42
Project: SimQRI   File: QueryPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.QueryPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 43
Project: SimQRI   File: StoragePropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.StoragePropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 44
Project: SimQRI   File: GeometricPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.GeometricPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 45
Project: gemoc-studio-modeldebugging   File: LaunchConfigurationTab.java   Source Code and License 5 votes vote down vote up
protected Group createGroup(Composite parent, String text) {
	Group group = new Group(parent, SWT.NULL);
	group.setText(text);
	GridLayout locationLayout = new GridLayout();
	locationLayout.numColumns = 3;
	locationLayout.marginHeight = 10;
	locationLayout.marginWidth = 10;
	group.setLayout(locationLayout);
	return group;
}
 
Example 46
Project: time4sys   File: OtherPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(HrmMessages.OtherPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 47
Project: pmTrans   File: FindReplaceDialog.java   Source Code and License 5 votes vote down vote up
private void renderDirection(Shell shell) {
	Group group = new Group(shell, SWT.NONE);
	group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 3, 1));
	group.setLayout(new GridLayout(1, false));
	group.setText("Direction");

	directionForward = new Button(group, SWT.RADIO);
	directionForward.setText("Fordward");
	directionBackward = new Button(group, SWT.RADIO);
	directionBackward.setText("Backwards");
	directionForward.setSelection(true);
}
 
Example 48
Project: pmTrans   File: FindReplaceDialog.java   Source Code and License 5 votes vote down vote up
private void renderOptions(Shell shell) {
	Group group = new Group(shell, SWT.NONE);
	group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 3, 1));
	group.setLayout(new GridLayout(1, false));
	group.setText("Options");

	wholeWords = createOption("Whole word", group);
	matchCase = createOption("Case sensitive", group);
	highlightAll = createOption("Highlight all", group);
	regex = createOption("Regular expression", group);
	highlightAll.setSelection(true);
}
 
Example 49
Project: neoscada   File: DetailComponentImpl.java   Source Code and License 5 votes vote down vote up
private void createGroupGridEntry ( final Map<String, String> properties, final Composite childParent, final GroupGridEntry groupEntry )
{
    final VisibilityProvider provider = this.visibleFactory.createProvider ( groupEntry.getVisibility () );

    final ComponentVisibility visibility = new ComponentVisibility ( provider, new SubTrackingVisibleComponent () {

        @Override
        public void create ()
        {
            final Group groupWidget = new Group ( childParent, SWT.NONE );

            groupWidget.setLayout ( new GridLayout ( 1, false ) );
            groupWidget.setLayoutData ( new GridData ( SWT.FILL, SWT.FILL, true, false ) );

            final String label = groupEntry.getLabel ();
            if ( label != null )
            {
                groupWidget.setText ( label );
            }

            for ( final Component child : groupEntry.getComponents () )
            {
                final DetailComponentImpl comp = new DetailComponentImpl ( child, DetailComponentImpl.this.viewContext );

                final Composite wrapper = new Composite ( groupWidget, SWT.NONE );
                wrapper.setLayoutData ( new GridData ( SWT.FILL, SWT.FILL, true, false ) );
                wrapper.setLayout ( new FillLayout () );

                comp.init ( DetailComponentImpl.this.visibleFactory, wrapper, properties );

                trackSub ( comp );
            }

            trackControl ( groupWidget );
        }
    } );

    addComponent ( visibility );
}
 
Example 50
Project: convertigo-eclipse   File: StepDatesEditorComposite.java   Source Code and License 5 votes vote down vote up
/**
	 * This method initializes groupDefinition	
	 *
	 */
	private void createGroupDefinition() {
		GridData gridData = new org.eclipse.swt.layout.GridData();
		gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
		gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
		gridData.horizontalSpan = 2;
		
		groupDefinition = new Group(this, SWT.NONE);
		groupDefinition.setText("Jour(s)");
		groupDefinition.setLayoutData(gridData);
		
		// first line
		checkMonday = new Button(groupDefinition, SWT.CHECK);
		checkMonday.setBounds(new org.eclipse.swt.graphics.Rectangle(8,18,42,16));
		checkMonday.setText("Lundi");
		
		checkTuesday = new Button(groupDefinition, SWT.CHECK);
		checkTuesday.setBounds(new org.eclipse.swt.graphics.Rectangle(54,18,42,16));
		checkTuesday.setText("Mardi");
		
		checkWednesday = new Button(groupDefinition, SWT.CHECK);
		checkWednesday.setBounds(new org.eclipse.swt.graphics.Rectangle(100,18,60,16));
		checkWednesday.setText("Mercredi");
		
		checkThursday = new Button(groupDefinition, SWT.CHECK);
		checkThursday.setBounds(new org.eclipse.swt.graphics.Rectangle(160,18,42,16));
		checkThursday.setText("Jeudi");
		
		checkFriday = new Button(groupDefinition, SWT.CHECK);
		checkFriday.setBounds(new org.eclipse.swt.graphics.Rectangle(204,18,60,16));
		checkFriday.setText("Vendredi");

		checkSaturday = new Button(groupDefinition, SWT.CHECK);
		checkSaturday.setBounds(new org.eclipse.swt.graphics.Rectangle(268,18,50,16));
		checkSaturday.setText("Samedi");
		
		checkSunday = new Button(groupDefinition, SWT.CHECK);
		checkSunday.setBounds(new org.eclipse.swt.graphics.Rectangle(322,18,60,16));
		checkSunday.setText("Dimanche");
}
 
Example 51
Project: convertigo-eclipse   File: IncludedTagAttributesEditorComposite.java   Source Code and License 5 votes vote down vote up
/**
 * This method initializes groupPosition	
 *
 */
private void createGroupPosition() {
	groupPosition = new Group(this, SWT.NONE);
	groupPosition.setText("Position");
	checkBoxLine = new Button(groupPosition, SWT.CHECK);
	checkBoxLine.setBounds(new org.eclipse.swt.graphics.Rectangle(8,18,44,16));
	checkBoxLine.setText("line");
	checkBoxColumn = new Button(groupPosition, SWT.CHECK);
	checkBoxColumn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,42,45,16));
	checkBoxColumn.setText("column");
}
 
Example 52
Project: convertigo-eclipse   File: IncludedTagAttributesEditorComposite.java   Source Code and License 5 votes vote down vote up
/**
 * This method initializes groupColor	
 *
 */
private void createGroupColor() {
	groupColor = new Group(this, SWT.NONE);
	groupColor.setText("Color");
	checkBoxForeground = new Button(groupColor, SWT.CHECK);
	checkBoxForeground.setBounds(new org.eclipse.swt.graphics.Rectangle(8,21,81,16));
	checkBoxForeground.setText("foreground");
	checkBoxBackground = new Button(groupColor, SWT.CHECK);
	checkBoxBackground.setBounds(new org.eclipse.swt.graphics.Rectangle(8,43,78,16));
	checkBoxBackground.setText("background");
}
 
Example 53
Project: time4sys   File: DesignModelPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(DesignMessages.DesignModelPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 54
Project: convertigo-eclipse   File: CouchVariablesComposite.java   Source Code and License 5 votes vote down vote up
public void setPropertyDescriptor(AbstractCouchDbTransaction couchDbTransaction, PropertyDescriptor[] propertyDescriptors, DatabaseObject parentObject) {	
	cleanGroups();
	
	/* Fill the Group widget */
	for (PropertyDescriptor property : propertyDescriptors) {
		final String name = property.getName();
		final String description = property.getShortDescription();
		if (!parametersCouch.contains(name) ){

			if ( (name.startsWith("q_") || name.startsWith("p_")) ) {
				if (!parentObject.getClass().getCanonicalName().equals(property.getValue( 
							MySimpleBeanInfo.BLACK_LIST_PARENT_CLASS))) {
					Group choosenGroup = name.startsWith("q_") ? groupQueries : groupParameters;
					addToComposite(choosenGroup, name, description, false);
				}
			} 
		}
	}
	
	if (groupQueries.getChildren().length == 0) {
		groupQueries.dispose();
	}
	
	if (groupParameters.getChildren().length == 0) {
		groupParameters.dispose();
	}
	
	/* */
	Collection<CouchExtraVariable> extraVariables = null;
	if (couchDbTransaction instanceof PostBulkDocumentsTransaction){
		extraVariables = ((PostBulkDocumentsTransaction) couchDbTransaction).getCouchParametersExtra();
	}
	if (couchDbTransaction instanceof PostDocumentTransaction) {
		extraVariables = ((PostDocumentTransaction) couchDbTransaction).getCouchParametersExtra();
	}
	if (couchDbTransaction instanceof PostUpdateTransaction) {
		extraVariables = ((PostUpdateTransaction) couchDbTransaction).getCouchParametersExtra();
	}
	if (couchDbTransaction instanceof PutUpdateTransaction) {
		extraVariables = ((PutUpdateTransaction) couchDbTransaction).getCouchParametersExtra();
	}
	
	if (extraVariables != null ){
		for (CouchExtraVariable extraVariable : extraVariables) {
			addToComposite(groupData, extraVariable.getVariableName(), extraVariable.getVariableDescription(), extraVariable.isMultiValued());
		}
	}
	
	if (groupData.getChildren().length == 0){
		groupData.dispose();
	}
	
	setContent(globalComposite);
	globalComposite.pack(true);
	
	// Fix text no displayed in C8oBrowser
	LinkedList<Control> controls = new LinkedList<>();
	controls.add(globalComposite);
	Control c;
	while ((c = controls.pollFirst()) != null) {
		if (c instanceof C8oBrowser) {
			((C8oBrowser) c).reloadText();
		} else if (c instanceof Composite) {
			controls.addAll(Arrays.asList(((Composite) c).getChildren()));
		}
	}
}
 
Example 55
Project: convertigo-eclipse   File: ProjectDeployDialogComposite.java   Source Code and License 5 votes vote down vote up
/**
 * This method initializes convertigoGroup	
 *
 */
private void createConvertigoGroup() {
	convertigoGroup = new Group(this, SWT.FILL);
	convertigoGroup.setLayout(new GridLayout());
	convertigoGroup.setText("Convertigo server login");
	
	GridData gridData2 = new GridData();
	gridData2.horizontalAlignment = GridData.FILL;
	gridData2.verticalAlignment = GridData.FILL;
	gridData2.grabExcessHorizontalSpace = true;
	gridData2.verticalIndent = 10;
	convertigoGroup.setLayoutData(gridData2);
	
	GridData gridData3 = new GridData();
	gridData3.horizontalAlignment = GridData.FILL;
	gridData3.verticalAlignment = GridData.CENTER;
	gridData3.grabExcessHorizontalSpace = true;
	convertigoAdminLabel = new Label(convertigoGroup, SWT.NONE);
	convertigoAdminLabel.setText("Server administrator");
	convertigoAdmin = new Text(convertigoGroup, SWT.BORDER);
	convertigoAdmin.setLayoutData(gridData3);
	
	GridData gridData5 = new GridData();
	gridData5.horizontalAlignment = GridData.FILL;
	gridData5.verticalAlignment = GridData.CENTER;
	gridData5.grabExcessHorizontalSpace = true;
	convertigoAdminPassword = new Label(convertigoGroup, SWT.NONE);
	convertigoAdminPassword.setText("Password");
	convertigoPassword = new Text(convertigoGroup, SWT.BORDER | SWT.PASSWORD);
	convertigoPassword.setLayoutData(gridData5);
}
 
Example 56
Project: time4sys   File: GeneralPropertiesEditionPartImpl.java   Source Code and License 5 votes vote down vote up
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(NfpMessages.GeneralPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
Example 57
Project: Equella   File: NewJPFPluginWizardPageOne.java   Source Code and License 5 votes vote down vote up
public Control createContent(Composite composite)
{
	fGroup = new Group(composite, SWT.NONE);
	fGroup.setFont(composite.getFont());
	fGroup.setLayout(initGridLayout(new GridLayout(3, false), true));
	fGroup.setText("Options");

	fGuice.setLabelText("Guice module");
	fGuice.doFillIntoGrid(fGroup, 1);

	fLanguage.setLabelText("Language strings");
	fLanguage.doFillIntoGrid(fGroup, 1);
	return fGroup;
}
 
Example 58
Project: solidity-ide   File: SolidityCompilerPreferencePage.java   Source Code and License 5 votes vote down vote up
protected Composite createGroupComposite(Composite parent, String title) {
	Group group = new Group(parent, SWT.NONE);
	group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
	group.setLayout(new GridLayout(3, false));
	Composite composite = new Composite(group, SWT.NONE);
	GridLayout gridLayout = new GridLayout(3, false);
	composite.setLayout(gridLayout);
	GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
	gridData.grabExcessHorizontalSpace = true;
	gridData.horizontalSpan = 3;
	composite.setLayoutData(gridData);
	group.setText(title);
	return composite;
}
 
Example 59
Project: SWET   File: TipDayEx.java   Source Code and License 5 votes vote down vote up
private void buildTip() {
	final Group group = new Group(this.shell, SWT.NONE);
	final GridData gd = new GridData(GridData.FILL, GridData.FILL, true, true);
	gd.widthHint = 300;
	gd.heightHint = 120;
	group.setLayoutData(gd);
	group.setText("Did you know");
	final FillLayout fillLayout = new FillLayout();
	fillLayout.marginWidth = 15;
	group.setLayout(fillLayout);

	this.tipArea = new Browser(group, SWT.BORDER);
	fillTipArea();
}
 
Example 60
Project: SWET   File: TipDayEx.java   Source Code and License 5 votes vote down vote up
private void buildTip() {
	final Group group = new Group(this.shell, SWT.NONE);
	final GridData gd = new GridData(GridData.FILL, GridData.FILL, true, true);
	gd.widthHint = 300;
	gd.heightHint = 120;
	group.setLayoutData(gd);
	group.setText("Did you know");
	final FillLayout fillLayout = new FillLayout();
	fillLayout.marginWidth = 15;
	group.setLayout(fillLayout);

	this.tipArea = new Browser(group, SWT.BORDER);
	fillTipArea();
}