Examples of TableWrapData


Examples of org.eclipse.ui.forms.widgets.TableWrapData

        layout.makeColumnsEqualWidth = false;
        layout.numColumns = 1;

        section.setLayout(layout);

        TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
        section.setLayoutData(data);
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        TableWrapLayout layout = new TableWrapLayout();
        layout.leftMargin = layout.rightMargin = toolkit.getBorderStyle() != SWT.NULL ? 0
            : 2;
        layout.numColumns = columns;
        client.setLayout(layout);
        client.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

        section.setClient(client);

        return client;
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        layout.makeColumnsEqualWidth = columnsSameWidth;
        layout.numColumns = columns;
        client.setLayout(layout);

        client.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

        section.setClient(client);

        return client;
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        parent.setLayout( twl );

        // Left Composite
        Composite leftComposite = toolkit.createComposite( parent );
        leftComposite.setLayout( new GridLayout() );
        TableWrapData leftCompositeTableWrapData = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
        leftCompositeTableWrapData.grabHorizontal = true;
        leftComposite.setLayoutData( leftCompositeTableWrapData );

        // Right Composite
        Composite rightComposite = toolkit.createComposite( parent );
        rightComposite.setLayout( new GridLayout() );
        TableWrapData rightCompositeTableWrapData = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
        rightCompositeTableWrapData.grabHorizontal = true;
        rightComposite.setLayoutData( rightCompositeTableWrapData );

        // Creating the sections
        createKerberosServerSection( toolkit, leftComposite );
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        // PresentationModel moduleIdModel = new
        // PresentationModel(moduleModel.getModel("moduleId"));

        toolkit.createLabel(client, "Organisation");
        Text org = toolkit.createText(client, "");
        org.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

        // SWTBindings.bind(org, moduleIdModel.getModel("organisation"), true);

        toolkit.createLabel(client, "Module");
        Text mod = toolkit.createText(client, "");
        mod.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
        // SWTBindings.bind(org, moduleIdModel.getModel("name"), true);

        toolkit.createLabel(client, "Status");
        Text status = toolkit.createText(client, "");
        status.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
        // SWTBindings.bind(org, moduleModel.getModel("status"), true);

        toolkit.paintBordersFor(client);
        section.setClient(client);
        TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB);
        td.colspan = 2;
        section.setLayoutData(td);
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        layout.numColumns = NUM_COLUMNS;
        client.setLayout(layout);

        toolkit.paintBordersFor(client);
        section.setClient(client);
        TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB);
        td.colspan = 2;
        section.setLayoutData(td);
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        Composite autoSelectOptionsComposite = this.toolkit.createComposite(autoSelectOptions);
        autoSelectOptionsComposite.setLayout(new TableWrapLayout());

        showShortestRootPath = this.toolkit
                .createButton(autoSelectOptionsComposite, "Shortest path to root", SWT.RADIO);
        showShortestRootPath.setLayoutData(new TableWrapData(TableWrapData.FILL));
        showShortestRootPath.setSelection(true);
        showShortestRootPath.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                view.setAutoSelectDecorator(new ShortestRootPathAlgorithm());
            }
        });

        showAllRootPaths = this.toolkit.createButton(autoSelectOptionsComposite, "All paths to root", SWT.RADIO);
        showAllRootPaths.setLayoutData(new TableWrapData(TableWrapData.FILL));
        showAllRootPaths.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                view.setAutoSelectDecorator(new AllRootPathsAlgorithm());
            }
        });

        showAllCallers = this.toolkit.createButton(autoSelectOptionsComposite, "All callers", SWT.RADIO);
        showAllCallers.setLayoutData(new TableWrapData(TableWrapData.FILL));
        showAllCallers.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                view.setAutoSelectDecorator(new AllCallersAlgorithm());
            }
        });

        showAllDependencies = this.toolkit.createButton(autoSelectOptionsComposite, "All dependencies", SWT.RADIO);
        showAllDependencies.setLayoutData(new TableWrapData(TableWrapData.FILL));
        showAllDependencies.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                view.setAutoSelectDecorator(new AllDependencyAlgorithm());
            }
        });

        showSameModuleId = this.toolkit.createButton(autoSelectOptionsComposite, "Other revisions", SWT.RADIO);
        showSameModuleId.setLayoutData(new TableWrapData(TableWrapData.FILL));
        showSameModuleId.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                view.setAutoSelectDecorator(new SameModuleIdAlgorithm());
            }
        });

        autoSelectOptions.setClient(autoSelectOptionsComposite);

        Section filterOptions = this.toolkit.createSection(controlComposite, Section.EXPANDED);
        filterOptions.setText("Filter Options");
        filterOptions.setLayout(new FillLayout());
        Composite filterOptionsComposite = this.toolkit.createComposite(filterOptions);
        filterOptionsComposite.setLayout(new TableWrapLayout());

        evictionFilterEnablement = this.toolkit.createButton(filterOptionsComposite, "Hide evicted nodes", SWT.CHECK);
        evictionFilterEnablement.setLayoutData(new TableWrapData(TableWrapData.FILL));
        evictionFilterEnablement.setSelection(true);
        evictionFilter.setEnabled(true);
        evictionFilterEnablement.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                if (evictionFilterEnablement.getSelection()) {
                    evictionFilter.setEnabled(true);
                    view.refresh();
                } else {
                    evictionFilter.setEnabled(false);
                    view.refresh();
                }
            }
        });

        depthLimitFilterEnablement = this.toolkit.createButton(filterOptionsComposite, "Limit depth", SWT.CHECK);
        depthLimitFilterEnablement.setLayoutData(new TableWrapData(TableWrapData.FILL));
        depthLimitFilterEnablement.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                if (depthLimitFilterEnablement.getSelection()) {
                    depthFilter.setDepth(depthLimit.getSelection());
                    depthFilter.setEnabled(true);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        // PresentationModel moduleIdModel = new
        // PresentationModel(moduleModel.getModel("moduleId"));

        toolkit.createLabel(client, "Organisation");
        Text org = toolkit.createText(client, "");
        org.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

        // SWTBindings.bind(org, moduleIdModel.getModel("organisation"), true);

        toolkit.createLabel(client, "Module");
        Text mod = toolkit.createText(client, "");
        mod.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
        // SWTBindings.bind(org, moduleIdModel.getModel("name"), true);

        toolkit.createLabel(client, "Status");
        Text status = toolkit.createText(client, "");
        status.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
        // SWTBindings.bind(org, moduleModel.getModel("status"), true);

        toolkit.paintBordersFor(client);
        section.setClient(client);
        TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB);
        td.colspan = 2;
        section.setLayoutData(td);
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

        layout.numColumns = NUM_COLUMNS;
        client.setLayout(layout);

        toolkit.paintBordersFor(client);
        section.setClient(client);
        TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB);
        td.colspan = 2;
        section.setLayoutData(td);
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.TableWrapData

       
        Label label = new Label(markComposite, SWT.NONE);
        label.setText("Marker Type");
       
        markerTypeCombo = new ComboExpressionViewer(markComposite, SWT.SINGLE);
        markerTypeCombo.getControl().setLayoutData(new TableWrapData(TableWrapData.LEFT));
        markerTypeDecoration = new ControlDecoration(label, SWT.LEFT | SWT.TOP);
        markerTypeDecoration.hide();
        markerTypeCombo.getControl().setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, false));
       
        Composite additionalComposite = new Composite(markComposite, SWT.NONE);
        additionalComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
        additionalComposite.setLayout(new TableWrapLayout());
       
        Composite fillComp = new Composite(additionalComposite, SWT.NONE);
        fillComp.setLayoutData(new TableWrapData(TableWrapData.FILL));
        fillComponent = new FillEditorComponent();
        fillComponent.createControl(fillComp);
       
        Composite strokeComp = new Composite(additionalComposite, SWT.NONE);
        strokeComp.setLayoutData(new TableWrapData(TableWrapData.FILL));
        strokeComponent = new StrokeEditorComponent();
        strokeComponent.createControl(strokeComp);
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.