Examples of modifyAnnotations()


Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

            final Annotation[] removals = new Annotation[deletions.size()];
            deletions.toArray(removals);
            final Annotation[] changes = new Annotation[updates.size()];
            updates.toArray(changes);
            model.modifyAnnotations(removals, additions, changes);
            fFirstTimeInitialCollapse = false;
        } finally {
            fCachedDocument = null;
            fCachedModel = null;
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

                }

            }
        }

        model.modifyAnnotations(null, null,
                modified.toArray(new Annotation[modified.size()]));
    }

    @Override
    public void elementChanged(final IErlElement element) {
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

                .toArray( new Annotation[annotationsToDeleteList.size()] );

            // update annotation model
            if ( !annotationsToDeleteList.isEmpty() || !annotationsToAddMap.isEmpty() )
            {
                projectionAnnotationModel.modifyAnnotations( annotationsToDelete, annotationsToAddMap,
                    new Annotation[0] );
            }

        }
        catch ( BadLocationException e )
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

                .toArray( new Annotation[annotationsToDeleteList.size()] );

            // update annotation model
            if ( !annotationsToDeleteList.isEmpty() || !annotationsToAddMap.isEmpty() )
            {
                projectionAnnotationModel.modifyAnnotations( annotationsToDelete, annotationsToAddMap,
                    new Annotation[0] );
            }

        }
        catch ( BadLocationException e )
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

    for (Iterator<Position> i = positions.iterator(); i.hasNext();) {
      Object position = i.next();
      additionsMap.put(new ProjectionAnnotation(), position);
    }
    if ((deletions.length != 0 || additionsMap.size() != 0))
      annotationModel.modifyAnnotations(deletions, additionsMap,
          new Annotation[] {});
  }

  @SuppressWarnings("unchecked")
  private Annotation[] computeDifferences(ArrayList<Position> additions,
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

              pa.markCollapsed();
              toCollapse.add(pa);
            }
          }
        }
        model.modifyAnnotations(null, null, toCollapse.toArray(new Annotation[0]));
      }
    };
    collapseStrings.setActionDefinitionId("org.xtext.example.folding.ui.folding.collapseStrings");
    editor.setAction("FoldingCollapseStrings", collapseStrings); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

        }

      }
    }

    model.modifyAnnotations(null, null, modified.toArray(new Annotation[modified.size()]));
  }
}
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

        }

      }
    }

    model.modifyAnnotations(null, null, modified.toArray(new Annotation[modified.size()]));
  }
}
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

                .toArray( new Annotation[annotationsToDeleteList.size()] );

            // update annotation model
            if ( !annotationsToDeleteList.isEmpty() || !annotationsToAddMap.isEmpty() )
            {
                projectionAnnotationModel.modifyAnnotations( annotationsToDelete, annotationsToAddMap,
                    new Annotation[0] );
            }

        }
        catch ( BadLocationException e )
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()

        }

      }
    }

    model.modifyAnnotations(null, null, modified.toArray(new Annotation[modified.size()]));
  }
}
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.