|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.transmogrify.hook.Hook
|
+--net.sourceforge.transmogrify.hook.HookImpl
| Constructor Summary | |
HookImpl()
|
|
| Method Summary | |
void |
deleteText(int startPos,
int endPos)
|
void |
deSelectText()
Deselects text |
void |
displayException(java.lang.Exception e,
java.lang.String description)
|
void |
displayMessage(java.lang.String title,
java.lang.String message)
|
int |
getCaretLineNumber()
Returns the 1 based line number of where the cursor is. |
int |
getCaretOffset()
Returns the 1 based offset of where the cursor is. |
int |
getCaretPos()
Returns the 0 based position of where the cursor is. |
java.lang.String |
getCurrentFile()
Gets the file name of the currently focused file. |
java.io.File[] |
getFiles()
Returns an array of files selected by the user |
java.lang.String |
getLine(int lineNumber)
Retrieves a line from the focused file. |
int |
getNumChars()
|
int |
getNumLines()
|
java.util.Enumeration |
getSelectedLines()
Returns the selected lines in an Enumeration |
java.lang.String |
getSelectedText()
Returns the selected text in the form of a String |
int |
getSelectionEnd()
|
int |
getSelectionStart()
|
java.lang.String |
getText()
Returns the entire focused source file |
java.lang.String |
getText(int startPos,
int endPos)
|
java.lang.String |
getUserInput(java.lang.String prompt,
java.lang.String title)
Prompts for and returns user input |
void |
insertLine(int lineNumber,
java.lang.String line)
|
void |
insertText(int pos,
java.lang.String text)
|
void |
openFile(java.lang.String sourceFileName)
Sets focus to specified java source file |
void |
selectText(int startPos,
int endPos)
Selects a bunch of text. |
void |
selectText(int startLineNumber,
int startOffset,
int endLineNumber,
int endOffset)
Selects a bunch of text. |
void |
setCaretPos(int pos)
Sets the 0 based position of where the cursor is. |
void |
setCaretPos(int lineNumber,
int offset)
Sets the 0 based position of where the cursor is. |
void |
setLine(int lineNumber,
java.lang.String line)
|
void |
setUserInput(java.lang.String input)
|
void |
showReferencesNonsourced(net.sourceforge.transmogrify.symtab.IDefinition defintion)
|
void |
showReferencesSourced(net.sourceforge.transmogrify.symtab.IDefinition definition)
|
| Methods inherited from class net.sourceforge.transmogrify.hook.Hook |
clearFiles, getDirtyFiles, getParsedFiles, getSymbolTable, killParseThread, makeOccurrence, parseFiles, parseFiles, reparseFiles, showReferences, spawnParseThread |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HookImpl()
| Method Detail |
public void showReferencesSourced(net.sourceforge.transmogrify.symtab.IDefinition definition)
showReferencesSourced in class Hookpublic void showReferencesNonsourced(net.sourceforge.transmogrify.symtab.IDefinition defintion)
showReferencesNonsourced in class Hookpublic void openFile(java.lang.String sourceFileName)
HookopenFile in class Hooknet.sourceforge.transmogrify.hook.HooksourceFileName - fully qualified or relative java source file namejava.lang.Exception - thrown on any type of errorpublic java.io.File[] getFiles()
HookgetFiles in class Hooknet.sourceforge.transmogrify.hook.Hookpublic java.lang.String getCurrentFile()
HookgetCurrentFile in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic void setUserInput(java.lang.String input)
public java.lang.String getUserInput(java.lang.String prompt,
java.lang.String title)
HookgetUserInput in class Hooknet.sourceforge.transmogrify.hook.Hookprompt - question to ask the usertitle - summary of the promptjava.lang.Exception - thrown on any type of error
public void displayMessage(java.lang.String title,
java.lang.String message)
displayMessage in class Hook
public void displayException(java.lang.Exception e,
java.lang.String description)
displayException in class Hookpublic java.lang.String getText()
HookgetText in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of error
public java.lang.String getText(int startPos,
int endPos)
public void insertText(int pos,
java.lang.String text)
public void deleteText(int startPos,
int endPos)
public int getNumChars()
public java.lang.String getLine(int lineNumber)
HookgetLine in class Hooknet.sourceforge.transmogrify.hook.HooklineNumber - the line you wish to retrievejava.lang.Exception - thrown on any type of error
public void setLine(int lineNumber,
java.lang.String line)
public void insertLine(int lineNumber,
java.lang.String line)
public int getNumLines()
public void selectText(int startLineNumber,
int startOffset,
int endLineNumber,
int endOffset)
HookselectText in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of error
public void selectText(int startPos,
int endPos)
HookselectText in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic void deSelectText()
HookdeSelectText in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic java.lang.String getSelectedText()
HookgetSelectedText in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic java.util.Enumeration getSelectedLines()
HookgetSelectedLines in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic int getCaretLineNumber()
HookgetCaretLineNumber in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic int getCaretOffset()
HookgetCaretOffset in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic int getCaretPos()
HookgetCaretPos in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic int getSelectionStart()
getSelectionStart in class Hookpublic int getSelectionEnd()
getSelectionEnd in class Hook
public void setCaretPos(int lineNumber,
int offset)
HooksetCaretPos in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of errorpublic void setCaretPos(int pos)
HooksetCaretPos in class Hooknet.sourceforge.transmogrify.hook.Hookjava.lang.Exception - thrown on any type of error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||