* If it is a snapshot or if any features will be disabled because of this.
* It should be called whenever we got some new connection status.
*/
public void checkGerritVersionFeatures() {
if (connected) {
GerritVersionNumber version =
GerritVersionChecker.createVersionNumber(getVersionString());
List<GerritVersionChecker.Feature> list = new LinkedList<GerritVersionChecker.Feature>();
for (GerritVersionChecker.Feature f : GerritVersionChecker.Feature.values()) {
if (!GerritVersionChecker.isCorrectVersion(version, f)) {
list.add(f);
}
}
disabledFeatures = list;
gerritSnapshotVersion = version.isSnapshot();
} else {
disabledFeatures = null;
gerritSnapshotVersion = false;
}
}