public IStatus uninstall(PluginVersion version) {
ServiceReference addOnServiceReference = null;
try {
addOnServiceReference = getAddOnService(addOnServiceReference);
if (addOnServiceReference != null) {
PluginService service = (PluginService) framework.getBundleContext().getService(addOnServiceReference);
InstallOrUpgradeStatus result = service.remove(version);
if (result == InstallOrUpgradeStatus.SUCCESS) {
return Status.OK_STATUS;
}
else {
return new Status(IStatus.ERROR, RooCoreActivator.PLUGIN_ID, "Operation failed.");