PLSQL/Folding/src/org/netbeans/modules/plsql/fold/FoldAdapter.java
author Subhashini Sooriarachchi <subslk@netbeans.org>
Mon, 12 Aug 2013 11:26:54 +0530
changeset 464 e10b2e8563fc
parent 360 612b49b47f2f
permissions -rw-r--r--
EADS-3749 encountering issues with the displaying of code in Developer Studio when code folding is enabled
     1 /*
     2  * To change this template, choose Tools | Templates
     3  * and open the template in the editor.
     4  */
     5 package org.netbeans.modules.plsql.fold;
     6 
     7 import org.netbeans.api.editor.fold.Fold;
     8 import org.netbeans.api.editor.fold.FoldType;
     9 
    10 /**
    11  *
    12  * @author ChrLSE
    13  */
    14 class FoldAdapter {
    15 
    16    private final Fold fold;
    17 
    18    FoldAdapter(Fold fold) {
    19       this.fold = fold;
    20    }
    21 
    22    int getStartOffset() {
    23       return fold.getStartOffset();
    24    }
    25 
    26    int getEndOffset() {
    27       return fold.getEndOffset();
    28    }
    29    
    30    FoldType getFoldType(){
    31         return fold.getType();   
    32    }
    33 }