Java Code Examples for org.eclipse.swt.widgets.Label.setLayoutData()

The following are Jave code examples for showing how to use setLayoutData() of the org.eclipse.swt.widgets.Label class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: n4js   File: CustomElementSelectionForm.java   View Source Code Vote up 6 votes
/**
 * Create the composite.
 */
public CustomElementSelectionForm(Composite parent, int style) {
	super(parent, style);
	setLayout(new GridLayout(2, false));

	treeViewer = new TreeViewer(this, SWT.BORDER);
	Tree tree = getTreeViewer().getTree();

	// Set a minimum height to prevent weird dialog dimensions
	tree.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).span(2, 1).minSize(0, 200).create());

	elementLabel = new Label(this, SWT.NONE);
	elementLabel.setLayoutData(GridDataFactory.swtDefaults().create());
	elementLabel.setText("New Label");

	elementInput = new SuffixText(this, SWT.BORDER);// new Text(this, SWT.BORDER);
	elementInput.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).create());
}
 
Example 2
Project: convertigo-eclipse   File: ConnectorEditorPart.java   View Source Code Vote up 6 votes
/**
 * This method initializes composite
 * 
 */
private void createComposite() {
	GridData gridData7 = new org.eclipse.swt.layout.GridData();
	gridData7.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData7.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData4 = new org.eclipse.swt.layout.GridData();
	gridData4.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData4.grabExcessHorizontalSpace = false;
	gridData4.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridLayout gridLayout4 = new GridLayout();
	gridLayout4.numColumns = 2;
	compositeOutputFooter = new Composite(compositeOutput, SWT.NONE);
	compositeOutputFooter.setBackground(new Color(Display.getCurrent(), 162, 194, 250));
	compositeOutputFooter.setLayout(gridLayout4);
	compositeOutputFooter.setLayoutData(gridData4);
	label1 = new Label(compositeOutputFooter, SWT.NONE);
	label1.setBackground(new Color(Display.getCurrent(), 162, 194, 250));
	label1.setText("Last detected screen class:");
	label1.setToolTipText("Displays the current screen class name");

	labelLastDetectedScreenClass = new Label(compositeOutputFooter, SWT.NONE);
	labelLastDetectedScreenClass.setBackground(new Color(Display.getCurrent(), 162, 194, 250));
	labelLastDetectedScreenClass.setText("(unknown)");
	labelLastDetectedScreenClass.setLayoutData(gridData7);
	labelLastDetectedScreenClass.setToolTipText("Displays the current screen class name");
}
 
Example 3
Project: avro-schema-editor   File: SchemaViewer.java   View Source Code Vote up 6 votes
protected void createToolBarManagerWithTitle(Composite parent, ToolBarConfiguration toolBarConfiguration, String toolBarId) {
	
	Composite compo = new Composite(composite, SWT.NONE);
	GridLayout layout = new GridLayout(3, false);
	layout.marginHeight = 0;
	layout.marginWidth = 0;
	layout.verticalSpacing = 0;
	compo.setLayout(layout);
	compo.setLayoutData(new  GridData(GridData.FILL_HORIZONTAL));
	
	Label imageLabel = new Label(compo, SWT.NONE);
	imageLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
	imageLabel.setImage(AvroSchemaEditorActivator.getNoneImage());
	toolBarImageLabels.put(toolBarId, imageLabel);
	
	Label titleLabel = new Label(compo, SWT.NONE);
	titleLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
	toolBarTextLabels.put(toolBarId, titleLabel);
	
	createToolBarManager(compo, toolBarConfiguration, toolBarId);
}
 
Example 4
Project: BiglyBT   File: ProgressReporterWindow.java   View Source Code Vote up 6 votes
/**
 * Creates just an empty panel with a message indicating there are no reports to display
 */
private void createEmptyPanel() {
	Composite emptyPanel = new Composite(scrollChild, SWT.BORDER);
	GridData gData = new GridData(SWT.FILL, SWT.FILL, true, true);
	gData.heightHint = 100;
	emptyPanel.setLayoutData(gData);
	emptyPanel.setLayout(new GridLayout());
	Label nothingToDisplay = new Label(emptyPanel, SWT.NONE);
	nothingToDisplay.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	nothingToDisplay.setText(MessageText.getString("Progress.reporting.no.reports.to.display"));

	/*
	 * Mark this as being opened and is showing the empty panel
	 */
	isShowingEmpty = true;

}
 
Example 5
Project: Hydrograph   File: HivePartitionKeyValueDialog.java   View Source Code Vote up 5 votes
/**
 * 	
 * @param container
 */
private void addErrorLabel(Composite container) {
		
	lblPropertyError = new Label(container, SWT.NONE);
	lblPropertyError.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,true,0,0));
	lblPropertyError.setForeground(CustomColorRegistry.INSTANCE.getColorFromRegistry( 255, 0, 0));
	lblPropertyError.setText(Messages.HIVE_FIELD_DIALOG_ERROR);
	lblPropertyError.setVisible(false);
	lblPropertyError.setData("Error", lblPropertyError);
	keyValueTableViewer.setData("Error", lblPropertyError);
}
 
Example 6
Project: Hydrograph   File: JdkPathDialog.java   View Source Code Vote up 5 votes
private void createTitleComposite(Composite mainComposite) {
	Composite titleComposite = new Composite(mainComposite, SWT.NONE);
	titleComposite.setLayout(new GridLayout(1, false));
	titleComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
	
	Label title = new Label(titleComposite, SWT.NONE);
	title.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	title.setText(Messages.JDK_PATH_DIALOG_MESSAGE);
}
 
Example 7
Project: n4js   File: InterfacesComponentProvider.java   View Source Code Vote up 5 votes
/**
 * Creates a new interfaces component inside the parent composite using the given model.
 *
 * @param interfacesContainingModel
 *            A interface containing model
 * @param container
 *            The component container
 */
public InterfacesComponent(InterfacesContainingModel interfacesContainingModel,
		WizardComponentContainer container) {
	super(container);
	this.model = interfacesContainingModel;

	Composite parent = getParentComposite();

	Label interfacesLabel = new Label(parent, SWT.NONE);

	GridData interfacesLabelGridData = fillLabelDefaults();
	interfacesLabelGridData.verticalAlignment = SWT.TOP;
	interfacesLabel.setLayoutData(interfacesLabelGridData);

	interfacesLabel.setText("Interfaces:");

	interfacesTable = new Table(parent, SWT.BORDER | SWT.FULL_SELECTION | SWT.VIRTUAL);
	interfacesTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	Composite interfacesButtonsComposite = new Composite(parent, SWT.NONE);
	interfacesButtonsComposite.setLayoutData(GridDataFactory.fillDefaults().create());

	interfacesButtonsComposite.setLayout(GridLayoutFactory.swtDefaults().numColumns(1).margins(0, 0).create());

	interfacesAddButton = new Button(interfacesButtonsComposite, SWT.NONE);
	interfacesAddButton.setText("Add...");
	interfacesAddButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).create());

	interfacesRemoveButton = new Button(interfacesButtonsComposite, SWT.NONE);
	interfacesRemoveButton.setText("Remove");
	interfacesRemoveButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).create());

	setupBindings();
}
 
Example 8
Project: openaudible   File: BookInfoPanel.java   View Source Code Vote up 5 votes
private GridComposite createStatsView(GridComposite parent) {
    GridComposite c = null;
    if (true) {
        c = new GridComposite(parent, SWT.BORDER_DOT);

        c.initLayout(2, false, GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
        c.noMargins();


        c.getGridData().horizontalIndent = 0;
        c.getGridData().verticalIndent = 0;
        // c.debugLayout(SWT.COLOR_BLUE);

    } else {
        c = parent;
    }

    for (BookElement s : elems) {


        String labelName = getName(s);
        Label l = c.newLabel();
        l.setText(Translate.getInstance().labelName(labelName) + ": ");
        l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
        l.setFont(FontShop.tableFontBold());
        l.setBackground(bgColor);

        Label d = c.newLabel();
        d.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        d.setFont(FontShop.tableFont());
        d.setBackground(bgColor);
        d.setData(s);
        stats[s.ordinal()] = d;
    }
    return c;
}
 
Example 9
Project: convertigo-eclipse   File: LearnScreenClassWizardComposite2.java   View Source Code Vote up 5 votes
/**
 * This method initializes this
 * 
 */
private void initialize() {
       GridData gridData2 = new org.eclipse.swt.layout.GridData();
       gridData2.horizontalSpan = 3;
       label1 = new Label(this, SWT.NONE);
       label1.setText("Please choose what kind of screen class you would like to create\nbased one detected one");
       label1.setLayoutData(gridData2);
       GridData gridData1 = new org.eclipse.swt.layout.GridData();
       gridData1.grabExcessHorizontalSpace = true;
       gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
       gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
       GridData gridData = new org.eclipse.swt.layout.GridData();
       gridData.grabExcessHorizontalSpace = false;
       gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
       gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
       gridData.grabExcessVerticalSpace = false;
       createGroup();
       label = new Label(this, SWT.NONE);
       label.setText("Give a screen class name");
       label.setLayoutData(gridData);
       screenClassName = new Text(this, SWT.BORDER);
       screenClassName.setLayoutData(gridData1);
       screenClassName.addModifyListener(modifyListener);
       GridLayout gridLayout = new GridLayout();
       gridLayout.numColumns = 1;
       this.setLayout(gridLayout);
}
 
Example 10
Project: gw4e.project   File: GraphModelPropertyPage.java   View Source Code Vote up 5 votes
/**
 * Label creation helper method
 * @param parent
 * @param text
 * @return
 */
protected Label createLabel(Composite parent, String text) {
	Label label = new Label(parent, SWT.LEFT);
	label.setText(text);
	GridData data = new GridData();
	data.horizontalAlignment = GridData.FILL;
	label.setLayoutData(data);
	return label;
}
 
Example 11
Project: neoscada   File: MainPage.java   View Source Code Vote up 5 votes
@Override
public void createContent ( final Composite parent )
{
    parent.setLayout ( new GridLayout ( 1, false ) );

    final Label label = new Label ( parent, SWT.NONE );
    label.setText ( System.getProperty ( Properties.MAIN_PAGE_TEXT, "Administration Console" ) );
    label.setData ( RWT.CUSTOM_VARIANT, "mainLabel" );

    final GridData gd = new GridData ( SWT.CENTER, SWT.BEGINNING, true, true );
    gd.verticalIndent = 20;
    label.setLayoutData ( gd );
}
 
Example 12
Project: convertigo-eclipse   File: XMLTableWizardPage.java   View Source Code Vote up 5 votes
private void createXPath(Composite parent) {
       GridData gridData = new GridData();
       gridData.horizontalSpan = numColumns;
       gridData.horizontalAlignment = GridData.FILL;
	
	Label label = new Label(parent, SWT.NULL);
	label.setLayoutData(gridData);
	label.setText("&XPath : " + xpath);
}
 
Example 13
Project: Hydrograph   File: ParameterGridDialog.java   View Source Code Vote up 5 votes
private void attachAddRowButton(Composite composite) {
	Label btnAdd = new Label(composite, SWT.NONE);
	GridData gd_btnAdd = getGridControlButtonLayout();
	btnAdd.setLayoutData(gd_btnAdd);
	btnAdd.setText("");
	btnAdd.setImage(ImagePathConstant.ADD_BUTTON.getImageFromRegistry());
	
	attachAddRowButtonListener(btnAdd);
}
 
Example 14
Project: convertigo-eclipse   File: WorkspaceCreationPage.java   View Source Code Vote up 5 votes
public void createControl(Composite parent) {		
	container = new Composite(parent, SWT.NONE);
	container.setLayout(new GridLayout(1, true));
	
	Label label = new Label(container, SWT.WRAP);
	label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
	label.setText("A new Convertigo workspace will be created in:\n\n" +
			"\t'" + Engine.PROJECTS_PATH + "'\n\n" +
			"This action will be completed when this wizard finishes.");
	
	setControl(container);
}
 
Example 15
Project: OCCI-Studio   File: NewConnectorWizard.java   View Source Code Vote up 4 votes
@Override
public void createControl(Composite parent) {
	super.createControl(parent);
	Composite control = (Composite) getControl();

	Composite extensionGroup = new Composite(control, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 2;
	extensionGroup.setLayout(layout);
	extensionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

	Label refOccieLabel = new Label(extensionGroup, SWT.NONE);
	refOccieLabel.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, true));
	refOccieLabel.setText(Messages.NewConnectorWizard_RefExtensionLabel);
	refOccieLabel.setFont(parent.getFont());

	Composite composite = new Composite(extensionGroup, SWT.NULL);
	GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
	composite.setLayoutData(layoutData);
	TableColumnLayout tableLayout = new TableColumnLayout();
	composite.setLayout(tableLayout);

	Table table = new Table(composite,
			SWT.CHECK | SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);
	refExtensionViewer = new CheckboxTableViewer(table);

	refExtensionViewer.setContentProvider(ArrayContentProvider.getInstance());

	refExtensionViewer.addSelectionChangedListener(new ISelectionChangedListener() {
		@Override
		public void selectionChanged(SelectionChangedEvent event) {
			setPageComplete(validatePage());
		}
	});

	Collection<String> registeredExtensions = new ArrayList<String>(
			OcciRegistry.getInstance().getRegisteredExtensions());
	// removed the OCCI core extension as it is added by default.
	registeredExtensions.remove(OcciCoreConstants.OCCI_CORE_SCHEME);
	refExtensionViewer.setInput(registeredExtensions);
}
 
Example 16
Project: gw4e.project   File: GW4ELaunchConfigurationTab.java   View Source Code Vote up 4 votes
private void createBuildPoliciesGeneratorSection(Composite parent) {
	composite = new Composite(parent_1, SWT.NONE);
	composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
	GridLayout gl_composite = new GridLayout(1, false);
	gl_composite.marginWidth = 0;
	composite.setLayout(gl_composite);

	Button fRefreshButton = new Button(composite, SWT.PUSH);
	fRefreshButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
	fRefreshButton.setEnabled(true);
	fRefreshButton.setText(MessageUtil.getString("refresh"));
	fRefreshButton.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent evt) {
			refreshStartElement();
		}
	});

	lblNewLabel_1 = new Label(parent_1, SWT.NONE);
	lblNewLabel_1.setText(MessageUtil.getString("additionalGraphModels"));
	gd = new GridData();
	gd.horizontalIndent = 25;
	lblNewLabel_1.setLayoutData(gd);

	mpg = new ModelPathGenerator(parent_1, SWT.NONE, new Listener() {
		@Override
		public void handleEvent(Event event) {
			updateConfigState();
		}
	});
	mpg.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	GridLayout gridLayout = (GridLayout) mpg.getLayout();
	gridLayout.marginWidth = 0;

	composite_1 = new Composite(parent_1, SWT.NONE);
	composite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
	composite_1.setLayout(new GridLayout(1, false));

	hintButton = new Button(composite_1, SWT.CHECK);
	hintButton.setText(MessageUtil.getString("hint"));

	filterGraphmlButton = new Button(composite_1, SWT.CHECK);
	filterGraphmlButton.setText(MessageUtil.getString("filter_graphml_file"));
	Label fDummyGeneratorLabel = new Label(parent, SWT.NONE);
	GridData gd_1 = new GridData();
	gd_1.horizontalSpan = 1;
	fDummyGeneratorLabel.setLayoutData(gd_1);

	mpg.setButtons(hintButton, filterGraphmlButton);

	composite_3 = new Composite(parent_1, SWT.NONE);
	GridLayout gl_composite_3 = new GridLayout(1, false);
	gl_composite_3.marginWidth = 0;
	composite_3.setLayout(gl_composite_3);
	composite_3.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
}
 
Example 17
Project: Hydrograph   File: SaveJobFileBeforeRunDialog.java   View Source Code Vote up 4 votes
/**
 * Create contents of the dialog.
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {
	Composite container = (Composite) super .createDialogArea(parent);
	container.getShell().setText(Messages.CONFIRM_TO_SAVE_JOB_BEFORE_RUN_DIALOG_TITLE);
	
	container.setLayout(new GridLayout(1, false));
	
	Composite composite = new Composite(container, SWT.NONE);
	composite.setLayout(new GridLayout(2, false));
	composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	Composite messageComposite = new Composite(composite, SWT.NONE);
	messageComposite.setLayout(new GridLayout(2, false));
	GridData gd_messageComposite = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
	gd_messageComposite.heightHint = 34;
	messageComposite.setLayoutData(gd_messageComposite);
	
	Label iconLabel = new Label(messageComposite, SWT.NONE);
	iconLabel.setImage(getSWTImage());
	
	Label messageLabel = new Label(messageComposite, SWT.WRAP);
	messageLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));
	
	messageLabel.setText(messageText);
	new Label(composite, SWT.NONE);
	
	Composite alwaysSaveComposite = new Composite(composite, SWT.NONE);
	alwaysSaveComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	alwaysSaveComposite.setLayout(new GridLayout(3, false));
	
	Label blankSpaceLabel = new Label(alwaysSaveComposite, SWT.NONE);
	
	
	alwaysSaveCheckButton = new Button(alwaysSaveComposite, SWT.CHECK);
	alwaysSaveCheckButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	alwaysSaveCheckButton.setText("Always save job before running");
	new Label(alwaysSaveComposite, SWT.NONE);
	new Label(composite, SWT.NONE);

	return container;
}
 
Example 18
Project: n4js   File: AbstractN4JSPreferencePage.java   View Source Code Vote up 4 votes
/** copied from PropertyAndPreferencePage */
@Override
protected Label createDescriptionLabel(Composite parent) {
	parentComposite = parent;
	if (isProjectPreferencePage()) {
		Composite composite = new Composite(parent, SWT.NONE);
		composite.setFont(parent.getFont());
		GridLayout layout = new GridLayout();
		layout.marginHeight = 0;
		layout.marginWidth = 0;
		layout.numColumns = 2;
		composite.setLayout(layout);
		composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

		IDialogFieldListener listener = new IDialogFieldListener() {
			@Override
			public void dialogFieldChanged(DialogField dialogField) {
				boolean enabled = ((SelectionButtonDialogField) dialogField).isSelected();
				enableProjectSpecificSettings(enabled);
				projectSpecificChanged = true;

				if (enabled && getData() != null) {
					applyData(getData());
				}
			}
		};

		useProjectSettings = new SelectionButtonDialogField(SWT.CHECK);
		useProjectSettings.setDialogFieldListener(listener);
		useProjectSettings
				.setLabelText(org.eclipse.xtext.ui.preferences.Messages.PropertyAndPreferencePage_useprojectsettings_label);
		useProjectSettings.doFillIntoGrid(composite, 1);
		LayoutUtil.setHorizontalGrabbing(useProjectSettings.getSelectionButton(null));

		if (offerLink()) {
			changeWorkspaceSettings = createLink(composite,
					org.eclipse.xtext.ui.preferences.Messages.PropertyAndPreferencePage_useworkspacesettings_change);
			changeWorkspaceSettings.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, false));
		} else {
			LayoutUtil.setHorizontalSpan(useProjectSettings.getSelectionButton(null), 2);
		}

		Label horizontalLine = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);
		horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
		horizontalLine.setFont(composite.getFont());
	} else if (supportsProjectSpecificOptions() && offerLink()) {
		changeWorkspaceSettings = createLink(
				parent,
				org.eclipse.xtext.ui.preferences.Messages.PropertyAndPreferencePage_showprojectspecificsettings_label);
		changeWorkspaceSettings.setLayoutData(new GridData(SWT.END, SWT.CENTER, true, false));
	}

	return super.createDescriptionLabel(parent);
}
 
Example 19
Project: gw4e.project   File: GW4ELaunchConfigurationTab.java   View Source Code Vote up 4 votes
private void createBuildPoliciesGeneratorSection(Composite parent) {
	composite = new Composite(parent_1, SWT.NONE);
	composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
	GridLayout gl_composite = new GridLayout(1, false);
	gl_composite.marginWidth = 0;
	composite.setLayout(gl_composite);

	Button fRefreshButton = new Button(composite, SWT.PUSH);
	fRefreshButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
	fRefreshButton.setEnabled(true);
	fRefreshButton.setText(MessageUtil.getString("refresh"));
	fRefreshButton.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent evt) {
			refreshStartElement();
		}
	});

	lblNewLabel_1 = new Label(parent_1, SWT.NONE);
	lblNewLabel_1.setText(MessageUtil.getString("additionalGraphModels"));
	gd = new GridData();
	gd.horizontalIndent = 25;
	lblNewLabel_1.setLayoutData(gd);

	mpg = new ModelPathGenerator(parent_1, SWT.NONE, new Listener() {
		@Override
		public void handleEvent(Event event) {
			updateConfigState();
		}
	});
	mpg.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	GridLayout gridLayout = (GridLayout) mpg.getLayout();
	gridLayout.marginWidth = 0;

	composite_1 = new Composite(parent_1, SWT.NONE);
	composite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
	composite_1.setLayout(new GridLayout(1, false));

	hintButton = new Button(composite_1, SWT.CHECK);
	hintButton.setText(MessageUtil.getString("hint"));

	filterGraphmlButton = new Button(composite_1, SWT.CHECK);
	filterGraphmlButton.setText(MessageUtil.getString("filter_graphml_file"));
	Label fDummyGeneratorLabel = new Label(parent, SWT.NONE);
	GridData gd_1 = new GridData();
	gd_1.horizontalSpan = 1;
	fDummyGeneratorLabel.setLayoutData(gd_1);

	mpg.setButtons(hintButton, filterGraphmlButton);

	composite_3 = new Composite(parent_1, SWT.NONE);
	GridLayout gl_composite_3 = new GridLayout(1, false);
	gl_composite_3.marginWidth = 0;
	composite_3.setLayout(gl_composite_3);
	composite_3.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
}
 
Example 20
Project: convertigo-eclipse   File: NewProjectWizardComposite8.java   View Source Code Vote up 4 votes
/**
 * This method initializes this
 * 
 */
private void initialize() {
	GridData gridData6 = new org.eclipse.swt.layout.GridData();
	gridData6.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData6.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData5 = new org.eclipse.swt.layout.GridData();
	gridData5.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData5.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData4 = new org.eclipse.swt.layout.GridData();
	gridData4.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData4.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData3 = new org.eclipse.swt.layout.GridData();
	gridData3.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData3.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData21 = new org.eclipse.swt.layout.GridData();
	gridData21.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
	gridData21.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData1 = new org.eclipse.swt.layout.GridData();
	gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
	gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData2 = new org.eclipse.swt.layout.GridData();
	gridData2.horizontalSpan = 2;
	gridData2.grabExcessHorizontalSpace = true;
	gridData2.horizontalAlignment = GridData.FILL;
	label1 = new Label(this, SWT.NONE);
	label1.setText("Here are all the configuration options you chose during the project setup.\nClick \"finish\" to create the project or \"back\" to review parameters.\n ");
	label1.setLayoutData(gridData2);
	GridData gridData = new org.eclipse.swt.layout.GridData();
	gridData.grabExcessHorizontalSpace = false;
	gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
	gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	gridData.grabExcessVerticalSpace = false;
	label = new Label(this, SWT.NONE);
	label.setText("Project name:");
	label.setLayoutData(gridData);
	projectName = new Label(this, SWT.NONE);
	projectName.setText("projectName");
	projectName.setLayoutData(gridData4);
	label5 = new Label(this, SWT.NONE);
	label5.setText("Connector name:");
	connectorName = new Label(this, SWT.NONE);
	connectorName.setText("connectorName");
	connectorName.setLayoutData(gridData3);
	GridData gridData7 = new org.eclipse.swt.layout.GridData();
	gridData7.horizontalSpan = 2;
	gridData7.grabExcessHorizontalSpace = true;
	gridData7.horizontalAlignment = GridData.FILL;
	label3 = new Label(this, SWT.NONE);
	label3.setText("Connector configuration");
	label3.setLayoutData(gridData7);
	label6 = new Label(this, SWT.NONE);
	label6.setText("Target server:");
	label6.setLayoutData(gridData21);
	targetServer = new Label(this, SWT.NONE);
	targetServer.setText("target server");
	targetServer.setLayoutData(gridData5);
	GridLayout gridLayout = new GridLayout();
	gridLayout.numColumns = 2;
	this.setLayout(gridLayout);
	this.setSize(new org.eclipse.swt.graphics.Point(403, 177));
}