(IHandlerService) getSite().getService(IHandlerService.class);
ICommandService commandService =
(ICommandService) getSite().getService(ICommandService.class);
Command cmd = commandService.getCommand("net.sf.logsaw.ui.commands.AddLogResourceCommand"); //$NON-NLS-1$
try {
Parameterization param = new Parameterization(
cmd.getParameter("net.sf.logsaw.ui.commands.AddLogResourceCommand.filename"), ((String[]) target)[0]); //$NON-NLS-1$
ParameterizedCommand paraCmd = new ParameterizedCommand(cmd, new Parameterization[] {param});
handlerService.executeCommand(paraCmd, null);
} catch (CommandException e) {
// log and show error