org.xtext.gradle.idea.tasks.IdeaPluginRepositories Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtext-idea-gradle-plugin Show documentation
Show all versions of xtext-idea-gradle-plugin Show documentation
A plugin for for building IntelliJ IDEA Xtext plugins
package org.xtext.gradle.idea.tasks;
import java.util.Comparator;
import java.util.Iterator;
import java.util.TreeSet;
import org.eclipse.xtext.xbase.lib.CollectionLiterals;
import org.xtext.gradle.idea.tasks.IdeaPluginRepository;
@SuppressWarnings("all")
public class IdeaPluginRepositories implements Iterable {
private final TreeSet repositories = CollectionLiterals.newTreeSet(new Comparator() {
@Override
public int compare(final IdeaPluginRepository $0, final IdeaPluginRepository $1) {
String _url = $0.getUrl();
String _url_1 = $1.getUrl();
return _url.compareTo(_url_1);
}
});
public void url(final String url) {
IdeaPluginRepository _ideaPluginRepository = new IdeaPluginRepository(url);
this.repositories.add(_ideaPluginRepository);
}
@Override
public Iterator iterator() {
return this.repositories.iterator();
}
}