Bug 7122 Action Cleanup/Dispose
It would nice to have a package that was strictly for actions...just like jdt debug ui. org.eclipse.debug.iternal.ui.actions
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
private String fErrorMessage;
		private boolean fHasAdjacentVariables;
		private boolean fEndsWithVariable;
		
		public void reset() {
			fErrorMessage= null;
			fHasAdjacentVariables= false;
			fEndsWithVariable= false;
		}
		public void acceptError(String message) {
			if (fErrorMessage == null)
				fErrorMessage= message;
		}
		public void acceptText(String text) {
			if (text.length() > 0)
				fEndsWithVariable= false;
		}