Package org.eclipse.ui.internal.layout

Examples of org.eclipse.ui.internal.layout.CellLayout


    }

    private void createControlForLeft() {
        trimControl = new Composite(parent, SWT.NONE);

        trimControl.setLayout(new CellLayout(1).setMargins(0, 0).setSpacing(3,
                3).setDefaultRow(Row.fixed()).setDefaultColumn(Row.growing()));

        perspectiveBar = createBarManager(SWT.VERTICAL);

        perspectiveBar.createControl(trimControl);
View Full Code Here


        int newSide = getSide();
        int orientation = Geometry.isHorizontal(newSide) ? SWT.HORIZONTAL
                : SWT.VERTICAL;
       
        // Create a ControlLayout apropriate for the new orientation
        CellLayout controlLayout;       
        if (Geometry.isHorizontal(newSide)) {
          controlLayout = new CellLayout(0)
            .setMargins(0, 0)
            .setDefaultRow(Row.growing())
            .setDefaultColumn(Row.fixed())
            .setColumn(1, Row.growing());
        } else {
          controlLayout = new CellLayout(1)
            .setMargins(0, 3)
            .setDefaultColumn(Row.growing())
            .setDefaultRow(Row.fixed())
            .setRow(1, Row.growing());
        }
View Full Code Here

        initializeDialogUnits(parent);

        Font font = parent.getFont();

        Composite dialogArea = new Composite(parent, SWT.NONE);
        CellLayout dialogAreaLayout = new CellLayout(1)
                .setMargins(
                        convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN),
                        convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN))
                .setSpacing(
                        convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING),
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.layout.CellLayout

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.