| org.acm.seguin.ide.jedit.JavaStylePlugin
JavaStylePlugin | public class JavaStylePlugin extends EBPlugin implements IDEInterface(Code) | | A plugin for pretty printing the current jEdit buffer, using the PrettyPrinter of the JREFactory suite.
author: Mike Atkinson ( Mike@ladyshot.demon.co.uk ) author: Dirk Moebius ( dmoebius@gmx.net ) since: 1.0 version: $Version: $ |
Inner Class :final public class JavaAST extends EBMessage | |
Inner Class :final public class JavaTree extends EBMessage | |
Method Summary | |
public void | addAbstractParentClass(View view, Buffer buffer) | public void | addAnnotation(Frame view, Object buffer, int type, int lineNo, String description) Adds an annotation to an ide buffer. | public void | addChildClass(View view, Buffer buffer) | public static void | addNavigator(Navigator nav) | 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 | check(View view, Buffer buffer) | public void | checkAllOpenBuffers(Frame view) | public void | checkBuffer(Frame view, Object buffer) | public void | checkDirectory(Frame view, boolean recursive) | public static void | checkDirectory(View view, VFSBrowser browser, boolean recursive) | public void | checkFile(View view, VFS.DirectoryEntry entry) | public static void | checkFile(View view, VFSBrowser browser) | public void | clearAnnotations(Frame view, Object buffer, int type) Clears all annotation for an ide buffer. | public void | cpdAllOpenBuffers(Frame view) | public static void | cpdAllOpenBuffers(View view, boolean all) | public void | cpdBuffer(Frame view, Object buffer) | public static void | cpdCurrentFile(View view) | public void | cpdDir(Frame view, boolean recursive) | public static void | cpdDir(View view, boolean recursive) | public static void | deleteProperty(String key) | public void | extractInterface(View view, Buffer buffer) | public CPDDuplicateCodeViewer | getCPDDuplicateCodeViewer(View view) | 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 static DefaultErrorSource | getErrorSource() | public File | getFile(Frame view, Object buffer) | public String | getFilePathForBuffer(Object buffer) | public String[] | getIDEProjects(java.awt.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) 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(View view, Buffer buffer) | public PropertiesFile | getProperties(String type, String project) | public String | getText(Frame view, Object buffer) | public void | goToBuffer(Frame view, Object buffer) | public void | handleMessage(EBMessage message) | public void | hideWaitCursor(java.awt.Frame parent) | public static void | initJSPlugin() | public void | instanceBeautify(View view, Buffer buffer, boolean silently) | public void | instanceCheck(View view, Buffer buffer, boolean silent) | public void | instanceCheckAllOpenBuffers(View view) | public void | instanceCheckDirectory(View view, boolean recursive) | public void | instanceClearErrorList() | public Icon | loadIcon(String name) Load an icon from the IDE
Parameters: name - The name of the icon. | public void | loadUML(View view, String fileName) | public void | log(int urgency, Object source, Object message) | public void | moveCaretPosition(Frame view, Object buffer, int start) | public void | moveClassTo(View view, Buffer buffer) | public void | moveMethod(View view, Buffer buffer) | public Object | openFile(Frame view, String fileName) | public void | openUML(View view, String fileName) | public void | pushDownField(View view, Buffer buffer) | public void | pushDownMethod(View view, Buffer buffer) | public void | pushUpAbstractMethod(View view, Buffer buffer) | public void | pushUpField(View view, Buffer buffer) | public void | pushUpMethod(View view, Buffer buffer) | public void | removeClass(View view, Buffer buffer) | public static void | removeNavigator(Navigator nav) | public void | renameClass(View view, Buffer buffer) | public void | renameField(View view, Buffer buffer) | public void | renameMethod(View view, Buffer buffer) | public void | renameMethodParameters(View view, Buffer buffer) | public void | renameVariablesUsingHungarian(View view, Buffer buffer) | public void | runInAWTThread(Runnable runnable) | public void | saveProperties() | public void | setBuffer(Frame view, Object buffer) | 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(java.awt.Frame parent) | public void | start() |
DEFAULT_TILE_MINSIZE_PROPERTY | final public static String DEFAULT_TILE_MINSIZE_PROPERTY(Code) | | Description of the Field
since: v 1.0 |
JAVASTYLE_DIR | final public static String JAVASTYLE_DIR(Code) | | Description of the Field
since: v 1.0 |
NAME | final public static String NAME(Code) | | Description of the Field
since: v 1.0 |
OPTION_RULES_PREFIX | final public static String OPTION_RULES_PREFIX(Code) | | Description of the Field
since: v 1.0 |
OPTION_UI_DIRECTORY_POPUP | final public static String OPTION_UI_DIRECTORY_POPUP(Code) | | Description of the Field
since: v 1.0 |
PRETTY_SETTINGS_FILE | final public static File PRETTY_SETTINGS_FILE(Code) | | Description of the Field
since: v 1.0 |
addAbstractParentClass | public void addAbstractParentClass(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - The feature to be added to the abstractParentClass attribute since: v 1.0 |
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 |
addChildClass | public void addChildClass(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - The feature to be added to the childClass attribute since: v 1.0 |
addNavigator | public static void addNavigator(Navigator nav)(Code) | | Adds a feature to the navigator attribute of the JavaStylePlugin class
Parameters: nav - The feature to be added to the navigator attribute since: v 1.0 |
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. since: v 1.0 |
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. since: 2.9.12 |
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. since: 2.9.12 |
check | public void check(View view, Buffer buffer)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
checkAllOpenBuffers | public void checkAllOpenBuffers(Frame view)(Code) | | Description of the Method
Parameters: view - Description of Parameter since: v 1.0 |
checkBuffer | public void checkBuffer(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
checkDirectory | public void checkDirectory(Frame view, boolean recursive)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: recursive - Description of Parameter since: v 1.0 |
checkDirectory | public static void checkDirectory(View view, VFSBrowser browser, boolean recursive)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: browser - Description of Parameter Parameters: recursive - Description of Parameter since: v 1.0 |
checkFile | public void checkFile(View view, VFS.DirectoryEntry entry)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: entry - Description of Parameter since: v 1.0 |
checkFile | public static void checkFile(View view, VFSBrowser browser)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: browser - Description of Parameter since: v 1.0 |
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 since: v 1.0 |
cpdAllOpenBuffers | public static void cpdAllOpenBuffers(View view, boolean all) throws IOException(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: all - Description of Parameter exception: IOException - Description of Exception since: v 1.0 |
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 since: v 1.0 |
cpdCurrentFile | public static void cpdCurrentFile(View view) throws IOException(Code) | | Description of the Method
Parameters: view - Description of Parameter exception: IOException - Description of Exception since: v 1.0 |
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 since: v 1.0 |
cpdDir | public static void cpdDir(View 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 since: v 1.0 |
deleteProperty | public static void deleteProperty(String key)(Code) | | Description of the Method
Parameters: key - Description of Parameter since: v 1.0 |
extractInterface | public void extractInterface(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
getCPDDuplicateCodeViewer | public CPDDuplicateCodeViewer getCPDDuplicateCodeViewer(View view)(Code) | | Gets the CPDDuplicateCodeViewer attribute of the JavaStylePlugin object
Parameters: view - Description of Parameter The CPDDuplicateCodeViewer value since: v 1.0 |
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. since: v 1.0 |
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 since: v 1.0 |
getErrorSource | public static DefaultErrorSource getErrorSource()(Code) | | Gets the ErrorSource attribute of the JavaStylePlugin class
The ErrorSource value since: v 1.0 |
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 since: v 1.0 |
getFilePathForBuffer | public String getFilePathForBuffer(Object buffer)(Code) | | Description of the Method
Parameters: buffer - Description of Parameter The File path for this buffer since: v 1.0 |
getIDEProjects | public String[] getIDEProjects(java.awt.Frame parent)(Code) | | Description of the Method
Parameters: parent - Description of Parameter The IDEProjects value since: v 1.0 |
getIDEProperty | public String getIDEProperty(String prop)(Code) | | Gets the IDEProperty attribute of the JavaStylePlugin object
Parameters: prop - Description of Parameter The IDEProperty value since: v 1.0 |
getIDEProperty | public String getIDEProperty(String prop, String deflt)(Code) | | Gets the IDEProperty attribute of the JavaStylePlugin object
Parameters: prop - Description of Parameter Parameters: deflt - Description of Parameter The IDEProperty value since: v 1.0 |
getLineCount | public int getLineCount(Object buffer)(Code) | | Description of the Method
Parameters: buffer - Description of Parameter The LineCount value since: v 1.0 |
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 since: v 1.0 |
getLineNumber | public int getLineNumber(Frame view, Object buffer)(Code) | | Get the line number of the cursor within the current buffer.
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter The ine number of the cursor in the current buffer, or -1 if no current buffer. since: v 1.0 |
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 since: v 1.0 |
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 since: v 1.0 |
getProjectName | public static String getProjectName(View view, Buffer buffer)(Code) | | Sets the projectData attribute of the JEditPrettyPrinter object
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter The projectName value since: v 1.0 |
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 since: v 1.0 |
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 since: v 1.0 |
goToBuffer | public void goToBuffer(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
handleMessage | public void handleMessage(EBMessage message)(Code) | | Description of the Method
Parameters: message - Description of Parameter since: v 1.0 |
hideWaitCursor | public void hideWaitCursor(java.awt.Frame parent)(Code) | | Description of the Method
Parameters: parent - Description of Parameter since: v 1.0 |
initJSPlugin | public static void initJSPlugin()(Code) | | Description of the Method
since: v 1.0 |
instanceBeautify | public void instanceBeautify(View view, Buffer buffer, boolean silently)(Code) | | Parameters: view - the view; may be null, if there is no current view Parameters: buffer - the buffer containing the java source code Parameters: silently - if true, no error dialogs are shown since: v 1.0 |
instanceCheck | public void instanceCheck(View view, Buffer buffer, boolean silent)(Code) | | check current buffer
Parameters: view - Description of Parameter Parameters: buffer - Description of Parameter Parameters: silent - Description of Parameter since: v 1.0 |
instanceCheckAllOpenBuffers | public void instanceCheckAllOpenBuffers(View view)(Code) | | check all open buffers
Parameters: view - Description of Parameter since: v 1.0 |
instanceCheckDirectory | public void instanceCheckDirectory(View view, boolean recursive)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: recursive - Description of Parameter since: v 1.0 |
instanceClearErrorList | public void instanceClearErrorList()(Code) | | clear error list
since: v 1.0 |
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). since: v 1.0 |
loadUML | public void loadUML(View view, String fileName)(Code) | | Parameters: view - Description of the Parameter Parameters: fileName - Description of Parameter since: v 2.9.12 |
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 since: v 1.0 |
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 since: v 1.0 |
moveClassTo | public void moveClassTo(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
moveMethod | public void moveMethod(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
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 since: v 1.0 |
openUML | public void openUML(View view, String fileName)(Code) | | Parameters: view - Description of the Parameter Parameters: fileName - Description of Parameter since: v 2.9.12 |
pushDownField | public void pushDownField(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
pushDownMethod | public void pushDownMethod(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
pushUpAbstractMethod | public void pushUpAbstractMethod(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
pushUpField | public void pushUpField(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
pushUpMethod | public void pushUpMethod(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
removeClass | public void removeClass(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
removeNavigator | public static void removeNavigator(Navigator nav)(Code) | | Description of the Method
Parameters: nav - Description of Parameter since: v 1.0 |
renameClass | public void renameClass(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
renameField | public void renameField(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
renameMethod | public void renameMethod(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
renameMethodParameters | public void renameMethodParameters(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
renameVariablesUsingHungarian | public void renameVariablesUsingHungarian(View view, Buffer buffer)(Code) | | Parameters: view - Description of the Parameter Parameters: buffer - Description of Parameter since: v 1.0 |
runInAWTThread | public void runInAWTThread(Runnable runnable)(Code) | | Description of the Method
Parameters: runnable - Description of Parameter since: v 1.0 |
saveProperties | public void saveProperties()(Code) | | write new settings
since: v 1.0 |
setBuffer | public void setBuffer(Frame view, Object buffer)(Code) | | Description of the Method
Parameters: view - Description of Parameter Parameters: buffer - The new Buffer value since: v 1.0 |
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 since: 2.9.12 |
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 since: v 1.0 |
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 since: v 1.0 |
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 since: v 1.0 |
showWaitCursor | public void showWaitCursor(java.awt.Frame parent)(Code) | | Description of the Method
Parameters: parent - Description of Parameter since: v 1.0 |
start | public void start()(Code) | | Description of the Method
since: v 1.0 |
|
|