Package org.jbpm.ui.dialog

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


        }

        @Override
        protected Object openDialogBox(Control cellEditorWindow) {
            CreateVariableDialog dialog = new CreateVariableDialog(variable.getProcessDefinition(), variable.getFormat(), false);
            if (dialog.open() == IDialogConstants.OK_ID) {
                return dialog.getType();
            }
            return null;

        }
View Full Code Here


    private class CreateVariableSelectionListener extends SelectionAdapter {

        @Override
        public void widgetSelected(SelectionEvent e) {
            CreateVariableDialog dialog = new CreateVariableDialog(getDefinition(), StringFormat.class.getName(), true);
            if (dialog.open() == IDialogConstants.OK_ID) {
                Variable variable = new Variable(dialog.getName(), dialog.getType(), dialog.isPublicVisibility());
                getDefinition().addVariable(variable);
                IStructuredSelection selection = new StructuredSelection(variable);
                viewer.setSelection(selection);
            }
View Full Code Here

        public void widgetSelected(SelectionEvent e) {
            IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
            Variable variable = (Variable) selection.getFirstElement();

            CreateVariableDialog dialog = new CreateVariableDialog(getDefinition(), variable.getFormat(), false);
            if (dialog.open() == IDialogConstants.OK_ID) {
                variable.setFormat(dialog.getType());
                variable.setPublicVisibility(dialog.isPublicVisibility());
                viewer.setSelection(selection);
            }
        }
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.