Bug 21047 code formatter availability inconsistent
Sometimes the hotkey (ctrl-shift-f) and the menu entry for formatting the source code are disabled, while the entry in the context menu is enabled and works as expected. I didn't find any patterns on when this occurs till now.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
AnnotationType.BOOKMARK,
		AnnotationType.TASK,
		AnnotationType.SEARCH_RESULT,
		AnnotationType.WARNING,
		AnnotationType.ERROR
	};
		
	
	
	protected ISavePolicy fSavePolicy;
	
	private JavaEditorErrorTickUpdater fJavaEditorErrorTickUpdater;
	
	private PaintManager fPaintManager;
	
	private BracketPainter fBracketPainter;
	
	private JavaPairMatcher fBracketMatcher;
	
	private LinePainter fLinePainter;
	
	private PrintMarginPainter fPrintMarginPainter;
	
	private ProblemPainter fProblemPainter;
	
	private TabConverter fTabConverter;
	
	private SelectionHistory fSelectionHistory;
	
	private IPropertyChangeListener fPropertyChangeListener= new PropertyChangeListener();