// Here's the real object
Server server = ( Server ) selection.getFirstElement();
// Asking for confirmation
DeleteServerDialog dsd = new DeleteServerDialog( view.getSite().getShell(), server );
if ( dsd.open() == DeleteServerDialog.OK )
{
// Checking if the server is running
// If yes, we need to shut it down before removing its data
if ( server.getState() == ServerStateEnum.STARTED )
{