Package editor
Class SmartFixManager
- java.lang.Object
-
- editor.SmartFixManager
-
- All Implemented Interfaces:
KeyListener
,MouseMotionListener
,EventListener
public class SmartFixManager extends Object implements MouseMotionListener, KeyListener
Handles state and functions relating to smart-fix functionality in the Gosu editor- Author:
- cgross
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SmartFixManager.ReplaceChunk
static class
SmartFixManager.SmartFixMode
-
Constructor Summary
Constructors Constructor Description SmartFixManager(GosuEditor gosuEditor)
-
Method Summary
-
-
-
Field Detail
-
SHORTCUT
public static final String SHORTCUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SmartFixManager
public SmartFixManager(GosuEditor gosuEditor)
-
-
Method Detail
-
performFix
public void performFix()
-
getEditor
public JTextComponent getEditor()
-
setEditor
public void setEditor(JTextComponent editor)
-
getSourceOfIssue
public IParsedElement getSourceOfIssue()
-
setSourceOfIssue
public void setSourceOfIssue(IParsedElement sourceOfIssue)
-
getOffset
public int getOffset()
-
setOffset
public void setOffset(int offset)
-
getLength
public int getLength()
-
setLength
public void setLength(int length)
-
getGosuEditor
public GosuEditor getGosuEditor()
-
setGosuEditor
public void setGosuEditor(GosuEditor gosuEditor)
-
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
public void showSmartFix(int offset, int length, String displayText)
-
getMode
public SmartFixManager.SmartFixMode getMode()
-
getPeToFixWithAsStatement
public IParsedElement getPeToFixWithAsStatement()
-
getJavaStyleCast
public IParsedElement getJavaStyleCast()
-
getTypeToCoerceTo
public String getTypeToCoerceTo()
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased
in interfaceKeyListener
-
isCaseParseIssue
public static boolean isCaseParseIssue(IParseIssue parseIssue)
-
getReplaceChunk
public static SmartFixManager.ReplaceChunk getReplaceChunk(IParsedElement sourceOfIssue, String gosuSource)
-
-