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