Map parameters = new HashMap();
parameters.put("org.eclipse.ui.perspectives.showPerspective.perspectiveId", perspectiveDescriptor.getId());
ParameterizedCommand parameterizedCommand = ParameterizedCommand.generateCommand(command, parameters);
IHandlerService handlerService = (IHandlerService) PlatformUI.getWorkbench()
.getService(IHandlerService.class);
try {
handlerService.executeCommand(parameterizedCommand, null);
} catch (ExecutionException ex) {
// StatusManager.getManager().handle(new Status(IStatus.ERROR, ApplicationPlugin.PLUGIN_ID, ex.getMessage(), ex));
} catch (NotDefinedException ex) {
// StatusManager.getManager().handle(new Status(IStatus.ERROR, ApplicationPlugin.PLUGIN_ID, ex.getMessage(), ex));
} catch (NotEnabledException ex) {