Class EclipseRegionAdapter

  • All Implemented Interfaces:
    org.eclipse.jface.text.IRegion

    public class EclipseRegionAdapter
    extends org.eclipse.jface.text.Region
    Adapter class to expose an IntelliJ TextRange as an Eclipse IRegion.
    Author:
    Phillip Webb
    • Constructor Summary

      Constructors 
      Constructor Description
      EclipseRegionAdapter​(com.intellij.openapi.util.TextRange range)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.eclipse.jface.text.IRegion[] asArray​(java.util.Collection<? extends com.intellij.openapi.util.TextRange> ranges)  
      • Methods inherited from class org.eclipse.jface.text.Region

        equals, getLength, getOffset, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EclipseRegionAdapter

        public EclipseRegionAdapter​(com.intellij.openapi.util.TextRange range)
    • Method Detail

      • asArray

        public static org.eclipse.jface.text.IRegion[] asArray​(java.util.Collection<? extends com.intellij.openapi.util.TextRange> ranges)