Package org.eclipse.ui.internal.texteditor.quickdiff

Examples of org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer$RangeDifferenceFactory


   * @return a quick diff annotation model
   */
  public IAnnotationModel createQuickDiffAnnotationModel(ITextEditor editor, String id) {
    IQuickDiffReferenceProvider provider= getReferenceProviderOrDefault(editor, id);
    if (provider != null) {
      DocumentLineDiffer differ= new DocumentLineDiffer();
      differ.setReferenceProvider(provider);
      return differ;
    }
    return null;
  }
View Full Code Here


   * @return the reference provider id, or the empty string for none
   * @since 3.2
   */
  public Object getConfiguredQuickDiffProvider(IAnnotationModel differ) {
    if (differ instanceof DocumentLineDiffer) {
      DocumentLineDiffer lineDiffer= (DocumentLineDiffer) differ;
      IQuickDiffReferenceProvider provider= lineDiffer.getReferenceProvider();
      if (provider != null)
        return provider.getId();
    }
    return ""; //$NON-NLS-1$
  }
View Full Code Here

   * @return a quick diff annotation model
   */
  public IAnnotationModel createQuickDiffAnnotationModel(ITextEditor editor, String id) {
    IQuickDiffReferenceProvider provider= getReferenceProviderOrDefault(editor, id);
    if (provider != null) {
      DocumentLineDiffer differ= new DocumentLineDiffer();
      differ.setReferenceProvider(provider);
      return differ;
    }
    return null;
  }
View Full Code Here

   * @return the reference provider id, or the empty string for none
   * @since 3.2
   */
  public Object getConfiguredQuickDiffProvider(IAnnotationModel differ) {
    if (differ instanceof DocumentLineDiffer) {
      DocumentLineDiffer lineDiffer= (DocumentLineDiffer) differ;
      IQuickDiffReferenceProvider provider= lineDiffer.getReferenceProvider();
      if (provider != null)
        return provider.getId();
    }
    return ""; //$NON-NLS-1$
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer$RangeDifferenceFactory

Copyright © 2018 www.massapicom. 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.