Package org.eclipse.ui.forms.widgets

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


        managedForm.setInput(model);

        ScrolledForm scrolledForm = managedForm.getForm();
        scrolledForm.setText("Bundle Content");

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

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

        // Create controls
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
View Full Code Here


        managedForm.setInput(model);

        ScrolledForm scrolledForm = managedForm.getForm();
        scrolledForm.setText("Bundle Content");

        Form form = scrolledForm.getForm();
        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);
View Full Code Here

        managedForm.setInput(model);

        ScrolledForm scrolledForm = managedForm.getForm();
        scrolledForm.setText("Bundle Description");

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

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

        // Create controls
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
View Full Code Here

        contentSection.setLayoutData(data);
    }

    private void createAssetSelectionCriteriaSection(Composite parent) {
        FormToolkit formToolkit =getFormToolkit(parent);
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);

        selectionCriteriaSection =
                new AssetSelectionCriteriaSection(form.getBody(), SWT.NONE, getContext());
        data = new GridData(GridData.FILL_HORIZONTAL);
        selectionCriteriaSection.setLayoutData(data);
    }
View Full Code Here

        selectionCriteriaSection.setLayoutData(data);
    }

    private void createAlertsActionsSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent);
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);

        alertsActionsSection =
                new AlertsActionsSection(form.getBody(), SWT.NONE, getContext());
        data = new GridData(GridData.FILL_HORIZONTAL);
        alertsActionsSection.setLayoutData(data);
    }
View Full Code Here

        alertsActionsSection.setLayoutData(data);
    }

    private void createAssetsSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent);
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_BOTH);
        form.setLayoutData(data);

        assetsSection = AssetSectionFactory.getDefaultInstance().
                createAssetsSection(form.getBody(), getContext());
        data = new GridData(GridData.FILL_BOTH);
        assetsSection.setLayoutData(data);
    }
View Full Code Here

        assetsSection.setLayoutData(data);
    }

    private void createAssetAttributesSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent);
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);

        assetAttributesSection = AssetSectionFactory.getDefaultInstance().
                createAssetAttributesSection(form.getBody(), getContext());
        data = new GridData(GridData.FILL_HORIZONTAL);
        assetAttributesSection.setLayoutData(data);
    }
View Full Code Here

        alertsActionsSection.setLayoutData(data);
    }

    protected void createAssetAttributesSection(Composite parent) {
        formToolkit = new FormToolkit(parent.getShell().getDisplay());
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_BOTH);
        form.setLayoutData(data);

        assetAttributesSection = AssetSectionFactory.getDefaultInstance().
                createAssetAttributesSection(form.getBody(), getContext(),
                        getAttributeDescriptors(), getPolicyReferenceTypes(),
                        getComboDescriptors());
        data = new GridData(GridData.FILL_BOTH);
        assetAttributesSection.setLayoutData(data);
    }
View Full Code Here

        }
    }

    private void createAssetSelectionCriteriaSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent.getShell().getDisplay());
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);

        selectionCriteriaSection =
                new AssetSelectionCriteriaSection(form.getBody(), SWT.NONE, getContext());
        data = new GridData(GridData.FILL_HORIZONTAL);
        selectionCriteriaSection.setLayoutData(data);
    }
View Full Code Here

        selectionCriteriaSection.setLayoutData(data);
    }

    private void createAssetContentSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent.getShell().getDisplay());
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);

        LayoutEditorContext context = (LayoutEditorContext) getContext();

        contentSection =
                new AssetContentSection(form.getBody(), SWT.NONE, context);
        data = new GridData(GridData.FILL_HORIZONTAL);
        contentSection.setLayoutData(data);

        // Register the content section with the context.
        context.addLayoutModificationListener(
View Full Code Here

TOP

Related Classes of org.eclipse.ui.forms.widgets.Form

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.