|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sourceforge.transmogrify.hook.Hook
| Constructor Summary | |
Hook()
|
|
| Method Summary | |
void |
clearFiles()
|
abstract void |
deSelectText()
Deselects text |
abstract void |
displayException(java.lang.Exception e,
java.lang.String description)
|
abstract void |
displayMessage(java.lang.String title,
java.lang.String message)
|
abstract int |
getCaretLineNumber()
Returns the 1 based line number of where the cursor is. |
abstract int |
getCaretOffset()
Returns the 1 based offset of where the cursor is. |
abstract int |
getCaretPos()
Returns the 0 based position of where the cursor is. |
abstract java.lang.String |
getCurrentFile()
Gets the file name of the currently focused file. |
java.util.Set |
getDirtyFiles()
|
abstract java.io.File[] |
getFiles()
Returns an array of files selected by the user |
abstract java.lang.String |
getLine(int lineNumber)
Retrieves a line from the focused file. |
java.util.Iterator |
getParsedFiles()
|
abstract java.util.Enumeration |
getSelectedLines()
Returns the selected lines in an Enumeration |
abstract java.lang.String |
getSelectedText()
Returns the selected text in the form of a String |
abstract int |
getSelectionEnd()
|
abstract int |
getSelectionStart()
|
net.sourceforge.transmogrify.symtab.SymbolTable |
getSymbolTable()
|
abstract java.lang.String |
getText()
Returns the entire focused source file |
abstract java.lang.String |
getUserInput(java.lang.String prompt,
java.lang.String title)
Prompts for and returns user input |
void |
killParseThread()
|
net.sourceforge.transmogrify.symtab.Occurrence |
makeOccurrence()
makes an Occurrence based on the cursor position in the current file |
abstract void |
openFile(java.lang.String sourceFileName)
Sets focus to specified java source file |
void |
parseFiles()
|
void |
parseFiles(java.io.File[] files)
|
void |
reparseFiles()
|
abstract void |
selectText(int startPos,
int endPos)
Selects a bunch of text. |
abstract void |
selectText(int startLineNumber,
int startOffset,
int endLineNumber,
int endOffset)
Selects a bunch of text. |
abstract void |
setCaretPos(int pos)
Sets the 0 based position of where the cursor is. |
abstract void |
setCaretPos(int lineNumber,
int offset)
Sets the 0 based position of where the cursor is. |
void |
showReferences(net.sourceforge.transmogrify.symtab.IDefinition definition)
Displays a list of references. |
abstract void |
showReferencesNonsourced(net.sourceforge.transmogrify.symtab.IDefinition defintion)
|
abstract void |
showReferencesSourced(net.sourceforge.transmogrify.symtab.IDefinition definition)
|
void |
spawnParseThread()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Hook()
| Method Detail |
public java.util.Iterator getParsedFiles()
public net.sourceforge.transmogrify.symtab.Occurrence makeOccurrence()
throws java.lang.Exception
public void showReferences(net.sourceforge.transmogrify.symtab.IDefinition definition)
references - The list of references to be displayed.public abstract void showReferencesSourced(net.sourceforge.transmogrify.symtab.IDefinition definition)
public abstract void showReferencesNonsourced(net.sourceforge.transmogrify.symtab.IDefinition defintion)
public abstract void openFile(java.lang.String sourceFileName)
throws java.lang.Exception
sourceFileName - fully qualified or relative java source file namejava.lang.Exception - thrown on any type of error
public abstract java.io.File[] getFiles()
throws java.lang.Exception
public abstract java.lang.String getCurrentFile()
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract java.lang.String getUserInput(java.lang.String prompt,
java.lang.String title)
throws java.lang.Exception
prompt - question to ask the usertitle - summary of the promptjava.lang.Exception - thrown on any type of error
public abstract void displayMessage(java.lang.String title,
java.lang.String message)
throws java.lang.Exception
public abstract void displayException(java.lang.Exception e,
java.lang.String description)
public abstract java.lang.String getText()
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract java.lang.String getLine(int lineNumber)
throws java.lang.Exception
lineNumber - the line you wish to retrievejava.lang.Exception - thrown on any type of error
public abstract void selectText(int startLineNumber,
int startOffset,
int endLineNumber,
int endOffset)
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract void selectText(int startPos,
int endPos)
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract void deSelectText()
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract java.lang.String getSelectedText()
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract java.util.Enumeration getSelectedLines()
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract int getCaretLineNumber()
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract int getCaretOffset()
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract int getCaretPos()
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract int getSelectionStart()
throws java.lang.Exception
public abstract int getSelectionEnd()
throws java.lang.Exception
public abstract void setCaretPos(int lineNumber,
int offset)
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public abstract void setCaretPos(int pos)
throws java.lang.Exception
java.lang.Exception - thrown on any type of error
public void reparseFiles()
throws java.lang.Exception
public void parseFiles()
throws java.io.FileNotFoundException
public void parseFiles(java.io.File[] files)
throws java.lang.Exception
public void clearFiles()
public net.sourceforge.transmogrify.symtab.SymbolTable getSymbolTable()
public java.util.Set getDirtyFiles()
public void spawnParseThread()
public void killParseThread()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||