Package com.volantis.mcs.eclipse.controls

Examples of com.volantis.mcs.eclipse.controls.ActionButton


        Composite buttonComposite = new Composite(parent, SWT.NONE);
        GridLayout layout = new GridLayout(2, false);
        buttonComposite.setLayout(layout);
        buttonComposite.setBackground(getDisplay().
                getSystemColor(SWT.COLOR_LIST_BACKGROUND));
        new ActionButton(buttonComposite, style, newPolicyAction);
        new ActionButton(buttonComposite, style, deletePolicyAction);
    }
View Full Code Here


        addButton(buttonComposite, deleteAction);
    }

    private void addButton(Composite parent, Action action) {
        if (action != null) {
            ActionButton button = new ActionButton(parent, SWT.PUSH, action);
            button.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        }
    }
View Full Code Here

        // set the background color for the container to white
        buttonContainer.setBackground(getDisplay().getSystemColor(
                SWT.COLOR_LIST_BACKGROUND));

        // create the new button
        ActionButton newButton = new ActionButton(buttonContainer,
                SWT.PUSH,
                newAction);
        newButton.setLayoutData(
                new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));

        // create the remove button
        ActionButton deleteButton = new ActionButton(buttonContainer,
                SWT.PUSH,
                deleteAction);
        deleteButton.setLayoutData(
                new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
    }
View Full Code Here

    }

    protected void createActionButtons(Composite buttonComposite) {
        // There is only a Browse button if a new variant can be created
        if (newAction != null) {
            new ActionButton(buttonComposite, SWT.PUSH, newAction);
        }

        // There may be no addAction.
        if (addAction != null) {
            new ActionButton(buttonComposite, SWT.PUSH, addAction);
        }

        if (deleteAction != null) {
            new ActionButton(buttonComposite, SWT.PUSH, deleteAction);
        }
    }
View Full Code Here

        createActions();

        // Start with the remove button disabled
        deleteAction.setEnabled(false);
        ActionButton removeButton = new ActionButton(buttonsComposite, SWT.NONE, deleteAction);
        enableableControls.add(removeButton);

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

        browseButton.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent event) {
                browseTargets();
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.controls.ActionButton

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.