| javax.swing.JPanel org.acm.seguin.ide.jbuilder.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) | 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 | elixir() | public Object | getCurrentBuffer(Frame view) | 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(Frame view, Object 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 | getSelectedText(Frame view, Object buffer) | public String | getText(Frame view, Object buffer) | public void | getUserSelection() | public void | goToBuffer(Frame view, Object buffer) | public void | hideWaitCursor(Frame parent) | public static void | initLog() | public void | initialiseIDEProperties() | public Icon | loadIcon(String name) Load an icon from the IDE
Parameters: name - The name of the icon. | public static void | log(String message) | public void | log(int urgency, Object source, Object message) | 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 value) | public void | setSelection(Frame view, Object buffer, int start, int end) | public void | setSourceBrowser(JBuilderBrowser sourceBrowser) | public void | setText(Frame view, Object buffer, String value) | public void | showWaitCursor(Frame parent) |
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) | | Returns true if the current file being edited is a java file
true if the current file is a java file |
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 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. 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 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
|
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(Frame view, Object buffer)(Code) | | Returns the initial line number
The LineNumber value |
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 JRefactory 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 |
getSelectedText | public String getSelectedText(Frame view, Object buffer)(Code) | | Gets the SelectionFromIDE attribute of the JBuilderExtractMethod object
The SelectionFromIDE value |
getText | public String getText(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - 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 |
initLog | public static void initLog()(Code) | | |
initialiseIDEProperties | public void initialiseIDEProperties()(Code) | | |
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 |
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
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter |
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 value)(Code) | | Sets the line number
Parameters: value - The new LineNumber 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: value - The new file contained in a string |
showWaitCursor | public void showWaitCursor(Frame parent)(Code) | | Description of the Method
Parameters: parent - Description of Parameter |
|
|