Bug 269599 Compiler warnings in N20090320-2000
1. WARNING in /src/org/eclipse/swt/examples/texteditor/TextEditor.java (at line 760) baselineUpItem.setToolTipText(getResourceString(USE_BASELINE ? "IncreaseBaseline" : "IncreaseFont")); //$NON-NLS-1$ Dead code 2. WARNING in /src/org/eclipse/swt/examples/texteditor/TextEditor.java (at line 774) baselineDownItem.setToolTipText(getResourceString(USE_BASELINE ? "DecreaseBaseline" : "DecreaseFont")); //$NON-NLS-1$ Dead code
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/TextEditor.java
int[] ranges = {offset, 1};
		StyleRange[] styles = {style};
		styledText.setStyleRanges(0,0, ranges, styles);
	}
	
	void adjustFontSize (int increment) {
		String name = fontNameControl.getText();
		int index = fontSizeControl.getSelectionIndex();
		String newSize = "0";
		if (index + increment < fontSizeControl.getItemCount()) {
			int newIndex = index + increment;
			fontSizeControl.select (newIndex);
			newSize = fontSizeControl.getItem(newIndex);
		} else {
			newSize = fontSizeControl.getText();
		}
		int size = Integer.parseInt (newSize);
		disposeResource(textFont);
		textFont = new Font(display, name, size, SWT.NORMAL);
		setStyle(FONT);
	}
	void createMenuBar() {
		Menu menu = new Menu(shell, SWT.BAR);
		shell.setMenuBar(menu);
		MenuItem fileItem = new MenuItem(menu, SWT.CASCADE);
		Menu fileMenu = new Menu(shell, SWT.DROP_DOWN);
		fileItem.setText(getResourceString("File_menuitem")); 
		fileItem.setMenu(fileMenu);		
		
		MenuItem openItem = new MenuItem(fileMenu, SWT.PUSH);