Tabnine Logo
org.eclipse.jface.text.source.projection
Code IndexAdd Tabnine to your IDE (free)

How to use org.eclipse.jface.text.source.projection

Best Java code snippets using org.eclipse.jface.text.source.projection (Showing top 20 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Installs this projection support on its viewer.
 */
public void install() {
  fViewer.setProjectionSummary(createProjectionSummary());
  fProjectionListener= new ProjectionListener();
  fViewer.addProjectionListener(fProjectionListener);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

private void internalInvalidateTextPresentation(int offset, int length) {
  if (fCommandQueue != null) {
    fCommandQueue.add(new ProjectionCommand(offset, length));
  } else {
    invalidateTextPresentation(offset, length);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Disables the projection mode.
 */
public final void disableProjection() {
  if (isProjectionMode()) {
    removeProjectionAnnotationModel(getVisualAnnotationModel());
    fProjectionAnnotationModel.removeAllAnnotations();
    fFindReplaceDocumentAdapter= null;
    fireProjectionDisabled();
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

private void internalUpdateSummaries(IProgressMonitor monitor) {
  IAnnotationModel visualAnnotationModel= fProjectionViewer.getVisualAnnotationModel();
  if (visualAnnotationModel == null)
    return;
  removeSummaries(monitor, visualAnnotationModel);
  if (isCanceled(monitor))
    return;
  createSummaries(monitor, visualAnnotationModel);
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
protected void mouseClicked(int line) {
  clearCurrentAnnotation();
  if (fMouseDownLine != line)
    return;
  ProjectionAnnotation annotation= findAnnotation(line, true);
  if (annotation != null) {
    ProjectionAnnotationModel model= (ProjectionAnnotationModel) getModel();
    model.toggleExpansionState(annotation);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
protected void mouseDoubleClicked(int rulerLine) {
  if (findAnnotation(rulerLine, true) != null)
    return;
  ProjectionAnnotation annotation= findAnnotation(rulerLine, false);
  if (annotation != null) {
    ProjectionAnnotationModel model= (ProjectionAnnotationModel)getModel();
    model.toggleExpansionState(annotation);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

  private void processModelChanged(IAnnotationModel model, AnnotationModelEvent event) {
    if (model == fProjectionAnnotationModel) {
      if (fProjectionSummary != null)
        fProjectionSummary.updateSummaries();
      processCatchupRequest(event);
    } else if (model == getAnnotationModel() && fProjectionSummary != null)
      fProjectionSummary.updateSummaries();
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Replace the visible document with the given document. Maintains the
 * scroll offset and the selection.
 *
 * @param slave the visible document
 */
private void replaceVisibleDocument(IDocument slave) {
  if (fReplaceVisibleDocumentExecutionTrigger != null) {
    ReplaceVisibleDocumentExecutor executor= new ReplaceVisibleDocumentExecutor(slave);
    executor.install(fReplaceVisibleDocumentExecutionTrigger);
  } else
    executeReplaceVisibleDocument(slave);
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Forces an updated of the annotation summary.
 */
public void updateSummaries() {
  synchronized (fLock) {
    if (fConfiguredAnnotationTypes != null) {
      if (fSummarizer == null)
        fSummarizer= new Summarizer();
      fSummarizer.reset();
    }
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Returns the drawing strategy to be used by the support's annotation painter.
 *
 * @return the drawing strategy to be used by the support's annotation painter
 * @since 3.1
 */
private AnnotationPainter.IDrawingStrategy getDrawingStrategy() {
  if (fDrawingStrategy == null)
    fDrawingStrategy= new ProjectionDrawingStrategy();
  return fDrawingStrategy;
}
origin: org.eclipse.platform/org.eclipse.jface.text

private boolean clearCurrentAnnotation() {
  if (fCurrentAnnotation != null) {
    fCurrentAnnotation.setRangeIndication(false);
    fCurrentAnnotation= null;
    return true;
  }
  return false;
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Expands all annotations that overlap with the given range and are collapsed.
 *
 * @param offset the range offset
 * @param length the range length
 * @return <code>true</code> if any annotation has been expanded, <code>false</code> otherwise
 */
public boolean expandAll(int offset, int length) {
  return expandAll(offset, length, true);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Disables the projection mode.
 */
public final void disableProjection() {
  if (isProjectionMode()) {
    removeProjectionAnnotationModel(getVisualAnnotationModel());
    fProjectionAnnotationModel.removeAllAnnotations();
    fFindReplaceDocumentAdapter= null;
    fireProjectionDisabled();
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Installs this projection support on its viewer.
 */
public void install() {
  fViewer.setProjectionSummary(createProjectionSummary());
  fProjectionListener= new ProjectionListener();
  fViewer.addProjectionListener(fProjectionListener);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

private void internalUpdateSummaries(IProgressMonitor monitor) {
  IAnnotationModel visualAnnotationModel= fProjectionViewer.getVisualAnnotationModel();
  if (visualAnnotationModel == null)
    return;
  removeSummaries(monitor, visualAnnotationModel);
  if (isCanceled(monitor))
    return;
  createSummaries(monitor, visualAnnotationModel);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
protected void mouseClicked(int line) {
  clearCurrentAnnotation();
  if (fMouseDownLine != line)
    return;
  ProjectionAnnotation annotation= findAnnotation(line, true);
  if (annotation != null) {
    ProjectionAnnotationModel model= (ProjectionAnnotationModel) getModel();
    model.toggleExpansionState(annotation);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

private void internalInvalidateTextPresentation(int offset, int length) {
  if (fCommandQueue != null) {
    fCommandQueue.add(new ProjectionCommand(offset, length));
  } else {
    invalidateTextPresentation(offset, length);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
protected void mouseDoubleClicked(int rulerLine) {
  if (findAnnotation(rulerLine, true) != null)
    return;
  ProjectionAnnotation annotation= findAnnotation(rulerLine, false);
  if (annotation != null) {
    ProjectionAnnotationModel model= (ProjectionAnnotationModel)getModel();
    model.toggleExpansionState(annotation);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  private void processModelChanged(IAnnotationModel model, AnnotationModelEvent event) {
    if (model == fProjectionAnnotationModel) {
      if (fProjectionSummary != null)
        fProjectionSummary.updateSummaries();
      processCatchupRequest(event);
    } else if (model == getAnnotationModel() && fProjectionSummary != null)
      fProjectionSummary.updateSummaries();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Replace the visible document with the given document. Maintains the
 * scroll offset and the selection.
 *
 * @param slave the visible document
 */
private void replaceVisibleDocument(IDocument slave) {
  if (fReplaceVisibleDocumentExecutionTrigger != null) {
    ReplaceVisibleDocumentExecutor executor= new ReplaceVisibleDocumentExecutor(slave);
    executor.install(fReplaceVisibleDocumentExecutionTrigger);
  } else
    executeReplaceVisibleDocument(slave);
}
org.eclipse.jface.text.source.projection

Most used classes

  • ProjectionViewer
    A projection source viewer is a source viewer which supports multiple visible regions which can dyna
  • ProjectionAnnotationModel
    A projection annotation model. It provides methods for modifying the expansion state of the managed
  • ProjectionSupport
    Supports the configuration of projection capabilities a org.eclipse.jface.text.source.projection.Pro
  • ProjectionAnnotation
    Annotation used to represent the projection of a master document onto a org.eclipse.jface.text.proje
  • AnnotationBag
    A bag of annotations. This class is not intended to be subclassed.
  • IProjectionPosition,
  • ProjectionAnnotation$DisplayDisposeRunnable,
  • ProjectionAnnotationHover,
  • ProjectionRulerColumn,
  • ProjectionSummary$Summarizer,
  • ProjectionSummary,
  • ProjectionSupport$ProjectionAnnotationsPainter,
  • ProjectionSupport$ProjectionDrawingStrategy,
  • ProjectionSupport$ProjectionListener,
  • ProjectionViewer$AnnotationModelListener,
  • ProjectionViewer$ProjectionCommand,
  • ProjectionViewer$ProjectionCommandQueue,
  • ProjectionViewer$ReplaceVisibleDocumentExecutor,
  • SourceViewerInformationControl
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now