Package org.jbpm.ui.common.action

Source Code of org.jbpm.ui.common.action.OpenDelegableConfigurationDelegate

package org.jbpm.ui.common.action;

import org.eclipse.jface.action.IAction;
import org.jbpm.ui.common.model.Delegable;
import org.jbpm.ui.custom.CustomizationRegistry;
import org.jbpm.ui.custom.DelegableProvider;

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);
        }
    }

}
TOP

Related Classes of org.jbpm.ui.common.action.OpenDelegableConfigurationDelegate

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.