@Override public void update() { findAnnotation(); setEnabled(true); // super.update() might change this later if (!mCanFix) { super.update(); } }
public void update() { findJavaAnnotation(); setEnabled(true); // super.update() might change this later if (fAnnotation instanceof OverrideIndicatorManager.OverrideIndicator) { initialize( fBundle, "JavaSelectAnnotationRulerAction.OpenSuperImplementation."); // $NON-NLS-1$ return; } if (fHasCorrection) { if (fAnnotation instanceof AssistAnnotation) initialize(fBundle, "JavaSelectAnnotationRulerAction.QuickAssist."); // $NON-NLS-1$ else initialize(fBundle, "JavaSelectAnnotationRulerAction.QuickFix."); // $NON-NLS-1$ return; } initialize(fBundle, "JavaSelectAnnotationRulerAction.GotoAnnotation."); // $NON-NLS-1$; super.update(); }