Package editor
Interface IEditorHost
-
- All Known Subinterfaces:
IScriptEditor
- All Known Implementing Classes:
EditorHost,GosuEditor,GosuField,StandardEditor
public interface IEditorHost
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanAddBreakpoint(int line)voidclipCopy(java.awt.datatransfer.Clipboard clipboard)voidclipCut(java.awt.datatransfer.Clipboard clipboard)voidclipPaste(java.awt.datatransfer.Clipboard clipboard, boolean asGosu)javax.swing.event.DocumentListenergetDocHandler()javax.swing.text.AbstractDocumentgetDocument()EditorHostTextPanegetEditor()javax.swing.JComponentgetFeedbackPanel()IIssueContainergetIssues()java.lang.StringgetLineCommentDelimiter()intgetOffsetOfDeepestStatementLocationAtPos(int caretPosition, boolean strict)ITypegetParsedClass()IScriptPartIdgetScriptPart()EditorScrollPanegetScroller()java.lang.StringgetText()java.lang.StringgetTooltipMessage(java.awt.event.MouseEvent event)java.lang.StringgetTypeAtLine(int line)AtomicUndoManagergetUndoManager()voidgotoDeclaration()voidgotoNextUsageHighlight()voidgotoPrevUsageHighlight()voidhighlightLocations(java.util.List<SearchLocation> locations)voidparse(java.lang.String strText, boolean forceCodeCompletion, boolean changed)voidread(IScriptPartId partId, java.lang.String strSource)voidrefresh(java.lang.String content)voidremoveAllHighlights()voidsetLabel(java.lang.String label)voidsetScriptPart(IScriptPartId partId)voidsetUndoableEditListener(javax.swing.event.UndoableEditListener uel)
-
-
-
Method Detail
-
getEditor
EditorHostTextPane getEditor()
-
read
void read(IScriptPartId partId, java.lang.String strSource) throws java.io.IOException
- Throws:
java.io.IOException
-
refresh
void refresh(java.lang.String content)
-
parse
void parse(java.lang.String strText, boolean forceCodeCompletion, boolean changed)
-
getUndoManager
AtomicUndoManager getUndoManager()
-
getDocHandler
javax.swing.event.DocumentListener getDocHandler()
-
setUndoableEditListener
void setUndoableEditListener(javax.swing.event.UndoableEditListener uel)
-
getParsedClass
IType getParsedClass()
-
getScriptPart
IScriptPartId getScriptPart()
-
setScriptPart
void setScriptPart(IScriptPartId partId)
-
getText
java.lang.String getText()
-
setLabel
void setLabel(java.lang.String label)
-
getDocument
javax.swing.text.AbstractDocument getDocument()
-
getScroller
EditorScrollPane getScroller()
-
getFeedbackPanel
javax.swing.JComponent getFeedbackPanel()
-
highlightLocations
void highlightLocations(java.util.List<SearchLocation> locations)
-
getLineCommentDelimiter
java.lang.String getLineCommentDelimiter()
-
getOffsetOfDeepestStatementLocationAtPos
int getOffsetOfDeepestStatementLocationAtPos(int caretPosition, boolean strict)
-
getTypeAtLine
java.lang.String getTypeAtLine(int line)
-
getTooltipMessage
java.lang.String getTooltipMessage(java.awt.event.MouseEvent event)
-
getIssues
IIssueContainer getIssues()
-
canAddBreakpoint
boolean canAddBreakpoint(int line)
-
gotoDeclaration
void gotoDeclaration()
-
gotoNextUsageHighlight
void gotoNextUsageHighlight()
-
gotoPrevUsageHighlight
void gotoPrevUsageHighlight()
-
removeAllHighlights
void removeAllHighlights()
-
clipCut
void clipCut(java.awt.datatransfer.Clipboard clipboard)
-
clipCopy
void clipCopy(java.awt.datatransfer.Clipboard clipboard)
-
clipPaste
void clipPaste(java.awt.datatransfer.Clipboard clipboard, boolean asGosu)
-
-