Mercurial > projects > dwt-addons
comparison dwtx/jface/internal/text/source/DiffPainter.d @ 192:c3583c6ec027
Added missing default cases for switch statements
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 03 Nov 2008 22:52:26 +0100 |
parents | 1a5b8f8129df |
children |
comparison
equal
deleted
inserted
replaced
191:1ef729510ed6 | 192:c3583c6ec027 |
---|---|
302 ret= getShadedColor(fChangedColor); | 302 ret= getShadedColor(fChangedColor); |
303 break; | 303 break; |
304 case ILineDiffInfo.ADDED: | 304 case ILineDiffInfo.ADDED: |
305 ret= getShadedColor(fAddedColor); | 305 ret= getShadedColor(fAddedColor); |
306 break; | 306 break; |
307 default: | |
307 } | 308 } |
308 return ret is null ? getBackground() : ret; | 309 return ret is null ? getBackground() : ret; |
309 } | 310 } |
310 | 311 |
311 /** | 312 /** |
483 switch (info.getChangeType()) { | 484 switch (info.getChangeType()) { |
484 case ILineDiffInfo.CHANGED: | 485 case ILineDiffInfo.CHANGED: |
485 return "~"; //$NON-NLS-1$ | 486 return "~"; //$NON-NLS-1$ |
486 case ILineDiffInfo.ADDED: | 487 case ILineDiffInfo.ADDED: |
487 return "+"; //$NON-NLS-1$ | 488 return "+"; //$NON-NLS-1$ |
489 default: | |
488 } | 490 } |
489 return " "; //$NON-NLS-1$ | 491 return " "; //$NON-NLS-1$ |
490 } | 492 } |
491 | 493 |
492 /** | 494 /** |