ICommandService commandService = ( ICommandService ) PlatformUI.getWorkbench().getAdapter(
ICommandService.class );
if ( commandService != null )
{
commandService.getCommand( newServer.getActionDefinitionId() ).setHandler(
new ActionHandler( newServer ) );
commandService.getCommand( openConfiguration.getActionDefinitionId() ).setHandler(
new ActionHandler( openConfiguration ) );
commandService.getCommand( delete.getActionDefinitionId() ).setHandler(
new ActionHandler( delete ) );
commandService.getCommand( rename.getActionDefinitionId() ).setHandler(
new ActionHandler( rename ) );
commandService.getCommand( run.getActionDefinitionId() ).setHandler( new ActionHandler( run ) );
commandService.getCommand( stop.getActionDefinitionId() )
.setHandler( new ActionHandler( stop ) );
commandService.getCommand( properties.getActionDefinitionId() ).setHandler(
new ActionHandler( properties ) );
}
}
}