Package org.jbpm.ui.dialog

Examples of org.jbpm.ui.dialog.RenameProcessDefinitionDialog


    }

    public static void renameProcessDefinition(IStructuredSelection selection) {
    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) {
            page.closeEditor(editor, false);
View Full Code Here

TOP

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

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.