private void uninstallSelectionListener() { if (fListener != null) { SelectionListenerWithASTManager.getDefault().removeListener(fEditor, fListener); fListener= null; } IAnnotationModel model= getAnnotationModel(); if (model != null) { removeLightBulb(model); } }
private void uninstallSelectionListener() { if (fListener != null) { SelectionListenerWithASTManager.getDefault().removeListener(fEditor, fListener); fListener= null; } IAnnotationModel model= getAnnotationModel(); if (model != null) { removeLightBulb(model); } }
private void uninstallSelectionListener() { if (fListener != null) { SelectionListenerWithASTManager.getDefault().removeListener(fEditor, fListener); fListener= null; } IAnnotationModel model= getAnnotationModel(); if (model != null) { removeLightBulb(model); } }
private void doSelectionChanged(int offset, int length, CompilationUnit astRoot) { final IAnnotationModel model= getAnnotationModel(); final ICompilationUnit cu= getCompilationUnit(); if (model == null || cu == null) { return; } final AssistContext context= new AssistContext(cu, offset, length); context.setASTRoot(astRoot); boolean hasQuickFix= hasQuickFixLightBulb(model, context.getSelectionOffset()); if (hasQuickFix) { removeLightBulb(model); return; // there is already a quick fix light bulb at the new location } calculateLightBulb(model, context); }
private void doSelectionChanged(int offset, int length, CompilationUnit astRoot) { final IAnnotationModel model= getAnnotationModel(); final ICompilationUnit cu= getCompilationUnit(); if (model == null || cu == null) { return; } final AssistContext context= new AssistContext(cu, offset, length); context.setASTRoot(astRoot); boolean hasQuickFix= hasQuickFixLightBulb(model, context.getSelectionOffset()); if (hasQuickFix) { removeLightBulb(model); return; // there is already a quick fix light bulb at the new location } calculateLightBulb(model, context); }
private void doSelectionChanged(int offset, int length, CompilationUnit astRoot) { final IAnnotationModel model= getAnnotationModel(); final ICompilationUnit cu= getCompilationUnit(); if (model == null || cu == null) { return; } final AssistContext context= new AssistContext(cu, offset, length); context.setASTRoot(astRoot); boolean hasQuickFix= hasQuickFixLightBulb(model, context.getSelectionOffset()); if (hasQuickFix) { removeLightBulb(model); return; // there is already a quick fix light bulb at the new location } calculateLightBulb(model, context); }