Examples of addAnnotationModel()


Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

   
    IAnnotationModelExtension modelExtension=(IAnnotationModelExtension) annotationModel;
    modelExtension.removeAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID);
   

    modelExtension.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, newDiffer);
   
    if (fDelegate instanceof IChangeRulerColumn)
      ((IChangeRulerColumn) fDelegate).setModel(annotationModel); // picks up the new model attachment
   
    return true;
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

        String defaultId= store.getString(AbstractDecoratedTextEditorPreferenceConstants.QUICK_DIFF_DEFAULT_PROVIDER);
        differ= new QuickDiff().createQuickDiffAnnotationModel(getEditor(), defaultId);
        if (differ != null) {
          if (model == null)
            model= new AnnotationModel();
          model.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, differ);
        }
      }
    } else if (differ instanceof ILineDifferExtension2) {
      if (((ILineDifferExtension2) differ).isSuspended())
        ((ILineDifferExtension) differ).resume();
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

    DocumentLineDiffer differ= (DocumentLineDiffer)model.getAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID);

    // create if needed
    if (differ == null && createIfNeeded) {
      differ= new DocumentLineDiffer();
      model.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, differ);
    }

    return differ;
  }
}
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

        IAnnotationModel model= sv.getAnnotationModel();
        if (model instanceof IAnnotationModelExtension) {
          IAnnotationModelExtension ext= (IAnnotationModelExtension) model;
          IAnnotationModel ourModel= ext.getAnnotationModel(getUniqueKey());
          if (ourModel == null) {
            ext.addAnnotationModel(getUniqueKey(), lpa);
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

   * @param model the model to which the projection annotation model is added
   */
  private void addProjectionAnnotationModel(IAnnotationModel model) {
    if (model instanceof IAnnotationModelExtension) {
      IAnnotationModelExtension extension= (IAnnotationModelExtension) model;
      extension.addAnnotationModel(ProjectionSupport.PROJECTION, fProjectionAnnotationModel);
      model.addAnnotationModelListener(fAnnotationModelListener);
    }
  }

  /**
 
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

    IDocument document = editor.getDocumentProvider().getDocument(editor.getEditorInput());
   
    CoverageAnnotationModel coveragemodel = (CoverageAnnotationModel) modelex.getAnnotationModel(KEY);
    if (coveragemodel == null) {
      coveragemodel = new CoverageAnnotationModel(editor, document);
      modelex.addAnnotationModel(KEY, coveragemodel);
    }
  }
 
  /**
   * Detaches the coverage annotation model from the given editor. If the editor
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

    CoverageAnnotationModel coveragemodel = (CoverageAnnotationModel) modelex
        .getAnnotationModel(KEY);
    if (coveragemodel == null) {
      coveragemodel = new CoverageAnnotationModel(editor, document);
      modelex.addAnnotationModel(KEY, coveragemodel);
    }
  }

  /**
   * Detaches the coverage annotation model from the given editor. If the editor
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

    CoverageAnnotationModel coveragemodel = (CoverageAnnotationModel) modelex
        .getAnnotationModel(KEY);
    if (coveragemodel == null) {
      coveragemodel = new CoverageAnnotationModel(editor, document);
      modelex.addAnnotationModel(KEY, coveragemodel);
    }
  }

  /**
   * Detaches the coverage annotation model from the given editor. If the editor
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

    IDocument document = provider.getDocument(editor.getEditorInput());
   
    CoverageAnnotationModel coveragemodel = (CoverageAnnotationModel) modelex.getAnnotationModel(KEY);
    if (coveragemodel == null) {
      coveragemodel = new CoverageAnnotationModel(editor, document);
      modelex.addAnnotationModel(KEY, coveragemodel);
    }
  }
 
  /**
   * Detaches the coverage annotation model from the given editor. If the editor
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel()

    IDocument document = editor.getDocumentProvider().getDocument(editor.getEditorInput());
   
    CoverageAnnotationModel coveragemodel = (CoverageAnnotationModel) modelex.getAnnotationModel(KEY);
    if (coveragemodel == null) {
      coveragemodel = new CoverageAnnotationModel(editor, document);
      modelex.addAnnotationModel(KEY, coveragemodel);
    }
  }
 
  /**
   * Detaches the coverage annotation model from the given editor. If the editor
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.