Package org.jbpm.ui.dialog

Examples of org.jbpm.ui.dialog.ChooseItemDialog


        chooseExecutorLink.addHyperlinkListener(new HyperlinkAdapter() {

            @Override
            public void linkActivated(HyperlinkEvent e) {
                try {
                    ChooseItemDialog dialog = new ChooseItemDialog(Messages.getString("ADDialog.Text"), null, true);
                    Map<String, Boolean> executors = (Map<String, Boolean>) LDAPExecutorsImporter.getInstance().loadCachedData();
                    dialog.setItems(new ArrayList<String>(executors.keySet()));
                    dialog.setLabelProvider(new LabelProvider());
                    if (dialog.open() == IDialogConstants.OK_ID) {
                        selectionText.setText((String) dialog.getSelectedItem());
                        OrgFunctionDefinition definition = createNew();
                        definition.getParameters().get(0).setValue(selectionText.getText());
                        fireCompletedEvent(definition);
                    }
                } catch (Exception ex) {
View Full Code Here


        chooseLink.addHyperlinkListener(new HyperlinkAdapter() {

            @Override
            public void linkActivated(HyperlinkEvent e) {
                try {
                    ChooseItemDialog dialog = new ChooseItemDialog(Messages.getString("RelationsDialog.Text"), null, true);
                    List<String> relations = (List<String>) RunaWFERelationsImporter.getInstance().loadCachedData();
                    dialog.setItems(relations);
                    dialog.setLabelProvider(new LabelProvider());
                    if (dialog.open() == IDialogConstants.OK_ID) {
                        relationNameText.setText((String) dialog.getSelectedItem());
                        updateSwimlane();
                    }
                } catch (Exception ex) {
                    DesignerLogger.logError("Unable load relations", ex);
                }
View Full Code Here

                        }
                        if (!isGroup && (mask & 1) != 0) {
                            items.add(name);
                        }
                    }
                    ChooseItemDialog dialog = new ChooseItemDialog(Messages.getString("WFDialog.Text"), null, true);
                    dialog.setItems(items);
                    dialog.setLabelProvider(new LabelProvider());
                    if (dialog.open() == IDialogConstants.OK_ID) {
                        selectionText.setText((String) dialog.getSelectedItem());
                        OrgFunctionDefinition definition = createNew();
                        definition.getParameters().get(0).setValue(selectionText.getText());
                        fireCompletedEvent(definition);
                    }
                } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.jbpm.ui.dialog.ChooseItemDialog

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.