Package org.jbpm.ui.dialog

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

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.