Examples of AnnotationModel


Examples of org.eclipse.jface.text.source.AnnotationModel

     */
    public void setDocument( IDocument document )
    {
        if ( sourceViewer.getAnnotationModel() == null )
        {
            IAnnotationModel model = new AnnotationModel();
            sourceViewer.setDocument( sourceViewer.getDocument(), model );
        }

        // add annotation painter
        if ( paintManager == null && sourceViewer.getAnnotationModel() instanceof IAnnotationModelExtension )
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationModel

    setBackground(getDisplay().getSystemColor(SWT.COLOR_WHITE));
    sashForm = new SashForm(this, SWT.VERTICAL);
   
    rootComposite = createRootComposite(sashForm);
    colors = new Colors(getDisplay());
    viewerAnnotationModel = new AnnotationModel();
    viewer = createSourceViewer(rootComposite, viewerAnnotationModel);
    viewer.getTextWidget().setWrapIndent(20);
    viewer.configure(new Configuration(colors));
    createViewerActions(viewer);
    projectionSupport = new ProjectionSupport(viewer,new ProjectionAnnotationAccess(), colors);
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationModel

 
  private void displayNewDocument()  {
    if(activeDocument == null) {
      return;
    }
    final AnnotationModel model = new AnnotationModel();
    viewer.disableProjection();
    final boolean wwflag = viewer.getTextWidget().getWordWrap();
    if(wwflag) viewer.getTextWidget().setWordWrap(false);
    viewer.setDocument(activeDocument.getDocument(), model);
    if(wwflag) viewer.getTextWidget().setWordWrap(true);
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationModel

    // TODO Auto-generated constructor stub
  }

  @Override
  protected IAnnotationModel createAnnotationModel(Object element) throws CoreException {
    return new AnnotationModel();
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationModel

     */
    public void setDocument( IDocument document )
    {
        if ( sourceViewer.getAnnotationModel() == null )
        {
            IAnnotationModel model = new AnnotationModel();
            sourceViewer.setDocument( sourceViewer.getDocument(), model );
        }

        // add annotation painter
        if ( paintManager == null && sourceViewer.getAnnotationModel() instanceof IAnnotationModelExtension )
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationModel

      boolean readOnly,
      int styles) {
    super(parent, styles);
    setLayout(new FillLayout());

    AnnotationModel annotationModel = new AnnotationModel();
    sourceViewer = new SourceViewer(this, null, null, true, SWT.MULTI
        | SWT.V_SCROLL | SWT.WRAP);
    getTextWidget().setAlwaysShowScrollBars(false);
    getTextWidget().setFont(UIUtils
        .getFont(UIPreferences.THEME_CommitMessageEditorFont));
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationModel

      // we can only create a resource marker annotationmodel off of a
      // valid resource
      if (res != null)
        model = new PHPResourceMarkerAnnotationModel(res, id);
      else
        model = new AnnotationModel();
    }
    if (model == null) {
      model = super.createAnnotationModel(element);
    }
    return model;
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationModel

    {
        this.document = document;

        if ( this.sourceViewer.getAnnotationModel() == null )
        {
            IAnnotationModel model = new AnnotationModel();
            this.sourceViewer.setDocument( this.sourceViewer.getDocument(), model );
        }

        // add annotation painter
        if ( this.paintManager == null && this.sourceViewer.getAnnotationModel() instanceof IAnnotationModelExtension )
View Full Code Here

Examples of org.eclipse.jface.text.source.AnnotationModel

public class CucumberAnnotationModelFactory implements IAnnotationModelFactory {

    @Override
    public IAnnotationModel createAnnotationModel(IPath location) {
        return new AnnotationModel();
    }
View Full Code Here

Examples of org.glassfish.hk2.classmodel.reflect.AnnotationModel

            while (typesIter.hasNext()) {
                Type type = typesIter.next();
                if (!(type instanceof AnnotationType)) {
                    Iterator<AnnotationModel> annotations = type.getAnnotations().iterator();
                    while (annotations.hasNext()) {
                        AnnotationModel am = annotations.next();
                        AnnotationType at = am.getType();
                        if (isCDIEnablingAnnotation(at) && type.wasDefinedIn(paths)) {
                            if (!result.contains(at.getName())) {
                                result.add(at.getName());
                            }
                        }
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.