Exception should be changed to org.eclipse.core.commands.common.CommandException