Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FormData


    Composite wPanel = new Composite(wBottomFolder, SWT.NONE);
    wPanel.setLayout(new FormLayout());
    props.setLook(wPanel);

    FormData fdPanel = new FormData();
    fdPanel.left = new FormAttachment(0, 0);
    fdPanel.top = new FormAttachment(0, 0);
    fdPanel.right = new FormAttachment(100, 0);
    fdPanel.bottom = new FormAttachment(100, 0);
    wPanel.setLayoutData(fdPanel);

    outFieldsItem.setControl(wPanel);

    wClearInputFields = new Button(wPanel, SWT.CHECK);
    wClearInputFields.setText(BaseMessages.getString(PKG, "RubyStepDialog.ClearFields.Label")); //$NON-NLS-1$
    props.setLook(wClearInputFields);
    FormData fdClearResultFields = new FormData();
    fdClearResultFields.right = new FormAttachment(100, 0);
    fdClearResultFields.bottom = new FormAttachment(100, 0);
    wClearInputFields.setLayoutData(fdClearResultFields);

    final int fieldsRows = input.getOutputFields().size();

    ColumnInfo[] colinf = new ColumnInfo[] {
        new ColumnInfo(BaseMessages.getString(PKG, "RubyStepDialog.ColumnInfo.Fieldname"), ColumnInfo.COLUMN_TYPE_TEXT, false), //$NON-NLS-1$
        new ColumnInfo(BaseMessages.getString(PKG, "RubyStepDialog.ColumnInfo.Type"), ColumnInfo.COLUMN_TYPE_CCOMBO, ValueMeta.getTypes()), //$NON-NLS-1$
        new ColumnInfo(BaseMessages.getString(PKG, "RubyStepDialog.ColumnInfo.UpdateExisting"), ColumnInfo.COLUMN_TYPE_CCOMBO, NO_YES) //$NON-NLS-1$
    };

    wFields = new TableView(transMeta, wPanel, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI, colinf, fieldsRows, lsMod, props);

    FormData fdFields = new FormData();
    fdFields.left = new FormAttachment(0, 0);
    fdFields.top = new FormAttachment(0, 0);
    fdFields.right = new FormAttachment(100, 0);
    fdFields.bottom = new FormAttachment(wClearInputFields, -margin);
    wFields.setLayoutData(fdFields);
View Full Code Here


    Composite wPanel = new Composite(wBottomFolder, SWT.NONE);
    wPanel.setLayout(new FormLayout());
    props.setLook(wPanel);

    FormData fdPanel = new FormData();
    fdPanel.left = new FormAttachment(0, 0);
    fdPanel.top = new FormAttachment(0, 0);
    fdPanel.right = new FormAttachment(100, 0);
    fdPanel.bottom = new FormAttachment(100, 0);
    wPanel.setLayoutData(fdPanel);

    infoStepsItem.setControl(wPanel);

    final int nrRows = input.getInfoSteps().size();

    ColumnInfo[] colinf = new ColumnInfo[] {
        new ColumnInfo(BaseMessages.getString(PKG, "RubyStepDialog.ColumnInfo.InfoStepTag"), ColumnInfo.COLUMN_TYPE_TEXT, false), //$NON-NLS-1$
        new ColumnInfo(BaseMessages.getString(PKG, "RubyStepDialog.ColumnInfo.InfoStepName"), ColumnInfo.COLUMN_TYPE_CCOMBO, prevStepNames), //$NON-NLS-1$
    };

    wInfoSteps = new TableView(transMeta, wPanel, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI, colinf, nrRows, lsMod, props);

    FormData fdFields = new FormData();
    fdFields.left = new FormAttachment(0, 0);
    fdFields.top = new FormAttachment(0, 0);
    fdFields.right = new FormAttachment(100, 0);
    fdFields.bottom = new FormAttachment(100, 0);
    wInfoSteps.setLayoutData(fdFields);
View Full Code Here

    Composite wPanel = new Composite(wBottomFolder, SWT.NONE);
    wPanel.setLayout(new FormLayout());
    props.setLook(wPanel);

    FormData fdPanel = new FormData();
    fdPanel.left = new FormAttachment(0, 0);
    fdPanel.top = new FormAttachment(0, 0);
    fdPanel.right = new FormAttachment(100, 0);
    fdPanel.bottom = new FormAttachment(100, 0);
    wPanel.setLayoutData(fdPanel);

    targetStepsItem.setControl(wPanel);

    final int nrRows = input.getTargetSteps().size();

    ColumnInfo[] colinf = new ColumnInfo[] {
        new ColumnInfo(BaseMessages.getString(PKG, "RubyStepDialog.ColumnInfo.TargetStepTag"), ColumnInfo.COLUMN_TYPE_TEXT, false), //$NON-NLS-1$
        new ColumnInfo(BaseMessages.getString(PKG, "RubyStepDialog.ColumnInfo.TargetStepName"), ColumnInfo.COLUMN_TYPE_CCOMBO, nextStepNames), //$NON-NLS-1$
    };

    wTargetSteps = new TableView(transMeta, wPanel, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI, colinf, nrRows, lsMod, props);

    FormData fdFields = new FormData();
    fdFields.left = new FormAttachment(0, 0);
    fdFields.top = new FormAttachment(0, 0);
    fdFields.right = new FormAttachment(100, 0);
    fdFields.bottom = new FormAttachment(100, 0);
    wTargetSteps.setLayoutData(fdFields);
View Full Code Here

        }

      }
    });

    FormData fdTree = new FormData();
    fdTree.left = new FormAttachment(0, 0);
    fdTree.top = new FormAttachment(0, 0);
    fdTree.right = new FormAttachment(100, 0);
    fdTree.bottom = new FormAttachment(100, 0);
    wTree.setLayoutData(fdTree);

    FormData fdPanel = new FormData();
    fdPanel.left = new FormAttachment(0, 0);
    fdPanel.top = new FormAttachment(0, 0);
    fdPanel.right = new FormAttachment(100, 0);
    fdPanel.bottom = new FormAttachment(100, 0);
    wPanel.setLayoutData(fdPanel);
View Full Code Here

    Label lRubyCompat = new Label(wPanel, SWT.RIGHT);
    lRubyCompat.setText(BaseMessages.getString(PKG, "RubyStepDialog.ExecutionModel.Compatibility"));
    props.setLook(lRubyCompat);

    FormData fdlRubyCompat = new FormData();
    fdlRubyCompat.left = new FormAttachment(0, 0);
    fdlRubyCompat.right = new FormAttachment(middle, -margin);
    fdlRubyCompat.top = new FormAttachment(0, margin);
    lRubyCompat.setLayoutData(fdlRubyCompat);

    wRubyCompat = new CCombo(wPanel, SWT.READ_ONLY | SWT.BORDER);
    wRubyCompat.setItems(new String[] { "Ruby 1.8", "Ruby 1.9" });

    props.setLook(wRubyCompat);

    FormData fdRubyCompat = new FormData();
    fdRubyCompat.left = new FormAttachment(middle, 0);
    fdRubyCompat.top = new FormAttachment(0, margin);
    wRubyCompat.setLayoutData(fdRubyCompat);

    wRubyCompat.addSelectionListener(new SelectionAdapter() {

      @Override
      public void widgetSelected(SelectionEvent e) {
        RubyVersion newVersion = wRubyCompat.getSelectionIndex() == 0 ? RubyVersion.RUBY_1_8 : RubyVersion.RUBY_1_9;
        syntaxHighlighter.newRubyVersionSelected(newVersion);
        parseErrorHelper.newRubyVersionSelected(newVersion);
        input.setChanged();
        changedInDialog = true;
      }
    });

    // add gem home folder entry

    Label lGemHome = new Label(wPanel, SWT.RIGHT);
    lGemHome.setText(BaseMessages.getString(PKG, "RubyStepDialog.ExecutionModel.GemHome"));
    props.setLook(lGemHome);
    FormData fdlGemHome = new FormData();
    fdlGemHome.left = new FormAttachment(0, 0);
    fdlGemHome.right = new FormAttachment(middle, -margin);
    fdlGemHome.top = new FormAttachment(wRubyCompat, margin);
    lGemHome.setLayoutData(fdlGemHome);

    wGemHome = new TextVar(transMeta, wPanel, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
    wGemHome.setText(input.getGemHome());
    props.setLook(wGemHome);
    wGemHome.addModifyListener(lsMod);
    FormData fdGemHome = new FormData();
    fdGemHome.left = new FormAttachment(middle, 0);
    fdGemHome.top = new FormAttachment(wRubyCompat, margin);
    fdGemHome.right = new FormAttachment(100, -margin);
    wGemHome.setLayoutData(fdGemHome);
View Full Code Here

    });

    wScriptToolBar.pack();

    // layout toolbar
    FormData fdBar = new FormData();
    fdBar.left = new FormAttachment(0, 0);
    fdBar.bottom = new FormAttachment(100, 0);
    wScriptToolBar.setLayoutData(fdBar);

    // layout scripts folder
    FormData fdFolder = new FormData();
    fdFolder.left = new FormAttachment(0, 0);
    fdFolder.right = new FormAttachment(100, 0);
    fdFolder.top = new FormAttachment(0, 0);
    fdFolder.bottom = new FormAttachment(wScriptToolBar, 0);
    wScriptsFolder.setLayoutData(fdFolder);

    // editing position label
    wlEditingPosition = new Label(wTopRight, SWT.RIGHT);
    wlEditingPosition.setText("0 : 0 ");
    props.setLook(wlEditingPosition);

    FormData fdPos = new FormData();
    fdPos.left = new FormAttachment(100, -60);
    fdPos.right = new FormAttachment(100, -margin);
    fdPos.bottom = new FormAttachment(100, -margin + 1);
    wlEditingPosition.setLayoutData(fdPos);

    // syntax check result label
    wlSyntaxCheck = new Label(wTopRight, SWT.LEFT);
    wlSyntaxCheck.setText("");
    FormData fdSyntaxCheck = new FormData();
    fdSyntaxCheck.left = new FormAttachment(wScriptToolBar, margin);
    fdSyntaxCheck.bottom = new FormAttachment(100, -margin + 1);
    fdSyntaxCheck.right = new FormAttachment(wlEditingPosition, -margin);
    wlSyntaxCheck.setLayoutData(fdSyntaxCheck);
    props.setLook(wlSyntaxCheck);
View Full Code Here

    addFieldSummaryTab();
    addSamplesTab();

    // layout tab folder below the label
    FormData fdLeftFolder = new FormData();
    fdLeftFolder.left = new FormAttachment(0, 0);
    fdLeftFolder.top = new FormAttachment(0, 0);
    fdLeftFolder.right = new FormAttachment(100, 0);
    fdLeftFolder.bottom = new FormAttachment(100, 0);
    wLeftFolder.setLayoutData(fdLeftFolder);
View Full Code Here

        final Composite sourceComposite = new Composite(tabFolder, SWT.NONE);
        sourceComposite.setLayout(new FormLayout());
        sourceComposite.setBounds(0, 0, 443, 305);
        sourceTab.setControl(sourceComposite);
        Label lblSourceFoldersIn;
        FormData formData_2;
        {
            lblSourceFoldersIn = new Label(sourceComposite, SWT.NONE);
            {
                formData_2 = new FormData();
                formData_2.right = new FormAttachment(100);
                formData_2.left = new FormAttachment(0, 8);
                lblSourceFoldersIn.setLayoutData(formData_2);
            }
            lblSourceFoldersIn.setText("Source folders in the project:");
        }
        Button btnFolder;
        FormData formData_5;
        {
            btnFolder = new Button(sourceComposite, SWT.NONE);
            formData_2.bottom = new FormAttachment(btnFolder, -6);
            {
                formData_5 = new FormData();
                formData_5.right = new FormAttachment(100);
                formData_5.width = 84;
                btnFolder.setLayoutData(formData_5);
            }
            btnFolder.setText("Add folder...");
        }
        Button btnSource;
        {
            btnSource = new Button(sourceComposite, SWT.NONE);
            formData_5.bottom = new FormAttachment(btnSource, -6);
            btnSource.setEnabled(false);
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(100);
                formData.top = new FormAttachment(0, 62);
                formData.width = 84;
                btnSource.setLayoutData(formData);
            }
            btnSource.setText("Link source...");
        }
        Button btnEdit;
        FormData formData_4;
        {
            btnEdit = new Button(sourceComposite, SWT.NONE);
            {
                formData_4 = new FormData();
                formData_4.right = new FormAttachment(100);
                formData_4.width = 84;
                btnEdit.setLayoutData(formData_4);
            }
            btnEdit.setText("Edit...");
        }
        Button btnRemove;
        {
            btnRemove = new Button(sourceComposite, SWT.NONE);
            formData_4.bottom = new FormAttachment(btnRemove, -6);
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(100);
                formData.width = 84;
                formData.top = new FormAttachment(0, 134);
                btnRemove.setLayoutData(formData);
            }
            btnRemove.setText("Remove");
        }
        Button btnAllowOutputFolders;
        FormData formData_6;
        {
            btnAllowOutputFolders = new Button(sourceComposite, SWT.CHECK);
            {
                formData_6 = new FormData();
                formData_6.left = new FormAttachment(0, 10);
                btnAllowOutputFolders.setLayoutData(formData_6);
            }
            btnAllowOutputFolders.setText("Allow output folders for source folders");
        }
        Text output_text;
        FormData formData_3;
        {
            output_text = new Text(sourceComposite, SWT.BORDER);
            formData_6.bottom = new FormAttachment(output_text, -6);
            {
                formData_3 = new FormData();
                formData_3.left = new FormAttachment(0, 10);
                output_text.setLayoutData(formData_3);
            }
        }
        Button btnBrowse;
        {
            btnBrowse = new Button(sourceComposite, SWT.NONE);
            formData_3.right = new FormAttachment(btnBrowse, -6);
            formData_3.top = new FormAttachment(0, 268);
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(100);
                formData.width = 84;
                formData.bottom = new FormAttachment(output_text, 0, SWT.BOTTOM);
                btnBrowse.setLayoutData(formData);
            }
            btnBrowse.setText("Browse...");
        }
        {
            final TreeViewer treeViewer = new TreeViewer(sourceComposite, SWT.BORDER);
            final Tree sources_tree = treeViewer.getTree();
            {
                final FormData formData = new FormData();
                formData.left = new FormAttachment(0, 10);
                formData.right = new FormAttachment(btnSource, -6);
                formData.top = new FormAttachment(lblSourceFoldersIn, 6);
                formData.bottom = new FormAttachment(btnAllowOutputFolders, -6);
                sources_tree.setLayoutData(formData);
            }
        }

        final Button btnWhenCleaningDelete = new Button(sourceComposite, SWT.CHECK);
        final FormData fd_btnWhenCleaningDelete = new FormData();
        fd_btnWhenCleaningDelete.top = new FormAttachment(output_text, 6);
        fd_btnWhenCleaningDelete.left = new FormAttachment(lblSourceFoldersIn, 0,
                SWT.LEFT);
        btnWhenCleaningDelete.setLayoutData(fd_btnWhenCleaningDelete);
        btnWhenCleaningDelete
                .setText("When cleaning, delete the whole output directory (faster)");
        sourceComposite.setTabList(new Control[] { btnFolder, btnSource, btnEdit,
                btnRemove, btnAllowOutputFolders, output_text, btnBrowse });

        final TabItem includeTab = new TabItem(tabFolder, SWT.NONE);
        includeTab.setText("Include");

        final Composite includeComposite = new Composite(tabFolder, SWT.NONE);
        includeComposite.setLayout(new FormLayout());
        includeComposite.setBounds(0, 0, 443, 305);
        includeTab.setControl(includeComposite);

        final Label lblFoldersWithInclude = new Label(includeComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.right = new FormAttachment(100, -10);
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblFoldersWithInclude.setLayoutData(formData);
        }
        lblFoldersWithInclude.setText("Folders with include files:");

        final Button btnAddFolder = new Button(includeComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(lblFoldersWithInclude, 9);
            formData.right = new FormAttachment(lblFoldersWithInclude, 0, SWT.RIGHT);
            btnAddFolder.setLayoutData(formData);
        }
        btnAddFolder.setText("Add folder...");

        final Button btnEdit_1 = new Button(includeComposite, SWT.NONE);
        FormData formData_1;
        {
            formData_1 = new FormData();
            formData_1.right = new FormAttachment(lblFoldersWithInclude, 0, SWT.RIGHT);
            formData_1.width = 77;
            btnEdit_1.setLayoutData(formData_1);
        }
        btnEdit_1.setText("Edit...");

        final Button btnRemove_1 = new Button(includeComposite, SWT.NONE);
        formData_1.bottom = new FormAttachment(100, -216);
        {
            final FormData formData_7 = new FormData();
            formData_7.top = new FormAttachment(btnEdit_1, 7);
            formData_7.right = new FormAttachment(lblFoldersWithInclude, 0, SWT.RIGHT);
            formData_7.width = 77;
            btnRemove_1.setLayoutData(formData_7);
        }
        btnRemove_1.setText("Remove");
        {
            final ListViewer listViewer = new ListViewer(includeComposite, SWT.BORDER);
            final org.eclipse.swt.widgets.List includes_list = listViewer.getList();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(btnAddFolder, -6);
                formData.left = new FormAttachment(0, 10);
                formData.bottom = new FormAttachment(100, -10);
                formData.top = new FormAttachment(lblFoldersWithInclude, 6);
                includes_list.setLayoutData(formData);
            }
        }

        final TabItem projectsTab = new TabItem(tabFolder, SWT.NONE);
        projectsTab.setText("Projects");

        final Composite dependenciesComposite = new Composite(tabFolder, SWT.NONE);
        dependenciesComposite.setLayout(new FormLayout());
        projectsTab.setControl(dependenciesComposite);

        final Label lblProjectsOnThe = new Label(dependenciesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.right = new FormAttachment(100, -10);
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblProjectsOnThe.setLayoutData(formData);
        }
        lblProjectsOnThe.setText("Required projects on the build path:");

        final Button button = new Button(dependenciesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(lblProjectsOnThe, 6);
            formData.right = new FormAttachment(lblProjectsOnThe, 0, SWT.RIGHT);
            button.setLayoutData(formData);
        }
        button.setText("New Button");

        final Button button_1 = new Button(dependenciesComposite, SWT.NONE);
        FormData formData_8;
        {
            formData_8 = new FormData();
            formData_8.right = new FormAttachment(lblProjectsOnThe, 0, SWT.RIGHT);
            button_1.setLayoutData(formData_8);
        }
        button_1.setText("New Button");

        final Button button_2 = new Button(dependenciesComposite, SWT.NONE);
        formData_8.bottom = new FormAttachment(button_2, -6);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(0, 110);
            formData.right = new FormAttachment(lblProjectsOnThe, 0, SWT.RIGHT);
            button_2.setLayoutData(formData);
        }
        button_2.setText("New Button");
        {
            final ListViewer listViewer = new ListViewer(dependenciesComposite,
                    SWT.BORDER);
            final org.eclipse.swt.widgets.List projects_list = listViewer.getList();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(button, -6);
                formData.left = new FormAttachment(0, 10);
                formData.bottom = new FormAttachment(100, -6);
                formData.top = new FormAttachment(lblProjectsOnThe, 6);
                projects_list.setLayoutData(formData);
            }
        }

        final Collection<RuntimeInfo> rs = BackendCore.getRuntimeInfoCatalog()
                .getRuntimes();
        final List<String[]> vv = new ArrayList<String[]>();
        for (final RuntimeInfo ri : rs) {
            vv.add(new String[] { ri.getName(), ri.getName() });
        }
        @SuppressWarnings("unused")
        final String[][] values = vv.toArray(new String[][] {});

        final TabItem librariesTab = new TabItem(tabFolder, SWT.NONE);
        librariesTab.setText("Libraries");

        final Composite librariesComposite = new Composite(tabFolder, SWT.NONE);
        librariesComposite.setLayout(new FormLayout());
        librariesTab.setControl(librariesComposite);

        final Label lblExternalLibrariesRequired = new Label(librariesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.right = new FormAttachment(100, -10);
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblExternalLibrariesRequired.setLayoutData(formData);
        }
        lblExternalLibrariesRequired
                .setText("External libraries required on build path:");

        final Button button_3 = new Button(librariesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(lblExternalLibrariesRequired, 6);
            formData.right = new FormAttachment(100, -10);
            button_3.setLayoutData(formData);
        }
        button_3.setText("New Button");

        final Button button_4 = new Button(librariesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(button_3, 6);
            formData.right = new FormAttachment(lblExternalLibrariesRequired, 0,
                    SWT.RIGHT);
            button_4.setLayoutData(formData);
        }
        button_4.setText("New Button");

        final Button button_5 = new Button(librariesComposite, SWT.NONE);
        FormData formData_9;
        {
            formData_9 = new FormData();
            formData_9.right = new FormAttachment(lblExternalLibrariesRequired, 0,
                    SWT.RIGHT);
            button_5.setLayoutData(formData_9);
        }
        button_5.setText("New Button");

        final Button button_6 = new Button(librariesComposite, SWT.NONE);
        formData_9.bottom = new FormAttachment(100, -226);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(button_5, 6);
            formData.right = new FormAttachment(lblExternalLibrariesRequired, 0,
                    SWT.RIGHT);
            button_6.setLayoutData(formData);
        }
        button_6.setText("New Button");
        {
            final TreeViewer treeViewer = new TreeViewer(librariesComposite, SWT.BORDER);
            final Tree libraries_tree = treeViewer.getTree();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(button_3, -6);
                formData.left = new FormAttachment(0, 10);
                formData.top = new FormAttachment(lblExternalLibrariesRequired, 4);
                formData.bottom = new FormAttachment(100, -10);
                libraries_tree.setLayoutData(formData);
            }
        }

        final TabItem orderTab = new TabItem(tabFolder, SWT.NONE);
        orderTab.setText("Codepath order");

        final Composite codepathComposite = new Composite(tabFolder, SWT.NONE);
        codepathComposite.setLayout(new FormLayout());
        orderTab.setControl(codepathComposite);

        final Label lblOrderOfThe = new Label(codepathComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.right = new FormAttachment(100, -10);
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblOrderOfThe.setLayoutData(formData);
        }
        lblOrderOfThe.setText("Order of the dependencies on runtime code path:");

        final Button button_7 = new Button(codepathComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(lblOrderOfThe, 6);
            formData.right = new FormAttachment(lblOrderOfThe, 0, SWT.RIGHT);
            button_7.setLayoutData(formData);
        }
        button_7.setText("New Button");

        final Button button_8 = new Button(codepathComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(button_7, 6);
            formData.right = new FormAttachment(lblOrderOfThe, 0, SWT.RIGHT);
            button_8.setLayoutData(formData);
        }
        button_8.setText("New Button");
        {
            final ListViewer listViewer = new ListViewer(codepathComposite, SWT.BORDER);
            final org.eclipse.swt.widgets.List codepath_list = listViewer.getList();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(button_7, -6);
                formData.left = new FormAttachment(0, 10);
                formData.bottom = new FormAttachment(100, -10);
                formData.top = new FormAttachment(lblOrderOfThe, 6);
                codepath_list.setLayoutData(formData);
            }
        }

        final TabItem tbtmPreprocessor = new TabItem(tabFolder, SWT.NONE);
        tbtmPreprocessor.setText("Preprocessor");

        final Composite composite_1 = new Composite(tabFolder, SWT.NONE);
        composite_1.setLayout(new FormLayout());
        tbtmPreprocessor.setControl(composite_1);

        final Label lblMacrosDefinedFor = new Label(composite_1, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblMacrosDefinedFor.setLayoutData(formData);
        }
        lblMacrosDefinedFor.setText("Macros defined for this project");

        final Button button_9 = new Button(composite_1, SWT.NONE);
        {
            final FormData formData_10 = new FormData();
            formData_10.top = new FormAttachment(0, 31);
            formData_10.right = new FormAttachment(100, -10);
            button_9.setLayoutData(formData_10);
        }
        button_9.setText("New Button");

        final Button button_10 = new Button(composite_1, SWT.NONE);
        FormData formData_12;
        {
            formData_12 = new FormData();
            formData_12.right = new FormAttachment(button_9, 0, SWT.RIGHT);
            button_10.setLayoutData(formData_12);
        }
        button_10.setText("New Button");

        final Button button_11 = new Button(composite_1, SWT.NONE);
        formData_12.bottom = new FormAttachment(100, -262);
        {
            final FormData formData_11 = new FormData();
            formData_11.top = new FormAttachment(button_10, 6);
            formData_11.right = new FormAttachment(button_9, 0, SWT.RIGHT);
            button_11.setLayoutData(formData_11);
        }
        button_11.setText("New Button");
        {
            final ListViewer listViewer = new ListViewer(composite_1, SWT.BORDER);
            final org.eclipse.swt.widgets.List macros_list = listViewer.getList();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(button_9, -6);
                formData.left = new FormAttachment(0, 10);
                formData.bottom = new FormAttachment(100, -10);
                formData.top = new FormAttachment(lblMacrosDefinedFor, 6);
                macros_list.setLayoutData(formData);
View Full Code Here

        source.setEnabled(true);
        include.setEnabled(true);
        test.setEnabled(false); // TODO fix when testing works

        discoverBtn = new Button(composite, SWT.PUSH);
        FormData fd_discoverBtn;
        {
            fd_discoverBtn = new FormData();
            fd_discoverBtn.bottom = new FormAttachment(100, -96);
            fd_discoverBtn.right = new FormAttachment(100, -10);
            discoverBtn.setLayoutData(fd_discoverBtn);
        }
        discoverBtn.setToolTipText("Tries to guess the project's configuration \n"
View Full Code Here

        final Composite composite = parent;

        final String resourceString4 = "External modules file";
        final Label label = new Label(composite, SWT.NONE);
        {
            final FormData fd_label = new FormData();
            fd_label.top = new FormAttachment(0, 207);
            fd_label.left = new FormAttachment(0, 5);
            label.setLayoutData(fd_label);
        }
        label.setBackground(SWTResourceManager.getColor(255, 255, 183));
        label.setText(resourceString4 + ":");
        externalModules = new Text(composite, SWT.BORDER);
        {
            final FormData fd_externalModules = new FormData();
            fd_externalModules.right = new FormAttachment(0, 477);
            fd_externalModules.top = new FormAttachment(0, 202);
            fd_externalModules.left = new FormAttachment(0, 141);
            externalModules.setLayoutData(fd_externalModules);
        }
        externalModules.setToolTipText("enter a list of folders");
        externalModules.setText(info.getExternalModulesFile());
        externalModules.addModifyListener(new ModifyListener() {
            @Override
            public void modifyText(final ModifyEvent e) {
                info.setExternalModulesFile(externalModules.getText());
            }
        });
        externalModulesBrowse = new Button(composite, SWT.NONE);
        {
            final FormData fd_externalModulesBrowse = new FormData();
            fd_externalModulesBrowse.top = new FormAttachment(0, 203);
            fd_externalModulesBrowse.left = new FormAttachment(0, 482);
            externalModulesBrowse.setLayoutData(fd_externalModulesBrowse);
        }
        externalModulesBrowse.setText("Browse...");
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.FormData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.