|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.ide.common.IDEPlugin
public class IDEPlugin
Description of the Class
Constructor Summary | |
---|---|
IDEPlugin()
|
Method Summary | |
---|---|
static void |
addAnnotation(java.awt.Frame view,
java.lang.Object buffer,
int type,
int lineNo,
java.lang.String description)
Adds an annotation to an ide buffer. |
static boolean |
bufferContainsJavaSource(java.awt.Frame view,
java.lang.Object buffer)
Does the buffer contain Java source code. |
static void |
bufferNavigatorTree(java.awt.Frame view,
java.lang.Object buffer,
javax.swing.tree.TreeNode node)
Indicates that a buffer has been parsed and that a navigator tree of the source is available. |
static void |
bufferParsed(java.awt.Frame view,
java.lang.Object buffer,
net.sourceforge.jrefactory.ast.Node compilationUnit)
Indicates that a buffer has been parsed and that an Abstract Syntax Tree is available. |
static void |
checkAllOpenBuffers(java.awt.Frame view)
Description of the Method |
static void |
checkBuffer(java.awt.Frame view,
java.lang.Object buffer)
Description of the Method |
static void |
checkDirectory(java.awt.Frame view,
boolean recursive)
Description of the Method |
static void |
clearAnnotations(java.awt.Frame view,
java.lang.Object buffer,
int type)
Clears all annotation for an ide buffer. |
static void |
cpdAllOpenBuffers(java.awt.Frame view)
Description of the Method |
static void |
cpdBuffer(java.awt.Frame view,
java.lang.Object buffer)
Description of the Method |
static void |
cpdDir(java.awt.Frame view,
boolean recursive)
Description of the Method |
static java.lang.Object |
getCurrentBuffer(java.awt.Frame view)
Get the current (atcive) buffer. |
static java.awt.Frame |
getEditorFrame()
Returns the frame that contains the editor. |
static java.io.File |
getFile(java.awt.Frame view,
java.lang.Object buffer)
Gets the file that is being edited |
static java.lang.String |
getFilePathForBuffer(java.lang.Object buffer)
Description of the Method |
static int |
getLineCount(java.lang.Object buffer)
Description of the Method |
static int |
getLineEndOffset(java.lang.Object buffer,
int end)
Description of the Method |
static int |
getLineNumber(java.awt.Frame view,
java.lang.Object buffer)
Get the line number of the cursor within the current buffer. |
static int |
getLineStartOffset(java.lang.Object buffer,
int begin)
Description of the Method |
static java.lang.String |
getProjectName(java.awt.Frame view,
java.lang.Object buffer)
Description of the Method |
static java.lang.String[] |
getProjects(java.awt.Frame parent)
Gets the Projects attribute of the IDEPlugin class |
static PropertiesFile |
getProperties(java.lang.String type,
java.lang.String project)
Gets the Properties attribute of the IDEPlugin class |
static java.lang.String |
getProperty(java.lang.String prop)
Gets the Property attribute of the IDEPlugin class |
static java.lang.String |
getProperty(java.lang.String prop,
java.lang.String deflt)
Gets the Property attribute of the IDEPlugin class |
static java.lang.String |
getText(java.awt.Frame view,
java.lang.Object buffer)
Description of the Method |
static void |
goToBuffer(java.awt.Frame view,
java.lang.Object buffer)
Description of the Method |
static void |
hideWaitCursor(java.awt.Frame parent)
Description of the Method |
static javax.swing.Icon |
loadIcon(java.lang.String name)
Load an icon from the IDE |
static void |
log(int urgency,
java.lang.Object source,
java.lang.Object message)
Description of the Method |
static void |
moveCaretPosition(java.awt.Frame view,
java.lang.Object buffer,
int start)
Description of the Method |
static java.lang.Object |
openFile(java.awt.Frame view,
java.lang.String fileName)
Description of the Method |
static void |
runInAWTThread(java.lang.Runnable runnable)
Description of the Method |
static void |
saveProperties()
Description of the Method |
static void |
setBuffer(java.awt.Frame view,
java.lang.Object buffer)
Description of the Method |
static void |
setLineNumber(java.awt.Frame view,
java.lang.Object buffer,
int lineNumber)
Get the line number of the cursor within the current buffer. |
static void |
setPlugin(IDEInterface ideIf)
Sets the Plugin attribute of the IDEPlugin class |
static void |
setSelection(java.awt.Frame view,
java.lang.Object buffer,
int start,
int end)
Description of the Method |
static void |
setText(java.awt.Frame view,
java.lang.Object buffer,
java.lang.String value)
Sets the string in the IDE |
static void |
showWaitCursor(java.awt.Frame parent)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IDEPlugin()
Method Detail |
---|
public static void setPlugin(IDEInterface ideIf)
ideIf
- The new Plugin valuepublic static void setBuffer(java.awt.Frame view, java.lang.Object buffer)
view
- Description of Parameterbuffer
- The new Buffer valuepublic static void setSelection(java.awt.Frame view, java.lang.Object buffer, int start, int end)
view
- Description of Parameterstart
- The new Selection valueend
- The new Selection valuepublic static java.lang.String getProperty(java.lang.String prop)
prop
- Description of Parameter
public static java.lang.String getProperty(java.lang.String prop, java.lang.String deflt)
prop
- Description of Parameterdeflt
- Description of Parameter
public static java.lang.String[] getProjects(java.awt.Frame parent)
parent
- Description of Parameter
public static PropertiesFile getProperties(java.lang.String type, java.lang.String project)
type
- Description of Parameterproject
- Description of Parameter
public static int getLineStartOffset(java.lang.Object buffer, int begin)
buffer
- Description of Parameterbegin
- Description of Parameter
public static int getLineEndOffset(java.lang.Object buffer, int end)
buffer
- Description of Parameterend
- Description of Parameter
public static java.lang.String getText(java.awt.Frame view, java.lang.Object buffer)
view
- Description of Parameter
public static int getLineCount(java.lang.Object buffer)
buffer
- Description of Parameter
public static java.lang.String getProjectName(java.awt.Frame view, java.lang.Object buffer)
view
- Description of Parameterbuffer
- Description of Parameter
public static void showWaitCursor(java.awt.Frame parent)
parent
- Description of Parameterpublic static void hideWaitCursor(java.awt.Frame parent)
parent
- Description of Parameterpublic static void log(int urgency, java.lang.Object source, java.lang.Object message)
urgency
- Description of Parametersource
- Description of Parametermessage
- Description of Parameterpublic static void cpdBuffer(java.awt.Frame view, java.lang.Object buffer) throws java.io.IOException
view
- Description of Parameter
java.io.IOException
- Description of Exceptionpublic static void cpdAllOpenBuffers(java.awt.Frame view) throws java.io.IOException
view
- Description of Parameter
java.io.IOException
- Description of Exceptionpublic static void cpdDir(java.awt.Frame view, boolean recursive) throws java.io.IOException
view
- Description of Parameterrecursive
- Description of Parameter
java.io.IOException
- Description of Exceptionpublic static java.lang.Object openFile(java.awt.Frame view, java.lang.String fileName) throws java.io.IOException
view
- Description of ParameterfileName
- Description of Parameter
java.io.IOException
- Description of Exceptionpublic static void moveCaretPosition(java.awt.Frame view, java.lang.Object buffer, int start)
view
- Description of Parameterstart
- Description of Parameterpublic static void runInAWTThread(java.lang.Runnable runnable)
runnable
- Description of Parameterpublic static void checkBuffer(java.awt.Frame view, java.lang.Object buffer)
view
- Description of Parameterpublic static void checkAllOpenBuffers(java.awt.Frame view)
view
- Description of Parameterpublic static void checkDirectory(java.awt.Frame view, boolean recursive)
view
- Description of Parameterrecursive
- Description of Parameterpublic static void goToBuffer(java.awt.Frame view, java.lang.Object buffer)
view
- Description of Parameterbuffer
- Description of Parameterpublic static void saveProperties()
view
- Description of Parameterbuffer
- Description of Parameterpublic static java.lang.String getFilePathForBuffer(java.lang.Object buffer)
buffer
- Description of Parameter
public static javax.swing.Icon loadIcon(java.lang.String name)
name
- The name of the icon.
public static java.awt.Frame getEditorFrame()
public static java.lang.Object getCurrentBuffer(java.awt.Frame view)
view
- The frame containing the IDE.
public static int getLineNumber(java.awt.Frame view, java.lang.Object buffer)
view
- The frame containing the IDE.
public static void setLineNumber(java.awt.Frame view, java.lang.Object buffer, int lineNumber)
view
- The frame containing the IDE.buffer
- Description of Parameterpublic static boolean bufferContainsJavaSource(java.awt.Frame view, java.lang.Object buffer)
view
- The frame containing the IDE.buffer
- Description of Parameter
true
if the buffer contains Java source code, false
otherwise.public static void setText(java.awt.Frame view, java.lang.Object buffer, java.lang.String value)
view
- The frame containing the IDE.buffer
- Description of Parametervalue
- The new file contained in a stringpublic static java.io.File getFile(java.awt.Frame view, java.lang.Object buffer)
public static void bufferParsed(java.awt.Frame view, java.lang.Object buffer, net.sourceforge.jrefactory.ast.Node compilationUnit)
view
- The frame containing the IDE.buffer
- The buffer (containing Java Source) that has been parsed.compilationUnit
- The root node of the AST.public static void bufferNavigatorTree(java.awt.Frame view, java.lang.Object buffer, javax.swing.tree.TreeNode node)
view
- The frame containing the IDE.buffer
- The buffer (containing Java Source) that has been parsed.node
- The root node of the tree.public static void addAnnotation(java.awt.Frame view, java.lang.Object buffer, int type, int lineNo, java.lang.String description)
view
- The frame containing the IDE.buffer
- The buffer (containing Java Source) that has been parsed.type
- either CODING_STANDARDS or CUT_AND_PASTE_DETECTIONlineNo
- The line number of the annotation.description
- The annotationpublic static void clearAnnotations(java.awt.Frame view, java.lang.Object buffer, int type)
view
- The frame containing the IDE.buffer
- The buffer (containing Java Source) that has been parsed.type
- either CODING_STANDARDS or CUT_AND_PASTE_DETECTION
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |