|
33 | 33 | import org.apache.commons.compress.utils.IOUtils; |
34 | 34 | import org.fife.ui.rsyntaxtextarea.*; |
35 | 35 | import org.fife.ui.rsyntaxtextarea.Token; |
36 | | -import org.fife.ui.rsyntaxtextarea.focusabletip.FocusableTip; |
37 | 36 | import org.fife.ui.rtextarea.RTextArea; |
38 | 37 | import org.fife.ui.rtextarea.RTextAreaUI; |
39 | 38 | import org.fife.ui.rtextarea.RUndoManager; |
|
67 | 66 | * Arduino Sketch code editor based on RSyntaxTextArea (http://fifesoft.com/rsyntaxtextarea) |
68 | 67 | * |
69 | 68 | * @author Ricardo JL Rufino (ricardo@criativasoft.com.br) |
70 | | - * @date 20/04/2015 |
71 | 69 | * @since 1.6.4 |
72 | 70 | */ |
73 | 71 | public class SketchTextArea extends RSyntaxTextArea { |
74 | 72 |
|
75 | 73 | private final static Logger LOG = Logger.getLogger(SketchTextArea.class.getName()); |
76 | 74 |
|
77 | | - /** |
78 | | - * The last docTooltip displayed. |
79 | | - */ |
80 | | - private FocusableTip docTooltip; |
81 | | - |
82 | 75 | private EditorListener editorListener; |
83 | 76 |
|
84 | 77 | private final PdeKeywords pdeKeywords; |
@@ -174,15 +167,6 @@ public boolean isSelectionActive() { |
174 | 167 | return this.getSelectedText() != null; |
175 | 168 | } |
176 | 169 |
|
177 | | - public void setSelectedText(String text) { |
178 | | - |
179 | | - int old = getTextMode(); |
180 | | - setTextMode(OVERWRITE_MODE); |
181 | | - replaceSelection(text); |
182 | | - setTextMode(old); |
183 | | - |
184 | | - } |
185 | | - |
186 | 170 | public void processKeyEvent(KeyEvent evt) { |
187 | 171 |
|
188 | 172 | // this had to be added because the menu key events weren't making it up to the frame. |
@@ -237,16 +221,6 @@ public void getTextLine(int line, Segment segment) { |
237 | 221 | } |
238 | 222 | } |
239 | 223 |
|
240 | | - public String getTextLine(int line) { |
241 | | - try { |
242 | | - int offset = getLineStartOffset(line); |
243 | | - int end = getLineEndOffset(line); |
244 | | - return getDocument().getText(offset, end - offset); |
245 | | - } catch (BadLocationException e) { |
246 | | - return null; |
247 | | - } |
248 | | - } |
249 | | - |
250 | 224 |
|
251 | 225 | public void setEditorListener(EditorListener editorListener) { |
252 | 226 | this.editorListener = editorListener; |
|
0 commit comments