diff options
Diffstat (limited to 'gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/ChangeInfo.java')
-rw-r--r-- | gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/ChangeInfo.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/ChangeInfo.java b/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/ChangeInfo.java index 0de8b6835c..866d74fe0e 100644 --- a/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/ChangeInfo.java +++ b/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/ChangeInfo.java @@ -134,10 +134,17 @@ public class ChangeInfo extends JavaScriptObject { private native String submittedRaw() /*-{ return this.submitted; }-*/; + public final native AccountInfo submitter() /*-{ return this.submitter; }-*/; + public final native boolean starred() /*-{ return this.starred ? true : false; }-*/; public final native boolean reviewed() /*-{ return this.reviewed ? true : false; }-*/; + public final native boolean isPrivate() /*-{ return this.is_private ? true : false; }-*/; + + public final native boolean + isWorkInProgress() /*-{ return this.work_in_progress ? true : false; }-*/; + public final native NativeMap<LabelInfo> allLabels() /*-{ return this.labels; }-*/; public final native LabelInfo label(String n) /*-{ return this.labels[n]; }-*/; @@ -410,8 +417,6 @@ public class ChangeInfo extends JavaScriptObject { public final native String name() /*-{ return this.name; }-*/; - public final native boolean draft() /*-{ return this.draft || false; }-*/; - public final native AccountInfo uploader() /*-{ return this.uploader; }-*/; public final native boolean isEdit() /*-{ return this._number == 0; }-*/; |