@Override public void setEnabled(URI location, boolean enablement) { delegate.setEnabled(location, enablement); }
@Override public void setEnabled(URI location, boolean enablement) { delegate.setEnabled(translate(location), enablement); }
private static void setColocatedRepositoryEnablement(ProvisioningUI ui, URI location, boolean enable) { ProvUI.getArtifactRepositoryManager(ui.getSession()).setEnabled(location, enable); ProvUI.getMetadataRepositoryManager(ui.getSession()).setEnabled(location, enable); }
private IArtifactRepository load(URI repoURI, IProgressMonitor monitor) throws ProvisionException { // make sure we are dealing with an absolute location repoURI = URIUtil.makeAbsolute(repoURI, getLocation()); boolean loaded = getManager().contains(repoURI); IArtifactRepository repo = getManager().loadRepository(repoURI, monitor); if (!loaded) { //set enabled to false so repositories do not get polled twice getManager().setEnabled(repoURI, false); //set repository to system to hide from users getManager().setRepositoryProperty(repoURI, IRepository.PROP_SYSTEM, String.valueOf(true)); } return repo; }
private IArtifactRepository load(URI repoURI, IProgressMonitor monitor) throws ProvisionException { // make sure we are dealing with an absolute location repoURI = URIUtil.makeAbsolute(repoURI, getLocation()); boolean loaded = getManager().contains(repoURI); IArtifactRepository repo = getManager().loadRepository(repoURI, monitor); if (!loaded) { //set enabled to false so repositories do not get polled twice getManager().setEnabled(repoURI, false); //set repository to system to hide from users getManager().setRepositoryProperty(repoURI, IRepository.PROP_SYSTEM, String.valueOf(true)); } return repo; }
private IArtifactRepository load(URI repoURI, IProgressMonitor monitor) throws ProvisionException { // make sure we are dealing with an absolute location repoURI = URIUtil.makeAbsolute(repoURI, getLocation()); boolean loaded = getManager().contains(repoURI); IArtifactRepository repo = getManager().loadRepository(repoURI, monitor); if (!loaded) { //set enabled to false so repositories do not get polled twice getManager().setEnabled(repoURI, false); //set repository to system to hide from users getManager().setRepositoryProperty(repoURI, IRepository.PROP_SYSTEM, String.valueOf(true)); } return repo; }
private IArtifactRepository load(URI repoURI, IProgressMonitor monitor) throws ProvisionException { // make sure we are dealing with an absolute location repoURI = URIUtil.makeAbsolute(repoURI, getLocation()); boolean loaded = getManager().contains(repoURI); IArtifactRepository repo = getManager().loadRepository(repoURI, monitor); if (!loaded) { //set enabled to false so repositories do not get polled twice getManager().setEnabled(repoURI, false); //set repository to system to hide from users getManager().setRepositoryProperty(repoURI, IRepository.PROP_SYSTEM, String.valueOf(true)); } return repo; }