Skip to content

Commit

Permalink
Create new UICommand instances to prevent stale input values
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetReynolds authored and gastaldi committed Oct 3, 2014
1 parent 1b3b3cb commit 6ee811e
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -106,6 +106,8 @@ public void openWizard(String windowTitle, UICommand selectedCommand,
Map<String, ?> values) {
CommandControllerFactory controllerFactory = FurnaceService.INSTANCE
.lookup(CommandControllerFactory.class);
CommandFactory commandFactory = FurnaceService.INSTANCE.lookup(CommandFactory.class);
selectedCommand = commandFactory.getNewCommandByName(context, selectedCommand.getMetadata(context).getName());
ForgeUIRuntime runtime = new ForgeUIRuntime();
CommandController controller = controllerFactory.createController(
context, runtime, selectedCommand);
Expand Down

0 comments on commit 6ee811e

Please sign in to comment.