Examples of invalidateTextPresentation()


Examples of org.eclipse.jdt.internal.debug.ui.JDISourceViewer.invalidateTextPresentation()

      SourceViewerConfiguration configuration = getSourceViewerConfiguration();
      if (configuration instanceof JavaSourceViewerConfiguration) {
        JavaSourceViewerConfiguration jsv = (JavaSourceViewerConfiguration) configuration;
        if (jsv.affectsTextPresentation(event)) {
          jsv.handlePropertyChangeEvent(event);
          isv.invalidateTextPresentation();
        }
      }
      super.handlePreferenceStoreChanged(event);
    }
  }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension2.invalidateTextPresentation()

                    ITextViewerExtension5 extension = (ITextViewerExtension5) viewer;
                    IRegion modelRange = extension.widgetRange2ModelRange(new Region(fRememberedStyleRange.start,
                            fRememberedStyleRange.length));
                    if (modelRange != null)
                        viewer2.invalidateTextPresentation(modelRange.getOffset(), modelRange.getLength());

                } else {
                    viewer2.invalidateTextPresentation(fRememberedStyleRange.start
                            + viewer.getVisibleRegion().getOffset(), fRememberedStyleRange.length);
                }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension2.invalidateTextPresentation()

                            fRememberedStyleRange.length));
                    if (modelRange != null)
                        viewer2.invalidateTextPresentation(modelRange.getOffset(), modelRange.getLength());

                } else {
                    viewer2.invalidateTextPresentation(fRememberedStyleRange.start
                            + viewer.getVisibleRegion().getOffset(), fRememberedStyleRange.length);
                }

            } else
                viewer.invalidateTextPresentation();
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.invalidateTextPresentation()

     
      // Invalidate ==> remove applied text presentation
      if (!redrawAll && viewer instanceof ITextViewerExtension2)
        ((ITextViewerExtension2) viewer).invalidateTextPresentation(offset, length);
      else
        viewer.invalidateTextPresentation();
     
      // Remove underline
      if (viewer instanceof ITextViewerExtension5) {
        ITextViewerExtension5 extension= (ITextViewerExtension5) viewer;
        offset= extension.modelOffset2WidgetOffset(offset);
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.