Examples of open()


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

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

        return new DelegableConfigurationDialog(delegable.getDelegationConfiguration());
    }
   
    public String showConfigurationDialog(Delegable delegable) {
        DelegableConfigurationDialog dialog = createConfigurationDialog(delegable);
        if (dialog.open() == Dialog.OK) {
            return dialog.getResult();
        }
        return null;
    }
View Full Code Here

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

    Boolean enabled = action.isChecked();
    IPreferenceStore preferenceStore = PlatformUI.getPreferenceStore();
    if (enabled) {
      String htmlEditorPath = preferenceStore.getString(PluginConstants.EXTERNAL_EDITOR_PREFERENCE_ID);
      ExternalEditorDialog editorDialog = new ExternalEditorDialog(window.getShell(), htmlEditorPath);
      if (editorDialog.open() == Dialog.OK) {
        htmlEditorPath = editorDialog.getPath();
        if (htmlEditorPath == null) {
          htmlEditorPath = "";
        }
        preferenceStore.putValue(PluginConstants.EXTERNAL_EDITOR_PREFERENCE_ID, htmlEditorPath);
View Full Code Here

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

public class MappingAction extends BaseActionDelegate {

    public void run(IAction action) {
        MappingContentProvider.INSTANCE.addMappingInfo();
        MappingDialog dialog = new MappingDialog(window.getShell());
        if (dialog.open() != IDialogConstants.CANCEL_ID) {
            MappingContentProvider.INSTANCE.saveToInput();
        }
    }

    @Override
View Full Code Here

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

    IFolder definitionFolder = (IFolder) selection.getFirstElement();
      IFile definitionFile = ProjectFinder.getProcessDefinitionFile(definitionFolder);
      RenameProcessDefinitionDialog dialog = new RenameProcessDefinitionDialog(definitionFolder);
      ProcessDefinition definition = ProcessCache.getProcessDefinition(definitionFile);
      dialog.setName(definition.getName());
      if(dialog.open() == IDialogConstants.OK_ID) {
      String newName = dialog.getName();
        try {
          IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
          IEditorPart editor = page.findEditor(new FileEditorInput(definitionFile));
          if (editor != null) {
View Full Code Here

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

    @Override
    public String showConfigurationDialog(Delegable delegable) {
        ProcessDefinition definition = ((GraphElement) delegable).getProcessDefinition();
        SQLActionHandlerConfigDialog dialog = new SQLActionHandlerConfigDialog(
                definition, delegable.getDelegationConfiguration());
        if (dialog.open() == Dialog.OK) {
            return dialog.getResult();
        }
        return null;
    }
View Full Code Here

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

        openDetails(subprocess);
    }

    public void openDetails(Subprocess subprocess) {
        SubprocessDialog dialog = new SubprocessDialog(subprocess);
        if (dialog.open() != Window.CANCEL) {
            subprocess.setVariablesList(dialog.getSubprocessVariables());
            subprocess.setSubProcessName(dialog.getSubprocessName());
        }
    }
}
View Full Code Here

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

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

            @Override
            public void linkActivated(HyperlinkEvent e) {
                try {
                    TreeViewSelectionDialog dialog = new TreeViewSelectionDialog(Messages.getString("RunaOrgDialog.Text"));
                    dialog.setItems(getAsTree());
                    if (dialog.open() == IDialogConstants.OK_ID) {
                        TreeItem treeItem = dialog.getSelectedItem();
                        selectionText.setText(treeItem.getLabel());
                        selectionText.setForeground(treeItem.getColor());
                        OrgFunctionDefinition definition = createNew();
                        definition.getParameters().get(0).setValue((String) treeItem.getTag());
View Full Code Here

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

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

            UpdateSwimlaneNameDialog renameDialog = new UpdateSwimlaneNameDialog(swimlane.getProcessDefinition(), false);
            renameDialog.setName(swimlane.getName());
            int result = renameDialog.open();
            String newName = renameDialog.getName();
            boolean useLtk = renameDialog.isProceedRefactoring();
            if (result != IDialogConstants.OK_ID) {
                return;
            }
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.