private void openSample(String file) throws CommandException { IHandlerService handlerService = (IHandlerService) getIntroSite().getService(IHandlerService.class); ICommandService commandService = (ICommandService) getIntroSite().getService(ICommandService.class); Command command = commandService.getCommand( "name.abuchen.portfolio.ui.commands.openSampleCommand"); //$NON-NLS-1$ Map<String, String> parameters = new HashMap<String, String>(); parameters.put("name.abuchen.portfolio.ui.param.sample", file); // $NON-NLS-1$ ParameterizedCommand parameterized = ParameterizedCommand.generateCommand(command, parameters); handlerService.executeCommand(parameterized, null); PlatformUI.getWorkbench().getIntroManager().closeIntro(this); }