11 package net.sf.gridarta.textedit.textarea.actions;
13 import java.awt.event.ActionEvent;
14 import java.awt.event.ActionListener;
15 import javax.swing.text.BadLocationException;
21 import org.jetbrains.annotations.NotNull;
40 cfPythonPopup =
new CFPythonPopup(scriptEditControl, menuEntries);
55 if (selectedText != null && !selectedText.isEmpty()) {
58 textArea.
getDocument().insertString(caretPos,
".", null);
63 if (fileName.equalsIgnoreCase(
"cfpython")) {
71 }
catch (
final BadLocationException ignored) {
void setSelectedText(@NotNull final String selectedText)
Replaces the selection with the specified text.
int lineToY(final int line)
Converts a line index to a y co-ordinate.
An input handler converts the user's key strokes into concrete actions.
Base package of all Gridarta classes.
This package contains the classes for the script editor used within the editor to create and modify P...
int offsetToX2(final int line, final int offset)
Converts an offset in a line into an x co-ordinate.
int getLineStartOffset(final int line)
Returns the start offset of the specified line.
String getSelectedText()
Returns the selected text, or null if no selection is active.
This package contains the other part of the script editor.
int getCaretPosition()
Returns the caret position.
ScriptEditControl - Manages events and data flow for the script editor entity.
Document getDocument()
Returns the document this text area is editing.
static JEditTextArea getTextArea(final EventObject evt)
Returns the text area that fired the specified event.
int getCaretLine()
Returns the caret line.
jEdit's text area component.