Package bndtools.editor.common

Examples of bndtools.editor.common.MDSashForm


        // Create Controls
        Composite body = form.getBody();
        body.setLayout(new FillLayout());

        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(6);
        tk.adapt(sashForm, false, false);
        sashForm.hookResizeListener();

        Composite leftPanel = tk.createComposite(sashForm);
        gd = new GridData(SWT.FILL, SWT.FILL, true, true);
        leftPanel.setLayoutData(gd);
View Full Code Here


        Composite body = form.getBody();

        greyTitleBarColour = new Color(body.getDisplay(), 210, 245, 210);

        // Create controls
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(6);
        toolkit.adapt(sashForm, false, false);

        Composite leftPanel = toolkit.createComposite(sashForm);
        createLeftPanel(managedForm, leftPanel);

        Composite middlePanel = toolkit.createComposite(sashForm);
        createMiddlePanel(managedForm, middlePanel);

        Composite rightPanel = toolkit.createComposite(sashForm);
        createRightPanel(managedForm, rightPanel);

        registerDetailsPages();

        sashForm.setWeights(new int[] {
                4, 3, 4
        });
        sashForm.hookResizeListener();

        // Layout
        body.setLayout(new FillLayout());
    }
View Full Code Here

        // Create Controls
        Composite body = form.getBody();
        body.setLayout(new FillLayout());

        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(6);
        tk.adapt(sashForm, false, false);
        sashForm.hookResizeListener();

        Composite leftPanel = tk.createComposite(sashForm);
        gd = new GridData(SWT.FILL, SWT.FILL, true, true);
        leftPanel.setLayoutData(gd);
View Full Code Here

        GridData gd;

        // Create Controls
        final Composite body = form.getBody();

        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(6);
        tk.adapt(sashForm);

        final Composite left = tk.createComposite(sashForm);
        gd = new GridData(SWT.FILL, SWT.FILL, true, true);
        left.setLayoutData(gd);
        gl = new GridLayout(1, true);
        left.setLayout(gl);

        final Composite right = tk.createComposite(sashForm);
        gd = new GridData(SWT.FILL, SWT.FILL, true, true);
        right.setLayoutData(gd);
        gl = new GridLayout(1, true);
        right.setLayout(gl);

        // First column
        RepositorySelectionPart reposPart = new RepositorySelectionPart(left, tk, Section.TITLE_BAR | Section.TWISTIE | Section.DESCRIPTION);
        managedForm.addPart(reposPart);
        gd = new GridData(SWT.FILL, SWT.FILL, true, true);
        gd.widthHint = 50;
        gd.heightHint = 50;
        reposPart.getSection().setLayoutData(PageLayoutUtils.createCollapsed());

        AvailableBundlesPart availableBundlesPart = new AvailableBundlesPart(left, tk, Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION);
        managedForm.addPart(availableBundlesPart);
        gd = new GridData(SWT.FILL, SWT.FILL, true, true);
        gd.widthHint = 50;
        gd.heightHint = 50;
        availableBundlesPart.getSection().setLayoutData(PageLayoutUtils.createExpanded());

        RunFrameworkPart runFwkPart = new RunFrameworkPart(left, tk, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
        managedForm.addPart(runFwkPart);
        gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        runFwkPart.getSection().setLayoutData(gd);

        RunPropertiesPart runPropertiesPart = new RunPropertiesPart(left, tk, Section.TITLE_BAR | Section.TWISTIE | Section.DESCRIPTION);
        managedForm.addPart(runPropertiesPart);
        gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        runPropertiesPart.getSection().setLayoutData(gd);

        RunProgramArgsPart programArgsPart = new RunProgramArgsPart(left, tk, Section.TITLE_BAR | Section.TWISTIE);
        managedForm.addPart(programArgsPart);
        gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        programArgsPart.getSection().setLayoutData(gd);

        RunVMArgsPart vmArgsPart = new RunVMArgsPart(left, tk, Section.TITLE_BAR | Section.TWISTIE);
        managedForm.addPart(vmArgsPart);
        gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        vmArgsPart.getSection().setLayoutData(gd);

        // SECOND COLUMN
        if (supportsResolve) {
            RunRequirementsPart requirementsPart = new RunRequirementsPart(right, tk, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
            managedForm.addPart(requirementsPart);
            requirementsPart.getSection().setLayoutData(PageLayoutUtils.createExpanded());
            requirementsPart.getSection().addExpansionListener(new ResizeExpansionAdapter(requirementsPart.getSection()));

            RunBundlesPart runBundlesPart = new RunBundlesPart(right, tk, Section.TITLE_BAR | Section.TWISTIE);
            managedForm.addPart(runBundlesPart);
            runBundlesPart.getSection().setLayoutData(PageLayoutUtils.createCollapsed());
            runBundlesPart.getSection().addExpansionListener(new ResizeExpansionAdapter(runBundlesPart.getSection()));
        } else {
            RunBundlesPart runBundlesPart = new RunBundlesPart(right, tk, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
            managedForm.addPart(runBundlesPart);
            runBundlesPart.getSection().setLayoutData(PageLayoutUtils.createExpanded());
            runBundlesPart.getSection().addExpansionListener(new ResizeExpansionAdapter(runBundlesPart.getSection()));
        }

        sashForm.setWeights(new int[] {
                1, 1
        });
        sashForm.hookResizeListener();
        body.setLayout(new FillLayout());
    }
View Full Code Here

        form.setImage(junitImg);
        toolkit.decorateFormHeading(form.getForm());
        form.getForm().addMessageHyperlinkListener(new MessageHyperlinkAdapter(getEditor()));

        Composite body = form.getBody();
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(6);
        toolkit.adapt(sashForm, false, false);

        Composite leftPanel = toolkit.createComposite(sashForm);
        Composite rightPanel = toolkit.createComposite(sashForm);

        TestSuitesPart suitesPart = new TestSuitesPart(leftPanel, toolkit, Section.TITLE_BAR | Section.EXPANDED);
        managedForm.addPart(suitesPart);

        SaneDetailsPart detailsPart = new SaneDetailsPart();
        managedForm.addPart(detailsPart);
        // TODO: add details pages here
        detailsPart.createContents(toolkit, rightPanel);

        sashForm.hookResizeListener();

        // LAYOUT
        body.setLayout(new FillLayout());

        GridLayout layout;
View Full Code Here

        toolkit.decorateFormHeading(form);
        form.addMessageHyperlinkListener(new MessageHyperlinkAdapter(getEditor()));
        Composite body = form.getBody();

        // Create controls
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(6);
        toolkit.adapt(sashForm, false, false);

        Composite leftPanel = toolkit.createComposite(sashForm);
        createLeftPanel(managedForm, leftPanel);

        Composite rightPanel = toolkit.createComposite(sashForm);
        createRightPanel(managedForm, rightPanel);

        sashForm.setWeights(new int[] {
                1, 1
        });
        sashForm.hookResizeListener();

        // Layout
        body.setLayout(new FillLayout());
    }
View Full Code Here

        Composite body = form.getBody();

        greyTitleBarColour = new Color(body.getDisplay(), 210, 245, 210);

        // Create controls
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(2);
        toolkit.adapt(sashForm, false, false);

        Composite leftPanel = toolkit.createComposite(sashForm);

        DescriptionBundlePart infoPart = new DescriptionBundlePart(leftPanel, toolkit, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
        managedForm.addPart(infoPart);

        DescriptionRightsPart rightsPart = new DescriptionRightsPart(leftPanel, toolkit, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
        managedForm.addPart(rightsPart);

        DescriptionVendorPart vendorPart = new DescriptionVendorPart(leftPanel, toolkit, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
        managedForm.addPart(vendorPart);

        DescriptionDeveloperPart developerPart = new DescriptionDeveloperPart(leftPanel, toolkit, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
        managedForm.addPart(developerPart);

        // LAYOUT
        GridData gd;
        GridLayout layout;

        layout = new GridLayout(1, false);
        leftPanel.setLayout(layout);

        gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        infoPart.getSection().setLayoutData(gd);

        gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        rightsPart.getSection().setLayoutData(gd);

        gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        vendorPart.getSection().setLayoutData(gd);

        gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        developerPart.getSection().setLayoutData(gd);

        sashForm.hookResizeListener();

        // Layout
        body.setLayout(new FillLayout());
    }
View Full Code Here

TOP

Related Classes of bndtools.editor.common.MDSashForm

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.