/** * @deprecated */ public void addDescriptor(IArtifactDescriptor descriptor) { this.addDescriptor(descriptor, new NullProgressMonitor()); }
/** * @deprecated */ public void addDescriptors(IArtifactDescriptor[] descriptors) { this.addDescriptors(descriptors, new NullProgressMonitor()); }
/** * {@inheritDoc} * @since 2.1 */ public void removeDescriptors(IArtifactDescriptor[] descriptors, IProgressMonitor monitor) { assertModifiable(); }
private String doSetProperty(String key, String newValue, IProgressMonitor monitor, boolean save) { String oldValue = super.setProperty(key, newValue, new NullProgressMonitor()); if (oldValue == newValue || (oldValue != null && oldValue.equals(newValue))) return oldValue; if (PUBLISH_PACK_FILES_AS_SIBLINGS.equals(key)) { synchronized (this) { if (Boolean.TRUE.toString().equals(newValue)) { mappingRules = PACKED_MAPPING_RULES; } else { mappingRules = DEFAULT_MAPPING_RULES; } initializeMapper(); } } if (save) save(); return oldValue; }
public <T> T getAdapter(Class<T> adapter) { // if we are adapting to file or writable repositories then make sure we have a file location if (adapter == IFileArtifactRepository.class) if (!isLocal()) return null; return super.getAdapter(adapter); }
public String setProperty(String key, String newValue, IProgressMonitor monitor) { boolean lockAcquired = false; try { if (canLock()) { lockAcquired = lockAndLoad(false, monitor); if (!lockAcquired) return super.getProperty(key); } return doSetProperty(key, newValue, monitor, true); } finally { if (lockAcquired) unlock(); } }
/** * @deprecated */ public void removeDescriptor(IArtifactDescriptor descriptor) { this.removeDescriptor(descriptor, new NullProgressMonitor()); }
/** * {@inheritDoc} * @since 2.1 * @deprecated ?? Strange that we added an API and then deprecated it */ public void removeDescriptors(IArtifactKey[] keys) { this.removeDescriptors(keys, new NullProgressMonitor()); }
public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AbstractArtifactRepository)) { return false; } if (URIUtil.sameURI(getLocation(), ((AbstractArtifactRepository) o).getLocation())) return true; return false; }
/** * @deprecated */ public void removeAll() { this.removeAll(new NullProgressMonitor()); }
private String doSetProperty(String key, String newValue, IProgressMonitor monitor, boolean save) { String oldValue = super.setProperty(key, newValue, new NullProgressMonitor()); if (oldValue == newValue || (oldValue != null && oldValue.equals(newValue))) return oldValue; if (PUBLISH_PACK_FILES_AS_SIBLINGS.equals(key)) { synchronized (this) { if (Boolean.TRUE.toString().equals(newValue)) { mappingRules = PACKED_MAPPING_RULES; } else { mappingRules = DEFAULT_MAPPING_RULES; } initializeMapper(); } } if (save) save(); return oldValue; }
@SuppressWarnings("rawtypes") public Object getAdapter(Class adapter) { // if we are adapting to file or writable repositories then make sure we have a file location if (adapter == IFileArtifactRepository.class) if (!isLocal()) return null; return super.getAdapter(adapter); }
public String setProperty(String key, String newValue, IProgressMonitor monitor) { boolean lockAcquired = false; try { if (canLock()) { lockAcquired = lockAndLoad(false, monitor); if (!lockAcquired) return super.getProperty(key); } return doSetProperty(key, newValue, monitor, true); } finally { if (lockAcquired) unlock(); } }
/** * @deprecated */ public void removeDescriptor(IArtifactDescriptor descriptor) { this.removeDescriptor(descriptor, new NullProgressMonitor()); }
/** * {@inheritDoc} * @since 2.1 * @deprecated ?? Strange that we added an API and then deprecated it */ public void removeDescriptors(IArtifactKey[] keys) { this.removeDescriptors(keys, new NullProgressMonitor()); }
public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AbstractArtifactRepository)) { return false; } if (URIUtil.sameURI(getLocation(), ((AbstractArtifactRepository) o).getLocation())) return true; return false; }
/** * @deprecated */ public void removeAll() { this.removeAll(new NullProgressMonitor()); }
private String doSetProperty(String key, String newValue, IProgressMonitor monitor, boolean save) { String oldValue = super.setProperty(key, newValue, new NullProgressMonitor()); if (oldValue == newValue || (oldValue != null && oldValue.equals(newValue))) return oldValue; if (PUBLISH_PACK_FILES_AS_SIBLINGS.equals(key)) { synchronized (this) { if (Boolean.TRUE.toString().equals(newValue)) { mappingRules = PACKED_MAPPING_RULES; } else { mappingRules = DEFAULT_MAPPING_RULES; } initializeMapper(); } } if (save) save(); return oldValue; }
public <T> T getAdapter(Class<T> adapter) { // if we are adapting to file or writable repositories then make sure we have a file location if (adapter == IFileArtifactRepository.class) if (!isLocal()) return null; return super.getAdapter(adapter); }
public String setProperty(String key, String newValue, IProgressMonitor monitor) { boolean lockAcquired = false; try { if (canLock()) { lockAcquired = lockAndLoad(false, monitor); if (!lockAcquired) return super.getProperty(key); } return doSetProperty(key, newValue, monitor, true); } finally { if (lockAcquired) unlock(); } }