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
}
				}
			}
		});
		shell.addControlListener(new ControlAdapter() {
			public void controlResized(ControlEvent event) {
				handleResize(event);
			}
		});
	}
	Image loadImage(Display display, String fileName) {
		Image image = null; 
		try {
			InputStream sourceStream = getClass().getResourceAsStream(fileName + ".ico");  
			ImageData source = new ImageData(sourceStream);
			ImageData mask = source.getTransparencyMask();
			image = new Image(display, source, mask);
			sourceStream.close();
		} catch (IOException e) {
			showError(getResourceString("Error"), e.getMessage()); 
		}
		return image;
	}
	void loadProfile(int profile) {
		try {
			switch (profile) {
				case 1: {
					String text = openFile(TextEditor.class.getResourceAsStream("text.txt"));  
					StyleRange[] styles = getStyles(TextEditor.class.getResourceAsStream("styles.txt"));  
					styledText.setText(text);