Package org.jbpm.ui.custom

Source Code of org.jbpm.ui.custom.DelegableProvider

package org.jbpm.ui.custom;

import org.eclipse.jface.dialogs.Dialog;
import org.jbpm.ui.common.model.Delegable;
import org.jbpm.ui.dialog.DelegableConfigurationDialog;
import org.osgi.framework.Bundle;

public class DelegableProvider {
    protected Bundle bundle;

    public void setBundle(Bundle bundle) {
        this.bundle = bundle;
    }
   
    protected DelegableConfigurationDialog createConfigurationDialog(Delegable delegable) {
        return new DelegableConfigurationDialog(delegable.getDelegationConfiguration());
    }
   
    public String showConfigurationDialog(Delegable delegable) {
        DelegableConfigurationDialog dialog = createConfigurationDialog(delegable);
        if (dialog.open() == Dialog.OK) {
            return dialog.getResult();
        }
        return null;
    }

    public boolean validateValue(Delegable delegable) {
        return true;
    }
}
TOP

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

TOP
Copyright © 2018 www.massapi.com. 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.