Skip to content

Commit

Permalink
JBIDE-18383 Lookup commands by Ids instead of names.
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetReynolds authored and gastaldi committed Oct 3, 2014
1 parent 6ee811e commit b4a57c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -108,6 +108,9 @@ public void openWizard(String windowTitle, UICommand selectedCommand,
.lookup(CommandControllerFactory.class);
CommandFactory commandFactory = FurnaceService.INSTANCE.lookup(CommandFactory.class);
selectedCommand = commandFactory.getNewCommandByName(context, selectedCommand.getMetadata(context).getName());
if(windowTitle == null) {
windowTitle = selectedCommand.getMetadata(context).getName();
}
ForgeUIRuntime runtime = new ForgeUIRuntime();
CommandController controller = controllerFactory.createController(
context, runtime, selectedCommand);
Expand Down
Expand Up @@ -90,7 +90,6 @@ private void openWizard(IWorkbenchWindow window, String wizardName,
WizardDialogHelper helper = new WizardDialogHelper(window.getShell(),
currentSelection);
UICommand command = helper.getCommand(wizardName);
helper.openWizard(wizardTitle == null ? wizardName : wizardTitle,
command, values);
helper.openWizard(wizardTitle, command, values);
}
}

0 comments on commit b4a57c2

Please sign in to comment.