public void removeAllChildren() { childrenURIs.clear(); loadedRepos.clear(); save(); }
public void removeAllChildren() { childrenURIs.clear(); loadedRepos.clear(); save(); }
public void removeAllChildren() { childrenURIs.clear(); loadedRepos.clear(); save(); }
CompositeMetadataRepository(IMetadataRepositoryManager manager, URI location, String name, Map<String, String> properties) { super(manager.getAgent(), name == null ? (location != null ? location.toString() : "") : name, REPOSITORY_TYPE, REPOSITORY_VERSION.toString(), location, null, null, properties); //$NON-NLS-1$ this.manager = manager; //when creating a repository, we must ensure it exists on disk so a subsequent load will succeed save(); }
CompositeMetadataRepository(IMetadataRepositoryManager manager, URI location, String name, Map<String, String> properties) { super(manager.getAgent(), name == null ? (location != null ? location.toString() : "") : name, REPOSITORY_TYPE, REPOSITORY_VERSION.toString(), location, null, null, properties); //$NON-NLS-1$ this.manager = manager; //when creating a repository, we must ensure it exists on disk so a subsequent load will succeed save(); }
CompositeMetadataRepository(IMetadataRepositoryManager manager, URI location, String name, Map<String, String> properties) { super(manager.getAgent(), name == null ? (location != null ? location.toString() : "") : name, REPOSITORY_TYPE, REPOSITORY_VERSION.toString(), location, null, null, properties); //$NON-NLS-1$ this.manager = manager; //when creating a repository, we must ensure it exists on disk so a subsequent load will succeed save(); }
public void removeChild(URI childURI) { boolean removed = childrenURIs.remove(childURI); // if the child wasn't there make sure and try the other permutation // (absolute/relative) to see if it really is in the list. URI other = childURI.isAbsolute() ? URIUtil.makeRelative(childURI, getLocation()) : URIUtil.makeAbsolute(childURI, getLocation()); if (!removed) removed = childrenURIs.remove(other); if (removed) { // we removed the child from the list so remove the associated repo object as well IMetadataRepository found = null; for (IMetadataRepository current : loadedRepos) { URI repoLocation = current.getLocation(); if (URIUtil.sameURI(childURI, repoLocation) || URIUtil.sameURI(other, repoLocation)) { found = current; break; } } if (found != null) loadedRepos.remove(found); save(); } }
public void removeChild(URI childURI) { boolean removed = childrenURIs.remove(childURI); // if the child wasn't there make sure and try the other permutation // (absolute/relative) to see if it really is in the list. URI other = childURI.isAbsolute() ? URIUtil.makeRelative(childURI, getLocation()) : URIUtil.makeAbsolute(childURI, getLocation()); if (!removed) removed = childrenURIs.remove(other); if (removed) { // we removed the child from the list so remove the associated repo object as well IMetadataRepository found = null; for (IMetadataRepository current : loadedRepos) { URI repoLocation = current.getLocation(); if (URIUtil.sameURI(childURI, repoLocation) || URIUtil.sameURI(other, repoLocation)) { found = current; break; } } if (found != null) loadedRepos.remove(found); save(); } }
public void removeChild(URI childURI) { boolean removed = childrenURIs.remove(childURI); // if the child wasn't there make sure and try the other permutation // (absolute/relative) to see if it really is in the list. URI other = childURI.isAbsolute() ? URIUtil.makeRelative(childURI, getLocation()) : URIUtil.makeAbsolute(childURI, getLocation()); if (!removed) removed = childrenURIs.remove(other); if (removed) { // we removed the child from the list so remove the associated repo object as well IMetadataRepository found = null; for (IMetadataRepository current : loadedRepos) { URI repoLocation = current.getLocation(); if (URIUtil.sameURI(childURI, repoLocation) || URIUtil.sameURI(other, repoLocation)) { found = current; break; } } if (found != null) loadedRepos.remove(found); save(); } }
save(); try { boolean currentLoaded = getManager().contains(absolute);
save(); try { boolean currentLoaded = getManager().contains(absolute);
save(); try { boolean currentLoaded = getManager().contains(absolute);