Bug 79989 Should show members of annotation types as public
I20041201 With the following annotation type: public @interface X { int foo(); int bar(); } the members foo() and bar() don't appear public, wherease with the following interface: public interface I { int foo(); int bar(); } the methods foo() and bar() appear public. JavaElementImageProvider#getMethodImageDescriptor(...) checks if the type is an interface. It should also check if the type is an annotation type.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LinkedCorrectionProposal.java
JavaPlugin.log(e);
			}
		}	
		
		/*
		 * Returns the registered position for a given offset. 
		 */
		private Position getCurrentPosition(int offset) {
			if (fPositions != null) {
				for (Iterator it= fPositions.iterator(); it.hasNext();) {
					Position position= (Position) it.next();
					if (position.overlapsWith(offset, 0)) {
						return position;
					}
				}
			}
			return null;
		}
		
		/*
		 * Returns the region to be replaced by this proposal.
		 */
		private IRegion getReplaceRegion(ITextViewer viewer, int offset) {
			Position pos= getCurrentPosition(offset);
			if (pos != null)
				return new Region(pos.getOffset(), pos.getLength());
			
			Point point= viewer.getSelectedRange();
			return new Region(point.x, point.y);
		}