Skip to content

Instantly share code, notes, and snippets.

@fikovnik
Created February 3, 2012 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fikovnik/1733662 to your computer and use it in GitHub Desktop.
Save fikovnik/1733662 to your computer and use it in GitHub Desktop.
public Object execute(ExecutionEvent event) throws ExecutionException {
InputDialog dlg = new InputDialog(
HandlerUtil.getActiveShellChecked(event), "Title",
"Enter text", "Initial value", null);
if (dlg.open() == Window.OK) {
// User clicked OK; run perl
String input = dlg.getValue();
// TODO:do something with value
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment