Support boolean project specific plugin parameters for edit in UI
Change-Id: I2a2955f3e1f158b5aa6d0f45fb5adf5ef7da6e84 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -19,7 +19,7 @@ import com.google.gerrit.extensions.annotations.ExtensionPoint;
|
||||
@ExtensionPoint
|
||||
public class ProjectConfigEntry {
|
||||
public enum Type {
|
||||
STRING, INT, LONG
|
||||
STRING, INT, LONG, BOOLEAN
|
||||
}
|
||||
|
||||
private final String displayName;
|
||||
@@ -38,6 +38,10 @@ public class ProjectConfigEntry {
|
||||
this(displayName, Long.toString(defaultValue), Type.LONG);
|
||||
}
|
||||
|
||||
public ProjectConfigEntry(String displayName, boolean defaultValue) {
|
||||
this(displayName, Boolean.toString(defaultValue), Type.BOOLEAN);
|
||||
}
|
||||
|
||||
private ProjectConfigEntry(String displayName, String defaultValue, Type type) {
|
||||
this.displayName = displayName;
|
||||
this.defaultValue = defaultValue;
|
||||
|
Reference in New Issue
Block a user