1 | public final int getSelectionStart()↵ | | 1 | public final int getSelectionEnd()↵
|
2 | {↵ | | 2 | {↵
|
3 | if(selection.size() != 1)↵ | | 3 | if(selection.size() != 1)↵
|
4 | return caret;↵ | | 4 | return caret;↵
|
|
5 | return ((Selection)selection.elementAt(0)).getStart();↵ | | 5 | return ((Selection)selection.elementAt(0)).getEnd();↵
|
6 | } //}}}↵ | | 6 | } //}}}↵
|
|
7 | //{{{ getSelectionStart() method↵ | | 7 | //{{{ getSelectionEnd() method↵
|
8 | /**↵ | | 8 | /**↵
|
9 | * @deprecated Instead, obtain a Selection instance using↵ | | 9 | * @deprecated Instead, obtain a Selection instance using↵
|
10 | * any means, and call its <code>getStart(int)</code> method↵ | | 10 | * any means, and call its <code>getEnd(int)</code> method↵
|
11 | */↵ | | 11 | */↵
|
12 | public int getSelectionStart(int line)↵ | | 12 | public int getSelectionEnd(int line)↵
|
13 | {↵ | | 13 | {↵
|
14 | if(selection.size() != 1)↵ | | 14 | if(selection.size() != 1)↵
|
15 | return caret;↵ | | 15 | return caret;↵
|
|
16 | return ((Selection)selection.elementAt(0)).getStart(↵ | | 16 | return ((Selection)selection.elementAt(0)).getEnd(↵
|
17 | buffer,line); | | 17 | buffer,line);
|