Package org.jbpm.ui.dialog

Examples of org.jbpm.ui.dialog.SwimlaneConfigDialog.open()


            IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
            Swimlane swimlane = (Swimlane) selection.getFirstElement();

            String path = getDefinition().getSwimlaneGUIConfiguration().getEditorPath(swimlane.getName());
            SwimlaneConfigDialog dialog = new SwimlaneConfigDialog(getDefinition(), swimlane, path);
            if (dialog.open() == IDialogConstants.OK_ID) {
                swimlane.setDelegationConfiguration(dialog.getConfiguration());
                swimlane.setPublicVisibility(dialog.isPublicVisibility());
                getDefinition().getSwimlaneGUIConfiguration().putSwimlanePath(swimlane.getName(), dialog.getPath());
                viewer.setSelection(selection);
            }
View Full Code Here


                public void widgetSelected(SelectionEvent e) {
                    Swimlane swimlane = new Swimlane();
                    swimlane.setName("TEST");
                    swimlane.setDelegationConfiguration(swimlaneInitializerText.getText());
                    SwimlaneConfigDialog dialog = new SwimlaneConfigDialog(definition, swimlane, "");
                    if (dialog.open() == IDialogConstants.OK_ID) {
                        swimlaneInitializerText.setText(dialog.getConfiguration());
                    }
                }
            });
           
View Full Code Here

        Swimlane swimlane = (Swimlane) delegable;
        ProcessDefinition definition = swimlane.getProcessDefinition();

        String path = definition.getSwimlaneGUIConfiguration().getEditorPath(swimlane.getName());
        SwimlaneConfigDialog dialog = new SwimlaneConfigDialog(definition, swimlane, path);
        if (dialog.open() == IDialogConstants.OK_ID) {
            definition.getSwimlaneGUIConfiguration().putSwimlanePath(swimlane.getName(), dialog.getPath());
            return dialog.getConfiguration();
        }
        return null;
    }
View Full Code Here

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.