Option to display line endings
Displays Windows EOL/Cr-Lf on patch diff screen. This is optional and is controlled by a checkbox. A new column show_line_endings is added in account_diff_preferences. Display is similar to gitweb i.e. '\r' in dotted-line box Bug: issue 626 Change-Id: I6128575bd2f0869a3c59e3d2fd409d5ee431ecc5
This commit is contained in:
		
				
					committed by
					
						
						Sasa Zivkov
					
				
			
			
				
	
			
			
			
						parent
						
							e6ec46892f
						
					
				
				
					commit
					632653c2d0
				
			@@ -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());
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user