Bug 76579 Formatter setup export: If file exists, overwritten w/o warning [code formatter]
On exporting java code formatter settings: If the selected file already exists, it is overwritten without warning.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/CodingStyleConfigurationBlock.java
}
		
		public void update(Observable o, Object arg) {
			final int value= ((Integer)arg).intValue();
			switch (value) {
				case ProfileManager.PROFILE_CREATED_EVENT:
				case ProfileManager.PROFILE_DELETED_EVENT:
				case ProfileManager.SELECTION_CHANGED_EVENT:
				case ProfileManager.SETTINGS_CHANGED_EVENT:
					fJavaPreview.setWorkingValues(((ProfileManager)o).getSelected().getSettings());
					fJavaPreview.update();
			}
		}
		
	}
	
	/**
	 * Some Java source code used for preview.
	 */
	private final static String PREVIEW=
		"/**\n* " + 
		FormatterMessages.getString("CodingStyleConfigurationBlock.preview.title") + 
		"\n*/\n\n" + 
		"package mypackage; import java.util.LinkedList; public class MyIntStack {" + 
		"private final LinkedList fStack;" + 
		"public MyIntStack(){fStack= new LinkedList();}" + 
		"public int pop(){return ((Integer)fStack.removeFirst()).intValue();}" + 
		"public void push(int elem){fStack.addFirst(new Integer(elem));}" + 
		"public boolean isEmpty() {return fStack.isEmpty();}" + 
		"}";