Bug 34803 AddMethodDelegateAction includes System.out.println statements
Are these trace statements? Then we should use the options mechanism to enable them. If these are error messages then we should show a dialog to the user or log them in the log file. if (fgOverrideFinalsFlag) { System.out.println ("method final"); //$NON-NLS-1$ System.out.println (overwrittenMethod); }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
public void addListener(ILabelProviderListener listener) {
			fMethodLabel.addListener(listener);
		}
		public void dispose() {
			fMethodLabel.dispose();
		}
		public boolean isLabelProperty(Object element, String property) {
			return fMethodLabel.isLabelProperty(element, property);
		}
		public void removeListener(ILabelProviderListener listener) {
			fMethodLabel.removeListener(listener);
		}
	}
	
	private static class Methods2FieldSorter extends ViewerSorter {
		JavaElementSorter fSorter = new JavaElementSorter();
		public int category(Object element) {
			if (element instanceof Methods2Field)
				element = ((Methods2Field) element).fMethod;
			return fSorter.category(element);
		}
		public int compare(Viewer viewer, Object e1, Object e2) {
			if (e1 instanceof Methods2Field)
				e1 = ((Methods2Field) e1).fMethod;
			if (e2 instanceof Methods2Field)
				e2 = ((Methods2Field) e2).fMethod;
			return fSorter.compare(viewer, e1, e2);
		}
		public Collator getCollator() {
			return fSorter.getCollator();