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
editMenu.getItem(8).setEnabled(enabled);
				leftAlignmentItem.setEnabled(enabled);
				centerAlignmentItem.setEnabled(enabled);
				rightAlignmentItem.setEnabled(enabled);
				justifyAlignmentItem.setEnabled(enabled);
				blockSelectionItem.setEnabled(!enabled);
			}
		});
		MenuItem justifyItem = new MenuItem(editMenu, SWT.CHECK);
		justifyItem.setText(getResourceString("Justify_menuitem")); 
		justifyItem.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent event) {
				MenuItem item = (MenuItem) event.widget;
				styledText.setJustify(item.getSelection());
				updateToolBar();
			}
		});
		justifyItem.setEnabled(false);
		MenuItem setFontItem = new MenuItem(editMenu, SWT.PUSH);
		setFontItem.setText(getResourceString("SetFont_menuitem")); 
		setFontItem.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent event) {
				FontDialog fontDialog = new FontDialog(shell);
				fontDialog.setFontList(styledText.getFont().getFontData());
				FontData data = fontDialog.open();
				if (data != null) {
					Font newFont = new Font(display, data);
					styledText.setFont(newFont);
					if (font != null) font.dispose();
					font = newFont;