Package org.eclipse.jface.text.source

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


    // TODO Auto-generated constructor stub
  }

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


     */
    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

      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

      // 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

    {
        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

public class CucumberAnnotationModelFactory implements IAnnotationModelFactory {

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

        {
          CTabItem fxmlContent = new CTabItem(folder, SWT.NONE);
          fxmlContent.setText("FXML-Source");
          fxmlContent.setImage(JFaceResources.getImage(IMAGE_FXML_CONTENT));

          final AnnotationModel model = new AnnotationModel();
          VerticalRuler verticalRuler = new VerticalRuler(VERTICAL_RULER_WIDTH, new AnnotationAccess());
          int styles = SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION;
          SourceViewer sourceViewer = new SourceViewer(folder, verticalRuler, styles);
          sourceViewer.configure(new XMLConfiguration(new ColorManager()));
          sourceViewer.setEditable(false);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.source.AnnotationModel$MetaIterator

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.