Bug 30344 Insertion of 'scrapbook' error messages unhelpful
When an error occurs in the scrapbook (e.g. a syntax error) or a result is returned, the scrapbook inserts text in the scrapbook page (which is what VAJ used to do). This has always been remarkably unhelpful; if the developer does not delete the message/result straight away then when selecting a block of text next time may end up with the error message being interpreted, which gives a further error message ad tedium. It would be much better if a pop-up-dialog box was used to indicate of a result/error that could be dismissed leaving the source code intact, or alternatively displaying the result using another mechanism (pop-up text, console for standard output/error etc.)
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceConverter.java
static {
		FONTDATA_DEFAULT_DEFAULT = FONTDATA_ARRAY_DEFAULT_DEFAULT[0];
	}
	/* (non-Javadoc)
	 * private constructor to prevent instantiation.
	 */
	private PreferenceConverter() {
	}
	/**
	 * Helper method to construct a color from the given string.
	 */
	private static RGB basicGetColor(String value) {
		if (IPreferenceStore.STRING_DEFAULT_DEFAULT.equals(value))
			return COLOR_DEFAULT_DEFAULT;
		RGB color = StringConverter.asRGB(value, null);
		if (color == null)
			return COLOR_DEFAULT_DEFAULT;
		return color;
	}
	/**
	 * Helper method to construct a <code>FontData</code> from the given string.
	 * String is in the form FontData;FontData; in order that
	 * multiple FontDatas can be defined.
	 */
	private static FontData[] basicGetFontData(String value) {
		if (IPreferenceStore.STRING_DEFAULT_DEFAULT.equals(value))
			return FONTDATA_ARRAY_DEFAULT_DEFAULT;
		
		StringTokenizer tokenizer = new StringTokenizer(value, ENTRY_SEPARATOR);
		int numTokens = tokenizer.countTokens();