Skip to content

Commit

Permalink
Added back code generation dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshit Krishnappa Ravi <rakshitkrishnapparavi@gmail.com>
  • Loading branch information
rakshitkr committed Oct 2, 2020
1 parent b0e7742 commit 523d910
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ public boolean performFinish() {
IResource targetFile = (IResource) currentPage.getSelectedResource().getFirstElement();

String taskName = selectedTask.getName();
JOptionPane optionPane = new JOptionPane("CogniCrypt is now generating code that implements " + selectedTask.getDescription() + "\ninto file " + ((targetFile != null)
? targetFile.getName()
: "Output.java") + ". This should take no longer than a few seconds.", JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, new Object[] {}, null);
JDialog waitingDialog = optionPane.createDialog("Generating Code");
waitingDialog.setModal(false);
waitingDialog.setVisible(true);
Configuration chosenConfig = null;
try {
String codeTemplate = selectedTask.getCodeTemplate();
Expand Down Expand Up @@ -290,6 +296,7 @@ public boolean performFinish() {
Activator.getDefault().logError(ex, Constants.CodeGenerationErrorMessage);
}

waitingDialog.setVisible(false);
return ret;
}

Expand Down

0 comments on commit 523d910

Please sign in to comment.