| javax.swing.JPanel org.acm.seguin.ide.standalone.JRefactory
JRefactory | public class JRefactory extends JPanel implements IDEInterface(Code) | | Draws a UML diagram for all the classes in a package
author: Mike Atkinson |
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, 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 | elixir() | 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 String[] | getIDEProjects(Frame parent) | public String | getIDEProperty(String prop) | public String | getIDEProperty(String prop, String deflt) | public int | getLineCount(Object buffer) | public int | getLineEndOffset(Object buffer, int end) | public int | getLineNumber() Get the line number of the cursor within the current buffer. | 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 String | getProjectName(Frame view, Object buffer) | public static String | getProjectName(Frame view) | public PropertiesFile | getProperties(String type, String project) | public String | getText(Frame view, Object buffer) | public void | getUserSelection() | public void | goToBuffer(Frame view, Object buffer) | public void | hideWaitCursor(Frame parent) | 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 | main(String[] args) | public void | moveCaretPosition(Frame view, Object buffer, int start) | public Object | openFile(Frame view, String fileName) | public void | runInAWTThread(Runnable runnable) | public void | saveProperties() | public static void | selectionPanel(String directory) | 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 | showWaitCursor(Frame parent) |
JAVASTYLE_DIR | public static String JAVASTYLE_DIR(Code) | | Description of the Field
|
PRETTY_SETTINGS_FILE | public static File PRETTY_SETTINGS_FILE(Code) | | Description of the Field
|
JRefactory | public JRefactory(Frame view)(Code) | | Create a new JRefactory .
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 been parsed. 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, 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 been parsed. 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 |
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. |
cpdAllOpenBuffers | public void cpdAllOpenBuffers(Frame view)(Code) | | Description of the Method
Parameters: view - Description of Parameter exception: IOException - Description of Exception |
cpdBuffer | public void cpdBuffer(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - 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 |
elixir | public static void elixir()(Code) | | Insertion point for elixir
|
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
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 |
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 |
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()(Code) | | Get the line number of the cursor within the current buffer.
The ine number of the cursor in the current buffer, or -1 if no current buffer. |
getLineNumber | public int getLineNumber(Frame view, Object buffer)(Code) | | Get the line number of the cursor within the current buffer.
The ine 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 |
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 IDEInterface object
Parameters: type - Description of Parameter Parameters: project - Description of Parameter The Properties 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 |
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 |
main | public static void main(String[] args)(Code) | | The main program
Parameters: args - the command line arguments |
moveCaretPosition | public void moveCaretPosition(Frame view, Object buffer, int start)(Code) | | Description of the Method
Parameters: view - 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 |
runInAWTThread | public void runInAWTThread(Runnable runnable)(Code) | | Description of the Method
Parameters: runnable - Description of Parameter |
saveProperties | public void saveProperties()(Code) | | Description of the Method
|
selectionPanel | public static void selectionPanel(String directory)(Code) | | Creates the selection panel
Parameters: directory - Description of Parameter |
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: value - New 1-based line number |
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: 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 |
showWaitCursor | public void showWaitCursor(Frame parent)(Code) | | Description of the Method
Parameters: parent - Description of Parameter |
|
|