Java 类org.eclipse.swt.layout.GridLayout 实例源码

项目:pgcodekeeper    文件:NewObjectWizard.java   
@Override
public void createControl(Composite parent) {
    Composite area = new Composite(parent, SWT.NONE);
    area.setLayout(new GridLayout(2, false));
    area.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    new Label(area, SWT.NONE).setText(Messages.PgObject_project_name);
    viewerProject = new ComboViewer(area, SWT.READ_ONLY | SWT.DROP_DOWN);

    new Label(area, SWT.NONE).setText(Messages.PgObject_object_type);
    viewerType = new ComboViewer(area, SWT.READ_ONLY | SWT.DROP_DOWN);

    new Label(area, SWT.NONE).setText(Messages.PgObject_object_name);
    final Text txtName = new Text(area, SWT.BORDER);
    txtName.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    txtName.addModifyListener(e -> {
        name = txtName.getText();
        getWizard().getContainer().updateButtons();
    });
    fillProjects();
    fillTypes();
    setControl(area);
}
项目:convertigo-eclipse    文件:XulWebViewerImpl.java   
/**
 * This method initializes this
 * 
 */
private void initialize() {     
    if(display==null)display = Display.getDefault();

    composite = new CompositeCheckWidget(tabManager, SWT.NONE);

    GridLayout gl = new GridLayout(1,false);
    gl.marginHeight = gl.marginWidth = gl.verticalSpacing = 0;
       composite.setLayout(gl);

       createToolBar();
       createXulContainer();
       //toolBar.setMozillaBrowser(mozillaBrowser);

       composite.setSize(new org.eclipse.swt.graphics.Point(347,141));

    tabManager.add(this, composite, true);

       toolBar.setXulWebViewer(this);
}
项目:n4js    文件:WorkingSetConfigurationDialog.java   
@Override
protected Control createDialogArea(final Composite parent) {
    final Composite composite = (Composite) super.createDialogArea(parent);

    createMessageArea(composite);
    final Composite inner = new Composite(composite, SWT.NONE);
    inner.setLayoutData(new GridData(GridData.FILL_BOTH));
    final GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    inner.setLayout(layout);
    createTableViewer(inner);
    createOrderButtons(inner);
    // New, Edit and Remove is allowed only for mutable managers.
    if (manager instanceof MutableWorkingSetManager) {
        createModifyButtons(composite);
    }
    tableViewer.setInput(allWorkingSets);
    applyDialogFont(composite);

    return composite;
}
项目:neoscada    文件:DefaultPage.java   
@Override
protected Control createContents ( final Composite parent )
{
    final Composite wrapper = new Composite ( parent, SWT.NONE );
    wrapper.setLayout ( new GridLayout ( 1, false ) );

    final Label label = new Label ( wrapper, SWT.NONE );
    label.setText ( "Preferences for Eclipse SCADA Security" );

    final Button testButton = new Button ( wrapper, SWT.NONE );
    testButton.setText ( "Test key selection…" );
    testButton.addSelectionListener ( new SelectionAdapter () {
        @Override
        public void widgetSelected ( final SelectionEvent e )
        {
            openDialog ();
        }
    } );

    return wrapper;
}
项目:convertigo-eclipse    文件:ConnectorEditorPart.java   
private void createCompositeOutput() {
    GridLayout gridLayout = new GridLayout();
    gridLayout.horizontalSpacing = 0;
    gridLayout.marginHeight = 0;
    gridLayout.verticalSpacing = 0;
    gridLayout.numColumns = 1;
    gridLayout.marginWidth = 0;
    GridData gridData = new org.eclipse.swt.layout.GridData();
    gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
    compositeOutput = new Composite(tabFolderOutputDesign, SWT.NONE);
    compositeOutput.setLayout(gridLayout);
    createCompositeOutputHeader();
    createSashForm();
    createComposite();
}
项目:convertigo-eclipse    文件:ImportWizardPage.java   
public void createControl(Composite parent) {
    Composite fileSelectionArea = new Composite(parent, SWT.NONE);
    GridData fileSelectionData = new GridData(GridData.GRAB_HORIZONTAL
            | GridData.FILL_HORIZONTAL);
    fileSelectionArea.setLayoutData(fileSelectionData);

    GridLayout fileSelectionLayout = new GridLayout();
    fileSelectionLayout.numColumns = 3;
    fileSelectionLayout.makeColumnsEqualWidth = false;
    fileSelectionLayout.marginWidth = 0;
    fileSelectionLayout.marginHeight = 0;
    fileSelectionArea.setLayout(fileSelectionLayout);

    editor = new ProjectFileFieldEditor("fileSelect","Select File: ",fileSelectionArea);
    editor.getTextControl(fileSelectionArea).addModifyListener(new ModifyListener(){
        public void modifyText(ModifyEvent e) {
            IPath path = new Path(ImportWizardPage.this.editor.getStringValue());
            filePath = path.toString();
            updateStatus();
        }
    });
    fileSelectionArea.moveAbove(null);
    updateStatus();
    setControl(fileSelectionArea);      
}
项目:Hydrograph    文件:OperationComposite.java   
/**
 * Create the composite.
 * 
 * @param parent
 * @param style
 */
public OperationComposite(FilterExpressionOperationDialog dialog, Composite parent, int style) {
    super(parent, style);
    this.dialog = dialog;
    this.operationDataStructure = dialog.getDataStructure().getOperationClassData();

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

    Composite middleComposite = new Composite(this, SWT.BORDER);
    middleComposite.setLayout(new GridLayout(2, false));
    middleComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

    inputFieldComposite = new InputFieldsComposite(middleComposite, dialog,SWT.NONE,
            operationDataStructure.getInputFields());
    GridData gd_composite2 = new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1);
    gd_composite2.widthHint = 170;
    inputFieldComposite.setLayoutData(gd_composite2);

    createOtherFieldComposite(middleComposite);

    createExternalComposite();

    refresh();
}
项目:time4sys    文件:ShowHideWizardPage.java   
private void createSelectionComposite(final Composite parent) {
    final Composite pane = new Composite(parent, SWT.NONE);
    final GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
    gridData.horizontalAlignment = SWT.FILL;
    gridData.widthHint = 200;
    pane.setLayoutData(gridData);

    final GridLayout gridLayout = new GridLayout();
    gridLayout.marginHeight = 0;
    gridLayout.marginWidth = 0;
    gridLayout.numColumns = 1;
    pane.setLayout(gridLayout);

    final Label label = new Label(pane, SWT.NONE);
    label.setText(selectedValuesMessage);
    final GridData labelGridData = new GridData();
    labelGridData.verticalAlignment = SWT.FILL;
    labelGridData.horizontalAlignment = SWT.FILL;
    label.setLayoutData(labelGridData);

    selectedElementsTableViewer = createTableViewer(pane);
    selectedElementsTableViewer.setInput(this.selectedElements);
}
项目:ide-plugins    文件:PluginDialog.java   
@Override
protected Control createButtonBar(Composite parent) {
    final Composite buttonBar = new Composite(parent, SWT.NONE);
    buttonBar.setBackground(backColor);

    final GridLayout layout = new GridLayout();
    layout.marginLeft = 10;
    layout.numColumns = 2;
    layout.makeColumnsEqualWidth = false;
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    buttonBar.setLayout(layout);

    final GridData data = new GridData(SWT.FILL, SWT.CENTER, true, false);
    data.grabExcessHorizontalSpace = true;
    data.grabExcessVerticalSpace = false;
    buttonBar.setLayoutData(data);

    buttonBar.setFont(parent.getFont());

    // add the dialog's button bar to the right
    buttonControl = super.createButtonBar(buttonBar);
    buttonControl.setBackground(backColor);
    buttonControl.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));

    return buttonBar;
}
项目:Hydrograph    文件:JobRunPreferenceComposite.java   
/**
 * @param selection
 */
private void createSaveJobPromtGroup(String selection) {
    HydroGroup hydroGroup = new HydroGroup(this, SWT.NONE);
    hydroGroup.setHydroGroupText(Messages.SAVE_JOBS_BEFORE_LAUNCHING_MESSAGE);
    hydroGroup.setLayout(new GridLayout(1, false));
    hydroGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
    hydroGroup.getHydroGroupClientArea().setLayout(new GridLayout(2, false));
    hydroGroup.getHydroGroupClientArea().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

    btnRadioButtonAlways = new Button(hydroGroup.getHydroGroupClientArea(), SWT.RADIO);
    btnRadioButtonAlways.setText(StringUtils.capitalize((MessageDialogWithToggle.ALWAYS)));

    btnRadioButtonPrompt = new Button(hydroGroup.getHydroGroupClientArea(), SWT.RADIO);
    btnRadioButtonPrompt.setText(StringUtils.capitalize(MessageDialogWithToggle.PROMPT));

    if (StringUtils.equals(selection, MessageDialogWithToggle.ALWAYS)) {
        btnRadioButtonAlways.setSelection(true);
    } else {
        btnRadioButtonPrompt.setSelection(true);
    }
}
项目:scanning    文件:ScannableViewerTest.java   
@Override
protected Shell createShell(Display display) throws Exception {

    this.viewer = new ScannableViewer();

    Shell shell = new Shell(display);
    shell.setText("Monitors");
    shell.setLayout(new GridLayout(1, false));
       viewer.createPartControl(shell);

    shell.pack();
    shell.setSize(500, 500);
    shell.open();

    return shell;
}
项目:time4sys    文件:EventModelPropertiesEditionPartForm.java   
/**
 * @generated
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
    Section propertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
    propertiesSection.setText(AnalysisMessages.EventModelPropertiesEditionPart_PropertiesGroupLabel);
    GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
    propertiesSectionData.horizontalSpan = 3;
    propertiesSection.setLayoutData(propertiesSectionData);
    Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
    GridLayout propertiesGroupLayout = new GridLayout();
    propertiesGroupLayout.numColumns = 3;
    propertiesGroup.setLayout(propertiesGroupLayout);
    propertiesSection.setClient(propertiesGroup);
    return propertiesGroup;
}
项目:time4sys    文件:SchedulerParameterValuePropertiesEditionPartForm.java   
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createFigure(org.eclipse.swt.widgets.Composite, org.eclipse.ui.forms.widgets.FormToolkit)
 * @generated
 */
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
    ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
    Form form = scrolledForm.getForm();
    view = form.getBody();
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    view.setLayout(layout);
    createControls(widgetFactory, view);
    return scrolledForm;
}
项目:neoscada    文件:BreadcrumbBar.java   
void addChild ( final BreadcrumbItem item )
{
    this.items.add ( item );

    if ( this.horizontal )
    {
        ( (GridLayout)this.composite.getLayout () ).numColumns = this.items.size ();
    }
    this.composite.layout ();
}
项目:time4sys    文件:ProtectionProtocolPropertiesEditionPartForm.java   
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createFigure(org.eclipse.swt.widgets.Composite, org.eclipse.ui.forms.widgets.FormToolkit)
 * @generated
 */
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
    ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
    Form form = scrolledForm.getForm();
    view = form.getBody();
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    view.setLayout(layout);
    createControls(widgetFactory, view);
    return scrolledForm;
}
项目:n4js    文件:AbstractExportToSingleFileWizardPage.java   
/**
 * Create the export destination specification widgets
 */
protected void createDestinationGroup(Composite parent) {
    Font font = parent.getFont();
    // destination specification group
    Composite destinationSelectionGroup = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    destinationSelectionGroup.setLayout(layout);
    destinationSelectionGroup.setLayoutData(new GridData(
            GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL));
    destinationSelectionGroup.setFont(font);

    Label destinationLabel = new Label(destinationSelectionGroup, SWT.NONE);
    destinationLabel.setText(getTargetLabel());
    destinationLabel.setFont(font);

    // destination name entry field
    destinationNameField = new Combo(destinationSelectionGroup, SWT.SINGLE
            | SWT.BORDER);
    destinationNameField.addListener(SWT.Modify, this);
    destinationNameField.addListener(SWT.Selection, this);
    GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL
            | GridData.GRAB_HORIZONTAL);
    data.widthHint = SIZING_TEXT_FIELD_WIDTH;
    destinationNameField.setLayoutData(data);
    destinationNameField.setFont(font);

    // destination browse button
    destinationBrowseButton = new Button(destinationSelectionGroup,
            SWT.PUSH);
    destinationBrowseButton.setText(N4ExportMessages.DataTransfer_browse);
    destinationBrowseButton.addListener(SWT.Selection, this);
    destinationBrowseButton.setFont(font);
    setButtonLayoutData(destinationBrowseButton);

    // new Label(parent, SWT.NONE); // vertical spacer
}
项目:SimQRI    文件:ScalarPropertiesEditionPartImpl.java   
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
 *          createFigure(org.eclipse.swt.widgets.Composite)
 * 
 */
public Composite createFigure(final Composite parent) {
    view = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    view.setLayout(layout);
    createControls(view);
    return view;
}
项目:time4sys    文件:OtherPropertiesEditionPartImpl.java   
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
 *          createFigure(org.eclipse.swt.widgets.Composite)
 * 
 */
public Composite createFigure(final Composite parent) {
    view = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    view.setLayout(layout);
    createControls(view);
    return view;
}
项目:time4sys    文件:ComputingResourcePropertiesEditionPartForm.java   
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createFigure(org.eclipse.swt.widgets.Composite, org.eclipse.ui.forms.widgets.FormToolkit)
 * @generated
 */
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
    ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
    Form form = scrolledForm.getForm();
    view = form.getBody();
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    view.setLayout(layout);
    createControls(widgetFactory, view);
    return scrolledForm;
}
项目:n4js    文件:ExportSelectionPage.java   
@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);

}
项目:n4js    文件:NpmToolRunnerPage.java   
@Override
public void createControl(Composite parent) {
    initializeDialogUnits(parent);
    Composite composite = new Composite(parent, SWT.NULL);
    composite.setLayout(new GridLayout());

    runNpmCheckbox = new Button(composite, SWT.CHECK | SWT.LEFT);
    runNpmCheckbox.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, false));
    runNpmCheckbox.setText("Run npm tool for each project");
    runNpmCheckbox.setFont(parent.getFont());
    runNpmCheckbox.addListener(SWT.Selection, this);

    Label label = createPlainLabel(composite, "npm");
    label.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, false));

    createOptionsGroup(composite);

    textProcessOut = new Text(composite, SWT.MULTI | SWT.READ_ONLY);
    textProcessOut.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    restoreWidgetValues();

    setControl(composite);

    // sync the page completion
    updatePageCompletion();
}
项目:time4sys    文件:RequiredProtectionParameterPropertiesEditionPartImpl.java   
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
 *          createFigure(org.eclipse.swt.widgets.Composite)
 * @generated
 */
public Composite createFigure(final Composite parent) {
    view = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    view.setLayout(layout);
    createControls(view);
    return view;
}
项目:convertigo-eclipse    文件:HtmlConnectorDesignComposite.java   
/**
 * This method initializes composite1   
 * @throws MaxCvsExceededException 
 * @throws KeyExpiredException 
 *
 */
private void createComposite1() throws MaxCvsExceededException, KeyExpiredException {
    GridLayout gl = new GridLayout();
    gl.horizontalSpacing = gl.marginWidth = gl.marginHeight = gl.verticalSpacing = 0;
    upperPanel = new Composite(sashForm, SWT.NONE);
    upperPanel.setLayout(gl);
    createUpperSashForm();
}
项目:Hydrograph    文件:SecondaryColumnKeysDialog.java   
private void addButtonPanel(Composite container) {
    container_1.setLayout(new GridLayout(1, false));
    Composite composite_1 = new Composite(container, SWT.NONE);
    composite_1.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));
    composite_1.setLayout(new GridLayout(4, false));

    Button addButton = new Button(composite_1, SWT.NONE);
    addButton.setToolTipText(Messages.ADD_KEY_SHORTCUT_TOOLTIP);
    addButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    addButton.setImage(ImagePathConstant.ADD_BUTTON.getImageFromRegistry());
    attachAddButtonListern(addButton);

    deleteButton = new Button(composite_1, SWT.NONE);
    deleteButton.setToolTipText(Messages.DELETE_KEY_SHORTCUT_TOOLTIP);
    deleteButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    deleteButton.setImage(ImagePathConstant.DELETE_BUTTON.getImageFromRegistry());
    attachDeleteButtonListener(deleteButton);

    upButton = new Button(composite_1, SWT.NONE);
    upButton.setToolTipText(Messages.MOVE_UP_KEY_SHORTCUT_TOOLTIP);
    upButton.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));
    upButton.setImage(ImagePathConstant.MOVEUP_BUTTON.getImageFromRegistry());
    attachUpButtonListener(upButton);

    downButton = new Button(composite_1, SWT.NONE);
    downButton.setToolTipText(Messages.MOVE_DOWN_KEY_SHORTCUT_TOOLTIP);
    downButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    downButton.setImage(ImagePathConstant.MOVEDOWN_BUTTON.getImageFromRegistry());
    attachDownButtonListerner(downButton);
    deleteButton.setEnabled(false);
    upButton.setEnabled(false);
    downButton.setEnabled(false);
}
项目:Hydrograph    文件:LookupMapDialog.java   
private Composite createOuterMostComposite(Composite container) {
    Composite composite = new Composite(container, SWT.NONE);
    GridLayout gl_composite = new GridLayout(2, false);
    gl_composite.verticalSpacing = 0;
    gl_composite.marginWidth = 0;
    gl_composite.marginHeight = 0;
    composite.setLayout(gl_composite);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1,
            1));
    return composite;
}
项目:gemoc-studio-modeldebugging    文件:NewViewPointProjectPage.java   
@Override
public void createControl(Composite parent) {
    final Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    composite.setLayout(layout);

    final ModifyListener listener = new ModifyListener() {

        @Override
        public void modifyText(ModifyEvent e) {
            setPageComplete(isSet(diagramNameText)
                    && isSet(projectNameText) && isSet(viewpointNameText)
                    && isSet(viewpointSpecificationModelText));
        }

        private boolean isSet(Text text) {
            return text != null && !"".equals(text.getText());
        }

    };
    projectNameText = createProjectNameComposite(composite, listener);
    viewpointSpecificationModelText = createViewpointSpecificationModelNameComposite(
            composite, listener);
    viewpointNameText = createViewpointNameComposite(composite, listener);
    diagramNameText = createDiagramNameComposite(composite, listener);

    setControl(composite);
    setPageComplete(true);
}
项目:bdf2    文件:DbTableRelationDialog.java   
private void createControl(Composite container) {
    GridLayout layout = new GridLayout();
    container.setLayout(layout);
    layout.numColumns = 3;
    layout.verticalSpacing = 10;
    layout.marginTop = 10;
    layout.marginWidth = 10;
    this.constraintNameText = createFieldControl(container, "约束名称:");
    this.pkColumnNameText = createFieldControl(container, "主键名称:");
    this.fkColumnNameText = createFieldControl(container, "外键名称:");
    this.typeCombo = createTypeComboControl(container, "对应关系:");
    initControlData();
    addListeners();
}
项目:SimQRI    文件:GaussianPropertiesEditionPartImpl.java   
/**
 * 
 */
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;
}
项目:SimQRI    文件:SupplierPropertiesEditionPartForm.java   
/**
 * 
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
    Section propertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
    propertiesSection.setText(MetamodelMessages.SupplierPropertiesEditionPart_PropertiesGroupLabel);
    GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
    propertiesSectionData.horizontalSpan = 3;
    propertiesSection.setLayoutData(propertiesSectionData);
    Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
    GridLayout propertiesGroupLayout = new GridLayout();
    propertiesGroupLayout.numColumns = 3;
    propertiesGroup.setLayout(propertiesGroupLayout);
    propertiesSection.setClient(propertiesGroup);
    return propertiesGroup;
}
项目:pandionj    文件:FrameView.java   
FrameView(Composite parent) {
    super(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    setLayout(layout);
    setBackground(ColorConstants.white);
    header = new Label(this, SWT.BORDER);
    header.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));

    FontManager.setFont(header, Constants.MESSAGE_FONT_SIZE);

    viewer = new FrameViewer(this);

    slider = new Slider(this, SWT.HORIZONTAL | SWT.BORDER);
    slider.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));

    slider.setMinimum(1);
    slider.setMaximum(1);
    slider.setIncrement(1);
    slider.addSelectionListener(new SelectionAdapter() {
        int sel = slider.getSelection();
        @Override
        public void widgetSelected(SelectionEvent e) {
            if(slider.getSelection() != sel) {
                model.setStep(slider.getSelection()-1);
                sel = slider.getSelection();
                PandionJUI.navigateToLine(model.getSourceFile(), model.getStepLine());
                //              slider.setToolTipText(slider.getSelection() + "/" + slider.getMaximum());
            }
        }
    });
    slider.setVisible(false);
}
项目:time4sys    文件:ResultContainerPropertiesEditionPartImpl.java   
/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
    Group propertiesGroup = new Group(parent, SWT.NONE);
    propertiesGroup.setText(AnalysisMessages.ResultContainerPropertiesEditionPart_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;
}
项目:pgsqlblocks    文件:DBProcessesView.java   
public DBProcessesView(Composite parent, int style) {
    super(parent, style);
    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
    setLayout(layout);
    setLayoutData(layoutData);
    createContent();
}
项目:SimQRI    文件:LogNormalPropertiesEditionPartForm.java   
/**
 * 
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
    Section propertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
    propertiesSection.setText(MetamodelMessages.LogNormalPropertiesEditionPart_PropertiesGroupLabel);
    GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
    propertiesSectionData.horizontalSpan = 3;
    propertiesSection.setLayoutData(propertiesSectionData);
    Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
    GridLayout propertiesGroupLayout = new GridLayout();
    propertiesGroupLayout.numColumns = 3;
    propertiesGroup.setLayout(propertiesGroupLayout);
    propertiesSection.setClient(propertiesGroup);
    return propertiesGroup;
}
项目:convertigo-eclipse    文件:ProjectChooseTestCasesDialog.java   
@Override
protected Control createDialogArea(Composite parent) {
    Composite composite = (Composite) super.createDialogArea(parent);
    final GridLayout gridLayout = new GridLayout();
    composite.setLayout(gridLayout);

    try {
        dlgComposite = new ProjectChooseTestCasesDialogComposite(composite, SWT.FILL, project);
        listTCSequence = dlgComposite.getListTCSequence();          
        listTCTransaction = dlgComposite.getListTCTransaction();    

    } catch (Exception e) {};

    return composite;
}
项目:eclipse-jenkins-editor    文件:JenkinsEditorPreferencePage.java   
protected void createOtherFieldEditors(Composite appearanceComposite) {
    /* OTHER */
    Composite otherComposite = new Composite(appearanceComposite, SWT.NONE);
    GridLayout otherLayout = new GridLayout();
    otherLayout.marginWidth = 0;
    otherLayout.marginHeight = 0;
    otherComposite.setLayout(otherLayout);

    /* linking with outline */
    linkEditorWithOutline = new BooleanFieldEditor(P_LINK_OUTLINE_WITH_EDITOR.getId(),
            "New opened editors are linked with outline", otherComposite);
    linkEditorWithOutline.getDescriptionControl(otherComposite)
            .setToolTipText("Via this setting the default behaviour for new opened outlines is set");
    addField(linkEditorWithOutline);
}
项目:gw4e.project    文件:TemplateComposite.java   
@Override
protected Control createDialogArea(Composite parent) {
    Composite area = (Composite) super.createDialogArea(parent);
    Composite container = new Composite(area, SWT.NONE);
    container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    GridLayout layout = new GridLayout(2, false);
    container.setLayout(layout);

    createFirstName(container);
    return area;
}
项目:time4sys    文件:ComputingResourcePropertiesEditionPartImpl.java   
/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
    Group propertiesGroup = new Group(parent, SWT.NONE);
    propertiesGroup.setText(AnalysisMessages.ComputingResourcePropertiesEditionPart_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;
}
项目:BiglyBT    文件:DHTView.java   
public void initialize(Composite composite) {
if ( auto_dht ){
    CoreFactory.addCoreRunningListener(new CoreRunningListener() {

            @Override
            public void coreRunning(Core core) {
                DHTView.this.core = core;
                init(core);
            }
        });
}

    panel = new Composite(composite,SWT.NULL);
   GridLayout layout = new GridLayout();
   layout.numColumns = 2;
   panel.setLayout(layout);

   yes_str = MessageText.getString( "Button.yes").replaceAll("&", "");
   no_str   = MessageText.getString( "Button.no").replaceAll("&", "");

   initialiseGeneralGroup();
   initialiseDBGroup();

   initialiseTransportDetailsGroup();
   initialiseOperationDetailsGroup();

   initialiseActivityGroup();
 }
项目:time4sys    文件:GeneralPropertiesEditionPartImpl.java   
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
 *      createFigure(org.eclipse.swt.widgets.Composite)
 * 
 */
public Composite createFigure(final Composite parent) {
    view = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    view.setLayout(layout);
    createControls(view);
    return view;
}
项目:SimQRI    文件:StoragePropertiesEditionPartForm.java   
/**
 * 
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
    Section propertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
    propertiesSection.setText(MetamodelMessages.StoragePropertiesEditionPart_PropertiesGroupLabel);
    GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
    propertiesSectionData.horizontalSpan = 3;
    propertiesSection.setLayoutData(propertiesSectionData);
    Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
    GridLayout propertiesGroupLayout = new GridLayout();
    propertiesGroupLayout.numColumns = 3;
    propertiesGroup.setLayout(propertiesGroupLayout);
    propertiesSection.setClient(propertiesGroup);
    return propertiesGroup;
}