comparison dwtx/jface/text/source/projection/ProjectionViewer.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
253 return fragments is null ? 0 : fragments.length; 253 return fragments is null ? 0 : fragments.length;
254 } catch (BadLocationException x) { 254 } catch (BadLocationException x) {
255 } 255 }
256 break; 256 break;
257 } 257 }
258 default:
258 } 259 }
259 return 0; 260 return 0;
260 } 261 }
261 } 262 }
262 263
1070 break; 1071 break;
1071 case ProjectionCommand.INVALIDATE_PRESENTATION: 1072 case ProjectionCommand.INVALIDATE_PRESENTATION:
1072 if (fireRedraw) 1073 if (fireRedraw)
1073 invalidateTextPresentation(command.fOffset, command.fLength); 1074 invalidateTextPresentation(command.fOffset, command.fLength);
1074 break; 1075 break;
1076 default:
1075 } 1077 }
1076 } 1078 }
1077 1079
1078 commandQueue.clear(); 1080 commandQueue.clear();
1079 } 1081 }
1465 expandAll(); 1467 expandAll();
1466 disableProjection(); 1468 disableProjection();
1467 } 1469 }
1468 return; 1470 return;
1469 } 1471 }
1472 default:
1470 } 1473 }
1471 1474
1472 if (!isProjectionMode()) { 1475 if (!isProjectionMode()) {
1473 super.doOperation(operation); 1476 super.doOperation(operation);
1474 return; 1477 return;
1568 case EXPAND: 1571 case EXPAND:
1569 case EXPAND_ALL: 1572 case EXPAND_ALL:
1570 return isProjectionMode(); 1573 return isProjectionMode();
1571 case TOGGLE: 1574 case TOGGLE:
1572 return isProjectionMode() || !isSegmented(); 1575 return isProjectionMode() || !isSegmented();
1576 default:
1573 } 1577 }
1574 1578
1575 return super.canDoOperation(operation); 1579 return super.canDoOperation(operation);
1576 } 1580 }
1577 1581