Examples of SashForm


Examples of org.eclipse.swt.custom.SashForm

        infoComposite = new Composite(viewForm, SWT.NONE);

        createCompositeInformation();
        viewForm.setTopLeft(infoComposite);

        sashForm = new SashForm(viewForm, SWT.V_SCROLL);
        sashForm.setOrientation(SWT.HORIZONTAL);

        sashForm.setLayout(new FillLayout());

        createCompositeSourceFeatures();
View Full Code Here

Examples of org.eclipse.swt.custom.SashForm

            public void widgetSelected(SelectionEvent e) {
                populateAvailableRulesTable(propertyPage.getProject());
            }
        });

        final SashForm sash = new SashForm(this, SWT.VERTICAL);
        GridData layoutData = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_HORIZONTAL);
        layoutData.heightHint = 400;
        layoutData.widthHint = 550;

        sash.setLayoutData(layoutData);

        Table availableRulesTable = createDetectorsTableViewer(sash, page.getProject());
        GridData tableLayoutData = new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL | GridData.GRAB_HORIZONTAL
                | GridData.GRAB_VERTICAL);
        tableLayoutData.heightHint = 300;
        tableLayoutData.widthHint = 550;
        availableRulesTable.setLayoutData(tableLayoutData);

        Group group = new Group(sash, SWT.NONE);
        group.setLayout(new GridLayout());
        GridData data = new GridData(GridData.FILL_BOTH);
        group.setLayoutData(data);
        group.setText("Detector details");

        final Text text = new Text(group, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.WRAP);
        GridData layoutData2 = new GridData(GridData.FILL_BOTH);
        text.setLayoutData(layoutData2);
        text.setBackground(getShell().getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
        sash.setWeights(new int[] { 3, 1 });

        availableRulesTable.addSelectionListener(new SelectionListener() {
            public void widgetDefaultSelected(SelectionEvent e) {
                widgetSelected(e);
            }
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.