Package org.jbpm.ui.custom

Examples of org.jbpm.ui.custom.DelegableProvider


            FormNode formNode = (FormNode) elementMatch.getGraphElement();
            OpenFormValidationDelegate delegate = new OpenFormValidationDelegate();
            delegate.openValidationFile(formNode, elementMatch.getFile());
        } else if (elementMatch.getGraphElement() instanceof Delegable) {
            Delegable delegable = (Delegable) elementMatch.getGraphElement();
            DelegableProvider provider = CustomizationRegistry.getProvider(delegable.getDelegationClassName());
            String newConfig = provider.showConfigurationDialog(delegable);
            if (newConfig != null) {
                delegable.setDelegationConfiguration(newConfig);
            }
        } else if (elementMatch.getGraphElement() instanceof Subprocess) {
            SubprocessDelegate delegate = new SubprocessDelegate();
View Full Code Here


        }

        @Override
        protected Object openDialogBox(Control cellEditorWindow) {
            try {
                DelegableProvider provider = CustomizationRegistry.getProvider(delegable.getDelegationClassName());
                return provider.showConfigurationDialog(delegable);
            } catch (Exception e) {
                DesignerLogger.logError("Unable to open configuration dialog for " + delegable.getDelegationClassName(), e);
                return null;
            }
        }
View Full Code Here

    }

    protected void validate() {
        if (this instanceof Delegable) {
            Delegable d = (Delegable) this;
            DelegableProvider provider = CustomizationRegistry.getProvider(delegationClassName);
            if (delegationClassName == null || delegationClassName.length() == 0) {
                addError("delegationClassName.empty");
            } else if (!CustomizationRegistry.isTypeRegisteredForType(d.getDelegationType(), delegationClassName)) {
                if (!CustomizationRegistry.isTypeRegistered(delegationClassName)) {
                    addWarning("delegationClassName.classNotFound");
                } else {
                    addError("delegationClassName.classCastError");
                }
            } else if (!provider.validateValue(d)) {
                addError("decision.invalidConfiguration");
            }
        }
    }
View Full Code Here

        }

        @Override
        public void run() {
            setFocus(action);
            DelegableProvider provider = CustomizationRegistry.getProvider(action.getDelegationClassName());
            String newConfig = provider.showConfigurationDialog(action);
            if (newConfig != null) {
                action.setDelegationConfiguration(newConfig);
            }
        }
View Full Code Here

            button.setLayoutData(gridData);
            button.addSelectionListener(new SelectionAdapter() {
                @Override
                public void widgetSelected(SelectionEvent e) {
                    try {
                        DelegableProvider provider = CustomizationRegistry.getProvider(editable.getDelegationClassName());
                        String config = provider.showConfigurationDialog(editable);
                        if (config != null) {
                            editable.setDelegationConfiguration(config);
                        }
                    } catch (Exception ex) {
                        DesignerLogger.logError("Unable to open configuration dialog for " + editable.getDelegationClassName(), ex);
View Full Code Here

public class OpenDelegableConfigurationDelegate extends BaseActionDelegate {

    public void run(IAction action) {
      Delegable delegable = (Delegable) selectedPart.getModel();
        DelegableProvider provider = CustomizationRegistry.getProvider(delegable.getDelegationClassName());
        String newConfig = provider.showConfigurationDialog(delegable);
        if (newConfig != null) {
            delegable.setDelegationConfiguration(newConfig);
        }
    }
View Full Code Here

TOP

Related Classes of org.jbpm.ui.custom.DelegableProvider

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.