Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowLayout


    // createStandaloneCommandArea(client);

    buttonComposite = toolkit.createComposite(client);
    GridDataFactory.fillDefaults().span(2, 1).applyTo(buttonComposite);

    RowLayout layout = RowLayoutFactory.fillDefaults().margins(0, 5).wrap(false).create();
    layout.center = true;
    buttonComposite.setLayout(layout);

    startAppButton = toolkit.createButton(buttonComposite, Messages.ApplicationDetailsPart_TEXT_START, SWT.PUSH);
    startAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_START));
View Full Code Here


                SWT.RADIO);
        data = new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1);
        quickLocalInstallButton.setLayoutData(data);

        actionArea = toolkit.createComposite(composite);
        RowLayout actionAreaLayout = new RowLayout();
        actionAreaLayout.center = true;
        actionArea.setLayout(actionAreaLayout);

        supportBundleVersionLabel = toolkit.createLabel(actionArea, "");
        installOrUpdateSupportBundleLink = toolkit.createHyperlink(actionArea, "(Install)", SWT.NONE);
View Full Code Here

        root.setLayout(layout);

        final Composite container = new Composite(root, SWT.NULL);
        gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
        container.setLayoutData(gd);
        final RowLayout rlayout = new RowLayout(SWT.HORIZONTAL);
        rlayout.fill = true;
        container.setLayout(rlayout);

        createTable(container);
        createButtons(container);
View Full Code Here

    }

    private void createButtonsPanel(final Composite parent) {
        buttonsPanel = new Composite(parent, SWT.NONE);
        buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        buttonsPanel.setLayout(new RowLayout());

        // "Previous" button
        previousButton = new Button(buttonsPanel, SWT.PUSH | SWT.CENTER);
        previousButton.setToolTipText("Show previous trace set");
        previousButton.setImage(PlatformUI.getWorkbench().getSharedImages()
View Full Code Here

        }
    }

    private Composite createProcessCheckBoxes(final Composite parent) {
        final Composite container = new Composite(parent, SWT.NONE);
        container.setLayout(new RowLayout());

        TraceBackend.getInstance().removeAllProcessFlag();

        for (final ProcessFlag flag : ProcessFlag.values()) {
            final Button button = new Button(container, SWT.CHECK);
View Full Code Here

        createFunctionsTable(container);
    }

    private void createPatternButtonsPanel(final Composite parent) {
        final Composite container = new Composite(parent, SWT.NONE);
        container.setLayout(new RowLayout());

        // "Add" button
        Button button = new Button(container, SWT.PUSH | SWT.CENTER);
        button.setText("New pattern");
        button.setToolTipText("Add new trace pattern");
View Full Code Here

        createNodesTable(container);
    }

    private void createNodeButtonsPanel(final Composite parent) {
        final Composite container = new Composite(parent, SWT.NONE);
        container.setLayout(new RowLayout());

        // "Add" button
        Button button = new Button(container, SWT.PUSH | SWT.CENTER);
        button.setText("New node");
        button.setToolTipText("Add new node you want to trace");
View Full Code Here

    }

    private void createButtons(Composite parent) {
        Composite buttons = new Composite(parent, SWT.NONE);
        setBackground(buttons);
        RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
        rowLayout.wrap = true;
        rowLayout.pack = false;
        rowLayout.justify = false;
        rowLayout.marginLeft = 10;
        rowLayout.marginRight = 10;
View Full Code Here

        // gridData.horizontalAlignment = GridData.FILL;
        // gridData.horizontalSpan = 2;
        // selectionList.setLayoutData(gridData);

        // GridLayout layout = new GridLayout();
        final RowLayout layout = new RowLayout();
        layout.spacing = 5;
        layout.center = true;

        composite.setLayout(layout);
View Full Code Here

        shell.setLayout(new GridLayout(2, false));

        Group fieldGroup = new Group(shell, SWT.SHADOW_ETCHED_IN);
        fieldGroup.setText("Select fields to include:");
        fieldGroup.setLayout(new RowLayout(SWT.VERTICAL));
        GridData fieldGroupLayoutData = new GridData();
        fieldGroupLayoutData.verticalSpan = 2;
    fieldGroup.setLayoutData(fieldGroupLayoutData);

        List<IField> fields = generator.findAllFIelds(compilationUnit);
        final List<Button> fieldButtons = new ArrayList<Button>();
        for(IField field: fields) {
          Button button = new Button(fieldGroup, SWT.CHECK);
          button.setText(generator.getName(field) + "(" + generator.getType(field) + ")");
          button.setData(field);
          button.setSelection(true);
          fieldButtons.add(button);
        }

        Button btnSelectAll = new Button(shell, SWT.PUSH);
        btnSelectAll.setText("Select All");
        GridData btnSelectAllLayoutData = new GridData(SWT.FILL, SWT.FILL, true, false);
        btnSelectAllLayoutData.verticalIndent = 10;
    btnSelectAll.setLayoutData(btnSelectAllLayoutData);
        btnSelectAll.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent event) {
            for (Button button : fieldButtons) {
          button.setSelection(true);
        }
          }
        });
        Button btnSelectNone = new Button(shell, SWT.PUSH);
        btnSelectNone.setText("Deselect All");
        GridData selectNoneGridData = new GridData();
        selectNoneGridData.verticalAlignment = SWT.BEGINNING;
    btnSelectNone.setLayoutData(selectNoneGridData);
        btnSelectNone.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent event) {
            for (Button button : fieldButtons) {
          button.setSelection(false);
        }
          }
        });

        Group optionGroup = new Group(shell, SWT.SHADOW_ETCHED_IN);
        optionGroup.setText("Options:");
        optionGroup.setLayout(new RowLayout(SWT.VERTICAL));
        GridData optionGridData = new GridData();
        optionGridData.horizontalSpan = 2;
        optionGridData.horizontalAlignment = SWT.FILL;
    optionGroup.setLayoutData(optionGridData);
View Full Code Here

TOP

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

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.