Add ui preference to render entire file.

This will cause all lines in the file to be added to the DOM.
While being slower (especially for large files) it allows the
browser handle searching the file contents.

Change-Id: I31a9ebb079ec38ecf4fdb62ec073043723fe586f
This commit is contained in:
Colby Ranger
2014-01-07 14:33:23 -08:00
parent be84639566
commit eee28b5caa
11 changed files with 91 additions and 2 deletions

View File

@@ -122,6 +122,9 @@ public class AccountDiffPreference {
@Column(id = 17)
protected boolean hideLineNumbers;
@Column(id = 18)
protected boolean renderEntireFile;
protected AccountDiffPreference() {
}
@@ -147,6 +150,7 @@ public class AccountDiffPreference {
this.manualReview = p.manualReview;
this.hideTopMenu = p.hideTopMenu;
this.hideLineNumbers = p.hideLineNumbers;
this.renderEntireFile = p.renderEntireFile;
}
public Account.Id getAccountId() {
@@ -283,4 +287,12 @@ public class AccountDiffPreference {
public void setHideLineNumbers(boolean hide) {
hideLineNumbers = hide;
}
public boolean isRenderEntireFile() {
return renderEntireFile;
}
public void setRenderEntireFile(boolean render) {
renderEntireFile = render;
}
}