@Override public String setProperty(String key, String newValue, IProgressMonitor monitor) { try { String oldValue = null; synchronized (this) { oldValue = super.setProperty(key, newValue, monitor); if (oldValue == newValue || (oldValue != null && oldValue.equals(newValue))) return oldValue; save(); } //force repository manager to reload this repository because it caches properties MetadataRepositoryManager manager = (MetadataRepositoryManager) getProvisioningAgent().getService(IMetadataRepositoryManager.SERVICE_NAME); if (manager.removeRepository(getLocation())) manager.addRepository(this); return oldValue; } finally { if (monitor != null) monitor.done(); } }
@Override public String setProperty(String key, String newValue, IProgressMonitor monitor) { try { String oldValue = null; synchronized (this) { oldValue = super.setProperty(key, newValue, monitor); if (oldValue == newValue || (oldValue != null && oldValue.equals(newValue))) return oldValue; save(); } //force repository manager to reload this repository because it caches properties MetadataRepositoryManager manager = (MetadataRepositoryManager) getProvisioningAgent().getService(IMetadataRepositoryManager.SERVICE_NAME); if (manager.removeRepository(getLocation())) manager.addRepository(this); return oldValue; } finally { if (monitor != null) monitor.done(); } }
@Override public String setProperty(String key, String newValue, IProgressMonitor monitor) { try { String oldValue = null; synchronized (this) { oldValue = super.setProperty(key, newValue, monitor); if (oldValue == newValue || (oldValue != null && oldValue.equals(newValue))) return oldValue; save(); } //force repository manager to reload this repository because it caches properties MetadataRepositoryManager manager = (MetadataRepositoryManager) getProvisioningAgent().getService(IMetadataRepositoryManager.SERVICE_NAME); if (manager.removeRepository(getLocation())) manager.addRepository(this); return oldValue; } finally { if (monitor != null) monitor.done(); } }