Search in sources :

Example 1 with SourceComparator

use of org.eclipse.linuxtools.internal.rpm.ui.editor.parser.SourceComparator in project linuxtools by eclipse.

the class Specfile method getPatches.

public List<SpecfileSource> getPatches() {
    List<SpecfileSource> patchesList = new ArrayList<>(patches.values());
    Collections.sort(patchesList, new SourceComparator());
    return patchesList;
}
Also used : SpecfileSource(org.eclipse.linuxtools.internal.rpm.ui.editor.parser.SpecfileSource) ArrayList(java.util.ArrayList) SourceComparator(org.eclipse.linuxtools.internal.rpm.ui.editor.parser.SourceComparator)

Example 2 with SourceComparator

use of org.eclipse.linuxtools.internal.rpm.ui.editor.parser.SourceComparator in project linuxtools by eclipse.

the class Specfile method getSources.

public List<SpecfileSource> getSources() {
    List<SpecfileSource> sourcesList = new ArrayList<>(sources.values());
    Collections.sort(sourcesList, new SourceComparator());
    return sourcesList;
}
Also used : SpecfileSource(org.eclipse.linuxtools.internal.rpm.ui.editor.parser.SpecfileSource) ArrayList(java.util.ArrayList) SourceComparator(org.eclipse.linuxtools.internal.rpm.ui.editor.parser.SourceComparator)

Aggregations

ArrayList (java.util.ArrayList)2 SourceComparator (org.eclipse.linuxtools.internal.rpm.ui.editor.parser.SourceComparator)2 SpecfileSource (org.eclipse.linuxtools.internal.rpm.ui.editor.parser.SpecfileSource)2