Package editor
Class SmartFixManager
java.lang.Object
editor.SmartFixManager
- All Implemented Interfaces:
KeyListener,MouseMotionListener,EventListener
Handles state and functions relating to smart-fix functionality in the Gosu editor
- Author:
- cgross
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetMode()intstatic SmartFixManager.ReplaceChunkgetReplaceChunk(IParsedElement sourceOfIssue, String gosuSource) static booleanisCaseParseIssue(IParseIssue parseIssue) voidvoidvoidvoidvoidvoidvoidvoidsetEditor(JTextComponent editor) voidsetGosuEditor(GosuEditor gosuEditor) voidsetLength(int length) voidsetOffset(int offset) voidsetSourceOfIssue(IParsedElement sourceOfIssue) voidshowSmartFix(int offset, int length, String displayText) voidUpdates the state of the SmartFixManager, which may display tool tips and offer to fix issues in the gosu program.
-
Field Details
-
SHORTCUT
- See Also:
-
-
Constructor Details
-
SmartFixManager
-
-
Method Details
-
performFix
public void performFix() -
getEditor
-
setEditor
-
getSourceOfIssue
-
setSourceOfIssue
-
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
getLength
public int getLength() -
setLength
public void setLength(int length) -
getGosuEditor
-
setGosuEditor
-
updateState
public void updateState()Updates the state of the SmartFixManager, which may display tool tips and offer to fix issues in the gosu program. -
resetSmartHelpState
public void resetSmartHelpState() -
showSmartFix
-
getMode
-
getPossibleTypesToImport
-
getPeToFixWithAsStatement
-
getJavaStyleCast
-
getTypeToCoerceTo
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
keyTyped
- Specified by:
keyTypedin interfaceKeyListener
-
keyPressed
- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener
-
isCaseParseIssue
-
getReplaceChunk
public static SmartFixManager.ReplaceChunk getReplaceChunk(IParsedElement sourceOfIssue, String gosuSource)
-