Examples of FoldedPosition


Examples of org.eclipse.xtext.ui.editor.folding.FoldedPosition

    }

    @Override
    protected FoldedPosition newFoldedPosition(IRegion region,
        ITextRegion significantRegion) {
      FoldedPosition result=null;
      if(region!=null && lastOffset!=region.getOffset()){
        if(type!=null && significantRegion!=null){
          //additional -1 introduced as it seemed to help for folding 2-line regions that where otherwise not folded
          result= new TypedFoldedRegion(region.getOffset(), region.getLength(), significantRegion.getOffset() - region.getOffset()-1, significantRegion.getLength(),type);
        }else{
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.