Examples of IQuickFixableAnnotation


Examples of org.eclipse.jface.text.quickassist.IQuickFixableAnnotation

   * @return <code>true</code> if there is quick fix
   * @since 3.2
   */
  protected boolean hasQuickFix(Annotation annotation) {
    if (annotation instanceof IQuickFixableAnnotation) {
      IQuickFixableAnnotation quickFixableAnnotation= (IQuickFixableAnnotation)annotation;
      if (!quickFixableAnnotation.isQuickFixableStateSet())
        quickFixableAnnotation.setQuickFixable(fQuickAssistAssistant != null && fQuickAssistAssistant.canFix(annotation));
      return quickFixableAnnotation.isQuickFixable();
    }
    return false;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.