| org.acm.seguin.ide.netbeans.JRefactory
Method Summary | |
public void | addAnnotation(Frame view, Object buffer, int type, int lineNo, String description) Adds an annotation to an ide buffer. | public boolean | bufferContainsJavaSource(Frame view, Object buffer) Does the buffer contain Java source code. | public void | bufferNavigatorTree(Frame view, Object buffer, TreeNode node) Indicates that a buffer has been parsed and that a navigator tree of the
source is available. | public void | bufferParsed(Frame view, Object buffer, net.sourceforge.jrefactory.ast.Node compilationUnit) Indicates that a buffer has been parsed and that an Abstract Syntax Tree
is available. | public void | checkAllOpenBuffers(Frame view) | public void | checkBuffer(Frame view, Object buffer) | public void | checkDirectory(Frame view, boolean recursive) | public void | clearAnnotations(Frame view, Object buffer, int type) Clears all annotation for an ide buffer. | public void | cpdAllOpenBuffers(Frame view) | public void | cpdBuffer(Frame view, Object buffer) | public void | cpdDir(Frame view, boolean recursive) | public static void | deleteProperty(String key) | public static void | ensureVisible() | public CodingStandardsViewer | getCodingStandardsViewer() | public Object | getCurrentBuffer(Frame view) Get the current (atcive) buffer.
Parameters: view - The frame containing the IDE. | public Frame | getEditorFrame() Returns the frame that contains the editor. | public File | getFile(Frame view, Object buffer) | public String | getFilePathForBuffer(Object buffer) | public Frame | getFrame() | public String[] | getIDEProjects(Frame parent) | public String | getIDEProperty(String prop) | public String | getIDEProperty(String prop, String deflt) | public static Frame | getJRefactoryFrame() | public int | getLineCount(Object buffer) | public int | getLineEndOffset(Object buffer, int end) | public int | getLineNumber(Frame view, Object buffer) Get the line number of the cursor within the current buffer. | public int | getLineStartOffset(Object buffer, int begin) | public int | getPersistenceType() | public String | getProjectName(Frame view, Object buffer) | public static String | getProjectName(Frame view) | public PropertiesFile | getProperties(String type, String project) | public static String | getSettingsDirectory() | public String | getText(Frame view, Object buffer) | public void | getUserSelection() | public void | goToBuffer(Frame view, Object buffer) | public void | hideWaitCursor(Frame parent) | public void | initComponents() Create a new JRefactory . | public Icon | loadIcon(String name) Load an icon from the IDE
Parameters: name - The name of the icon. | public void | log(int urgency, Object source, Object message) | public static void | log(Object message) | public void | moveCaretPosition(Frame view, Object buffer, int start) | public Object | openFile(Frame view, String fileName) | public String | preferredID() | public void | readExternal(java.io.ObjectInput oi) | public void | runInAWTThread(Runnable runnable) | public void | saveProperties() | public void | setBuffer(Frame view, Object fileName) | public void | setLineNumber(Frame view, Object buffer, int lineNumber) | public static void | setProperty(String key, String value) | public void | setSelection(Frame view, Object buffer, int start, int end) | public void | setText(Frame view, Object buffer, String value) | public void | setView(Frame view) | public void | showCPDTab() | public void | showCSTab() | public void | showJRefactoryTab() | public void | showWaitCursor(Frame parent) | public void | writeExternal(java.io.ObjectOutput oo) |
DEFAULT_TILE_MINSIZE_PROPERTY | final public static String DEFAULT_TILE_MINSIZE_PROPERTY(Code) | | Description of the Field
|
JAVASTYLE_DIR | public static String JAVASTYLE_DIR(Code) | | Description of the Field
|
NAME | final public static String NAME(Code) | | Description of the Field
|
OPTION_RULES_PREFIX | final public static String OPTION_RULES_PREFIX(Code) | | Description of the Field
|
OPTION_UI_DIRECTORY_POPUP | final public static String OPTION_UI_DIRECTORY_POPUP(Code) | | Description of the Field
|
PRETTY_SETTINGS_FILE | public static File PRETTY_SETTINGS_FILE(Code) | | Description of the Field
|
JRefactory | public JRefactory()(Code) | | Constructor for the JRefactory object
|
JRefactory | public JRefactory(Frame view)(Code) | | Constructor for the JRefactory object
Parameters: view - Description of Parameter |
addAnnotation | public void addAnnotation(Frame view, Object buffer, int type, int lineNo, String description)(Code) | | Adds an annotation to an ide buffer.
Parameters: view - The frame containing the IDE. Parameters: buffer - The buffer (containing Java Source) that has beenparsed. Parameters: type - either CODING_STANDARDS or CUT_AND_PASTE_DETECTION Parameters: lineNo - The line number of the annotation. Parameters: description - The annotation |
bufferContainsJavaSource | public boolean bufferContainsJavaSource(Frame view, Object buffer)(Code) | | Does the buffer contain Java source code.
Parameters: view - The frame containing the IDE. Parameters: buffer - Description of Parameter true if the buffer contains Java source code,false otherwise. |
bufferNavigatorTree | public void bufferNavigatorTree(Frame view, Object buffer, TreeNode node)(Code) | | Indicates that a buffer has been parsed and that a navigator tree of the
source is available.
Parameters: view - The frame containing the IDE. Parameters: buffer - The buffer (containing Java Source) that has been parsed. Parameters: node - The root node of the tree. |
bufferParsed | public void bufferParsed(Frame view, Object buffer, net.sourceforge.jrefactory.ast.Node compilationUnit)(Code) | | Indicates that a buffer has been parsed and that an Abstract Syntax Tree
is available.
Parameters: view - The frame containing the IDE. Parameters: buffer - The buffer (containing Java Source) that has beenparsed. Parameters: compilationUnit - The root node of the AST. |
checkAllOpenBuffers | public void checkAllOpenBuffers(Frame view)(Code) | | Description of the Method
Parameters: view - Description of Parameter |
checkBuffer | public void checkBuffer(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter |
checkDirectory | public void checkDirectory(Frame view, boolean recursive)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: recursive - Description of Parameter |
clearAnnotations | public void clearAnnotations(Frame view, Object buffer, int type)(Code) | | Clears all annotation for an ide buffer.
Parameters: view - The frame containing the IDE. Parameters: buffer - The buffer (containing Java Source) that has been parsed. Parameters: type - either CODING_STANDARDS or CUT_AND_PASTE_DETECTION |
cpdAllOpenBuffers | public void cpdAllOpenBuffers(Frame view) throws IOException(Code) | | Description of the Method
Parameters: view - Description of Parameter exception: IOException - Description of Exception |
cpdBuffer | public void cpdBuffer(Frame view, Object buffer) throws IOException(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter exception: IOException - Description of Exception |
cpdDir | public void cpdDir(Frame view, boolean recursive) throws IOException(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: recursive - Description of Parameter exception: IOException - Description of Exception |
deleteProperty | public static void deleteProperty(String key)(Code) | | Description of the Method
Parameters: key - Description of Parameter |
ensureVisible | public static void ensureVisible()(Code) | | Description of the Method
|
getCodingStandardsViewer | public CodingStandardsViewer getCodingStandardsViewer()(Code) | | Gets the CodingStandardsViewer attribute of the JRefactory object
The CodingStandardsViewer value |
getCurrentBuffer | public Object getCurrentBuffer(Frame view)(Code) | | Get the current (atcive) buffer.
Parameters: view - The frame containing the IDE. The active buffer or null if no active buffer. |
getEditorFrame | public Frame getEditorFrame()(Code) | | Returns the frame that contains the editor. If this is not available or
you want dialog boxes to be centered on the screen return null from this
operation.
the frame |
getFile | public File getFile(Frame view, Object buffer)(Code) | | Gets the file that is being edited
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter The File value |
getFilePathForBuffer | public String getFilePathForBuffer(Object buffer)(Code) | | Description of the Method
Parameters: buffer - Description of Parameter The File path for this buffer |
getFrame | public Frame getFrame()(Code) | | Gets the Frame attribute of the JRefactory object
The Frame value |
getIDEProjects | public String[] getIDEProjects(Frame parent)(Code) | | Gets the IDEProjects attribute of the IDEInterface object
Parameters: parent - Description of Parameter The IDEProjects value |
getIDEProperty | public String getIDEProperty(String prop)(Code) | | Gets the IDEProperty attribute of the IDEInterface object
Parameters: prop - Description of Parameter The IDEProperty value |
getIDEProperty | public String getIDEProperty(String prop, String deflt)(Code) | | Gets the IDEProperty attribute of the IDEInterface object
Parameters: prop - Description of Parameter Parameters: deflt - Description of Parameter The IDEProperty value |
getJRefactoryFrame | public static Frame getJRefactoryFrame()(Code) | | Gets the JRefactoryFrame attribute of the JRefactory class
The JRefactoryFrame value |
getLineCount | public int getLineCount(Object buffer)(Code) | | Description of the Method
Parameters: buffer - Description of Parameter The LineEndOffset value |
getLineEndOffset | public int getLineEndOffset(Object buffer, int end)(Code) | | Description of the Method
Parameters: buffer - Description of Parameter Parameters: end - Description of Parameter The LineEndOffset value |
getLineNumber | public int getLineNumber(Frame view, Object buffer)(Code) | | Get the line number of the cursor within the current buffer.
x:String Description of Parameter Parameters: buffer - Description of Parameter The line number of the cursor in the current buffer, or-1 if no current buffer. |
getLineStartOffset | public int getLineStartOffset(Object buffer, int begin)(Code) | | Description of the Method
Parameters: buffer - Description of Parameter Parameters: begin - Description of Parameter The BeginLine value |
getPersistenceType | public int getPersistenceType()(Code) | | Gets the PersistenceType attribute of the JRefactory object
The PersistenceType value |
getProjectName | public String getProjectName(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter The ProjectName value |
getProjectName | public static String getProjectName(Frame view)(Code) | | Sets the projectData attribute of the JEditPrettyPrinter object
Parameters: view - Description of Parameter The projectName value |
getProperties | public PropertiesFile getProperties(String type, String project)(Code) | | Gets the Properties attribute of the JavaStylePlugin class
Parameters: type - Description of Parameter Parameters: project - Description of Parameter The Properties value |
getSettingsDirectory | public static String getSettingsDirectory()(Code) | | Gets the SettingsDirectory attribute of the JRefactory class
The SettingsDirectory value |
getText | public String getText(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter The Text value |
getUserSelection | public void getUserSelection()(Code) | | Gets the userSelection attribute of the JRefactory object
|
goToBuffer | public void goToBuffer(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter |
hideWaitCursor | public void hideWaitCursor(Frame parent)(Code) | | Description of the Method
Parameters: parent - Description of Parameter |
initComponents | public void initComponents()(Code) | | Create a new JRefactory .
|
loadIcon | public Icon loadIcon(String name)(Code) | | Load an icon from the IDE
Parameters: name - The name of the icon. An icon (or null if the icon cannot be found). |
log | public void log(int urgency, Object source, Object message)(Code) | | Description of the Method
Parameters: urgency - Description of Parameter Parameters: source - Description of Parameter Parameters: message - Description of Parameter |
log | public static void log(Object message)(Code) | | Description of the Method
Parameters: message - Description of Parameter |
moveCaretPosition | public void moveCaretPosition(Frame view, Object buffer, int start)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter Parameters: start - Description of Parameter |
openFile | public Object openFile(Frame view, String fileName) throws IOException(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: fileName - Description of Parameter Description of the Returned Value exception: IOException - Description of Exception |
preferredID | public String preferredID()(Code) | | Description of the Method
Description of the Returned Value |
runInAWTThread | public void runInAWTThread(Runnable runnable)(Code) | | Description of the Method
Parameters: runnable - Description of Parameter |
saveProperties | public void saveProperties()(Code) | | write new settings
|
setBuffer | public void setBuffer(Frame view, Object fileName)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: fileName - The new Buffer value |
setLineNumber | public void setLineNumber(Frame view, Object buffer, int lineNumber)(Code) | | Sets the line number
Parameters: view - The new LineNumber value Parameters: buffer - The new LineNumber value Parameters: lineNumber - The new lineNumber value |
setProperty | public static void setProperty(String key, String value)(Code) | | Sets the Property attribute of the JavaStylePlugin class
Parameters: key - The new Property value Parameters: value - The new Property value |
setSelection | public void setSelection(Frame view, Object buffer, int start, int end)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - The new Selection value Parameters: start - The new Selection value Parameters: end - The new Selection value |
setText | public void setText(Frame view, Object buffer, String value)(Code) | | Sets the string in the IDE
Parameters: view - The frame containing the IDE. Parameters: buffer - Description of Parameter Parameters: value - The new file contained in a string |
setView | public void setView(Frame view)(Code) | | Sets the View attribute of the JRefactory object
Parameters: view - The new View value |
showCPDTab | public void showCPDTab()(Code) | | Description of the Method
|
showCSTab | public void showCSTab()(Code) | | Description of the Method
|
showJRefactoryTab | public void showJRefactoryTab()(Code) | | Description of the Method
|
showWaitCursor | public void showWaitCursor(Frame parent)(Code) | | Description of the Method
Parameters: parent - Description of Parameter |
|
|