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
IPreferenceStore store,
		String name,
		Rectangle value) {
		Rectangle oldValue = getRectangle(store, name);
		if (oldValue == null || !oldValue.equals(value)) {
			store.putValue(name, StringConverter.asString(value));
			store.firePropertyChangeEvent(name, oldValue, value);
		}
	}
	/**
	 * Sets the current value of the preference with the given name
	 * in the given preference store.
	 *
	 * @param store the preference store
	 * @param name the name of the preference
	 * @param value the new current value of the preference
	 */
	public static void setValue(
		IPreferenceStore store,
		String name,
		RGB value) {
		RGB oldValue = getColor(store, name);
		if (oldValue == null || !oldValue.equals(value)) {
			store.putValue(name, StringConverter.asString(value));
			store.firePropertyChangeEvent(name, oldValue, value);
			JFaceColors.clearColor(name);
		}
	}
}