Merge "Option to display line endings"

This commit is contained in:
Edwin Kempin
2012-07-30 03:15:13 -07:00
committed by gerrit code review
9 changed files with 120 additions and 25 deletions

View File

@@ -75,6 +75,9 @@ public class PatchScriptSettingsPanel extends Composite implements
@UiField
CheckBox whitespaceErrors;
@UiField
CheckBox showLineEndings;
@UiField
CheckBox showTabs;
@@ -210,6 +213,7 @@ public class PatchScriptSettingsPanel extends Composite implements
colWidth.setIntValue(dp.getLineLength());
intralineDifference.setValue(dp.isIntralineDifference());
whitespaceErrors.setValue(dp.isShowWhitespaceErrors());
showLineEndings.setValue(dp.isShowLineEndings());
showTabs.setValue(dp.isShowTabs());
skipDeleted.setValue(dp.isSkipDeleted());
skipUncommented.setValue(dp.isSkipUncommented());
@@ -242,6 +246,7 @@ public class PatchScriptSettingsPanel extends Composite implements
dp.setSyntaxHighlighting(syntaxHighlighting.getValue());
dp.setIntralineDifference(intralineDifference.getValue());
dp.setShowWhitespaceErrors(whitespaceErrors.getValue());
dp.setShowLineEndings(showLineEndings.getValue());
dp.setShowTabs(showTabs.getValue());
dp.setSkipDeleted(skipDeleted.getValue());
dp.setSkipUncommented(skipUncommented.getValue());

View File

@@ -108,8 +108,8 @@ limitations under the License.
</g:CheckBox>
<br/>
<g:CheckBox
ui:field='showTabs'
text='Show Tabs'
ui:field='showLineEndings'
text='Show Line Endings'
tabIndex='8'>
<ui:attribute name='text'/>
</g:CheckBox>
@@ -117,15 +117,15 @@ limitations under the License.
<td rowspan='2'>
<g:CheckBox
ui:field='expandAllComments'
text='Expand All Comments'
ui:field='showTabs'
text='Show Tabs'
tabIndex='9'>
<ui:attribute name='text'/>
</g:CheckBox>
<br/>
<g:CheckBox
ui:field='retainHeader'
text='Retain Header On File Switch'
ui:field='expandAllComments'
text='Expand All Comments'
tabIndex='10'>
<ui:attribute name='text'/>
</g:CheckBox>
@@ -133,25 +133,32 @@ limitations under the License.
<td rowspan='2'>
<g:CheckBox
ui:field='skipUncommented'
text='Skip Uncommented Files'
ui:field='retainHeader'
text='Retain Header On File Switch'
tabIndex='11'>
<ui:attribute name='text'/>
</g:CheckBox>
<br/>
<g:CheckBox
ui:field='skipDeleted'
text='Skip Deleted Files'
ui:field='skipUncommented'
text='Skip Uncommented Files'
tabIndex='12'>
<ui:attribute name='text'/>
</g:CheckBox>
</td>
<td valign='bottom' rowspan='2'>
<g:CheckBox
ui:field='skipDeleted'
text='Skip Deleted Files'
tabIndex='13'>
<ui:attribute name='text'/>
</g:CheckBox>
<br/>
<g:CheckBox
ui:field='manualReview'
text='Manual Review'
tabIndex='13'>
tabIndex='14'>
<ui:attribute name='text'/>
</g:CheckBox>
</td>
@@ -162,14 +169,14 @@ limitations under the License.
ui:field='update'
text='Update'
styleName='{style.updateButton}'
tabIndex='14'>
tabIndex='15'>
<ui:attribute name='text'/>
</g:Button>
<g:Button
ui:field='save'
text='Save'
styleName='{style.updateButton}'
tabIndex='15'>
tabIndex='16'>
<ui:attribute name='text'/>
</g:Button>
</td>