org.acm.seguin.ide.jedit
Class JavaStylePlugin

java.lang.Object
  extended by EBPlugin
      extended by org.acm.seguin.ide.jedit.JavaStylePlugin
All Implemented Interfaces:
IDEInterface

public class JavaStylePlugin
extends EBPlugin
implements IDEInterface

A plugin for pretty printing the current jEdit buffer, using the PrettyPrinter of the JREFactory suite.

Since:
1.0
Version:
$Version: $
Author:
Mike Atkinson ( Mike@ladyshot.demon.co.uk ), Dirk Moebius ( dmoebius@gmx.net )

Nested Class Summary
 class JavaStylePlugin.JavaAST
          Description of the Class
 class JavaStylePlugin.JavaTree
          Description of the Class
 
Field Summary
static java.lang.String DEFAULT_TILE_MINSIZE_PROPERTY
          Description of the Field
static java.lang.String JAVASTYLE_DIR
          Description of the Field
static JavaStylePlugin jsPlugin
          Description of the Field
static java.lang.String NAME
          Description of the Field
static java.lang.String OPTION_RULES_PREFIX
          Description of the Field
static java.lang.String OPTION_UI_DIRECTORY_POPUP
          Description of the Field
static java.io.File PRETTY_SETTINGS_FILE
          Description of the Field
 
Fields inherited from interface org.acm.seguin.ide.common.IDEInterface
CODING_STANDARDS, CUT_AND_PASTE_DETECTOR, DEBUG, ERROR, MESSAGE, NOTICE, WARNING
 
Constructor Summary
JavaStylePlugin()
           
 
Method Summary
 void addAbstractParentClass(View view, Buffer buffer)
           
 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.
 void addChildClass(View view, Buffer buffer)
           
static void addNavigator(Navigator nav)
          Adds a feature to the navigator attribute of the JavaStylePlugin class
 boolean bufferContainsJavaSource(java.awt.Frame view, java.lang.Object buffer)
          Does the buffer contain Java source code.
 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.
 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.
 void check(View view, Buffer buffer)
          Description of the Method
 void checkAllOpenBuffers(java.awt.Frame view)
          Description of the Method
 void checkBuffer(java.awt.Frame view, java.lang.Object buffer)
          Description of the Method
 void checkDirectory(java.awt.Frame view, boolean recursive)
          Description of the Method
static void checkDirectory(View view, VFSBrowser browser, boolean recursive)
          Description of the Method
 void checkFile(View view, VFS.DirectoryEntry[] entry)
          Description of the Method
static void checkFile(View view, VFSBrowser browser)
          Description of the Method
 void clearAnnotations(java.awt.Frame view, java.lang.Object buffer, int type)
          Clears all annotation for an ide buffer.
 void cpdAllOpenBuffers(java.awt.Frame view)
          Description of the Method
static void cpdAllOpenBuffers(View view, boolean all)
          Description of the Method
 void cpdBuffer(java.awt.Frame view, java.lang.Object buffer)
          Description of the Method
static void cpdCurrentFile(View view)
          Description of the Method
 void cpdDir(java.awt.Frame view, boolean recursive)
          Description of the Method
static void cpdDir(View view, boolean recursive)
          Description of the Method
static void deleteProperty(java.lang.String key)
          Description of the Method
 void extractInterface(View view, Buffer buffer)
           
 CPDDuplicateCodeViewer getCPDDuplicateCodeViewer(View view)
          Gets the CPDDuplicateCodeViewer attribute of the JavaStylePlugin object
 java.lang.Object getCurrentBuffer(java.awt.Frame view)
          Get the current (atcive) buffer.
 java.awt.Frame getEditorFrame()
          Returns the frame that contains the editor.
static DefaultErrorSource getErrorSource()
          Gets the ErrorSource attribute of the JavaStylePlugin class
 java.io.File getFile(java.awt.Frame view, java.lang.Object buffer)
          Gets the file that is being edited
 java.lang.String getFilePathForBuffer(java.lang.Object buffer)
          Description of the Method
 java.lang.String[] getIDEProjects(java.awt.Frame parent)
          Description of the Method
 java.lang.String getIDEProperty(java.lang.String prop)
          Gets the IDEProperty attribute of the JavaStylePlugin object
 java.lang.String getIDEProperty(java.lang.String prop, java.lang.String deflt)
          Gets the IDEProperty attribute of the JavaStylePlugin object
 int getLineCount(java.lang.Object buffer)
          Description of the Method
 int getLineEndOffset(java.lang.Object buffer, int end)
          Description of the Method
 int getLineNumber(java.awt.Frame view, java.lang.Object buffer)
          Get the line number of the cursor within the current buffer.
 int getLineStartOffset(java.lang.Object buffer, int begin)
          Description of the Method
 java.lang.String getProjectName(java.awt.Frame view, java.lang.Object buffer)
          Description of the Method
static java.lang.String getProjectName(View view, Buffer buffer)
          Sets the projectData attribute of the JEditPrettyPrinter object
 PropertiesFile getProperties(java.lang.String type, java.lang.String project)
          Gets the Properties attribute of the JavaStylePlugin class
 java.lang.String getText(java.awt.Frame view, java.lang.Object buffer)
          Description of the Method
 void goToBuffer(java.awt.Frame view, java.lang.Object buffer)
          Description of the Method
 void handleMessage(EBMessage message)
          Description of the Method
 void hideWaitCursor(java.awt.Frame parent)
          Description of the Method
static void initJSPlugin()
          Description of the Method
 void instanceBeautify(View view, Buffer buffer, boolean silently)
           
 void instanceCheck(View view, Buffer buffer, boolean silent)
          check current buffer
 void instanceCheckAllOpenBuffers(View view)
          check all open buffers
 void instanceCheckDirectory(View view, boolean recursive)
          Description of the Method
 void instanceClearErrorList()
          clear error list
 javax.swing.Icon loadIcon(java.lang.String name)
          Load an icon from the IDE
 void loadUML(View view, java.lang.String fileName)
           
 void log(int urgency, java.lang.Object source, java.lang.Object message)
          Description of the Method
 void moveCaretPosition(java.awt.Frame view, java.lang.Object buffer, int start)
          Description of the Method
 void moveClassTo(View view, Buffer buffer)
           
 void moveMethod(View view, Buffer buffer)
           
 java.lang.Object openFile(java.awt.Frame view, java.lang.String fileName)
          Description of the Method
 void openUML(View view, java.lang.String fileName)
           
 void pushDownField(View view, Buffer buffer)
           
 void pushDownMethod(View view, Buffer buffer)
           
 void pushUpAbstractMethod(View view, Buffer buffer)
           
 void pushUpField(View view, Buffer buffer)
           
 void pushUpMethod(View view, Buffer buffer)
           
 void removeClass(View view, Buffer buffer)
           
static void removeNavigator(Navigator nav)
          Description of the Method
 void renameClass(View view, Buffer buffer)
           
 void renameField(View view, Buffer buffer)
           
 void renameMethod(View view, Buffer buffer)
           
 void renameMethodParameters(View view, Buffer buffer)
           
 void renameVariablesUsingHungarian(View view, Buffer buffer)
           
 void runInAWTThread(java.lang.Runnable runnable)
          Description of the Method
 void saveProperties()
          write new settings
 void setBuffer(java.awt.Frame view, java.lang.Object buffer)
          Description of the Method
 void setLineNumber(java.awt.Frame view, java.lang.Object buffer, int lineNumber)
          Sets the line number
static void setProperty(java.lang.String key, java.lang.String value)
          Sets the Property attribute of the JavaStylePlugin class
 void setSelection(java.awt.Frame view, java.lang.Object buffer, int start, int end)
          Description of the Method
 void setText(java.awt.Frame view, java.lang.Object buffer, java.lang.String value)
          Sets the string in the IDE
 void showWaitCursor(java.awt.Frame parent)
          Description of the Method
 void start()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_RULES_PREFIX

public static final java.lang.String OPTION_RULES_PREFIX
Description of the Field

Since:
v 1.0
See Also:
Constant Field Values

OPTION_UI_DIRECTORY_POPUP

public static final java.lang.String OPTION_UI_DIRECTORY_POPUP
Description of the Field

Since:
v 1.0
See Also:
Constant Field Values

DEFAULT_TILE_MINSIZE_PROPERTY

public static final java.lang.String DEFAULT_TILE_MINSIZE_PROPERTY
Description of the Field

Since:
v 1.0
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Description of the Field

Since:
v 1.0
See Also:
Constant Field Values

JAVASTYLE_DIR

public static final java.lang.String JAVASTYLE_DIR
Description of the Field

Since:
v 1.0

PRETTY_SETTINGS_FILE

public static final java.io.File PRETTY_SETTINGS_FILE
Description of the Field

Since:
v 1.0

jsPlugin

public static JavaStylePlugin jsPlugin
Description of the Field

Since:
v 1.0
Constructor Detail

JavaStylePlugin

public JavaStylePlugin()
Method Detail

setSelection

public void setSelection(java.awt.Frame view,
                         java.lang.Object buffer,
                         int start,
                         int end)
Description of the Method

Specified by:
setSelection in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - The new Selection value
start - The new Selection value
end - The new Selection value
Since:
v 1.0

setBuffer

public void setBuffer(java.awt.Frame view,
                      java.lang.Object buffer)
Description of the Method

Specified by:
setBuffer in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - The new Buffer value
Since:
v 1.0

setText

public void setText(java.awt.Frame view,
                    java.lang.Object buffer,
                    java.lang.String value)
Sets the string in the IDE

Specified by:
setText in interface IDEInterface
Parameters:
view - The frame containing the IDE.
buffer - Description of Parameter
value - The new file contained in a string
Since:
v 1.0

setLineNumber

public void setLineNumber(java.awt.Frame view,
                          java.lang.Object buffer,
                          int lineNumber)
Sets the line number

Specified by:
setLineNumber in interface IDEInterface
Parameters:
view - The new lineNumber value
buffer - The new lineNumber value
lineNumber - The new lineNumber value
Since:
2.9.12

getIDEProperty

public java.lang.String getIDEProperty(java.lang.String prop)
Gets the IDEProperty attribute of the JavaStylePlugin object

Specified by:
getIDEProperty in interface IDEInterface
Parameters:
prop - Description of Parameter
Returns:
The IDEProperty value
Since:
v 1.0

getIDEProperty

public java.lang.String getIDEProperty(java.lang.String prop,
                                       java.lang.String deflt)
Gets the IDEProperty attribute of the JavaStylePlugin object

Specified by:
getIDEProperty in interface IDEInterface
Parameters:
prop - Description of Parameter
deflt - Description of Parameter
Returns:
The IDEProperty value
Since:
v 1.0

getFilePathForBuffer

public java.lang.String getFilePathForBuffer(java.lang.Object buffer)
Description of the Method

Specified by:
getFilePathForBuffer in interface IDEInterface
Parameters:
buffer - Description of Parameter
Returns:
The File path for this buffer
Since:
v 1.0

getIDEProjects

public java.lang.String[] getIDEProjects(java.awt.Frame parent)
Description of the Method

Specified by:
getIDEProjects in interface IDEInterface
Parameters:
parent - Description of Parameter
Returns:
The IDEProjects value
Since:
v 1.0

getCPDDuplicateCodeViewer

public CPDDuplicateCodeViewer getCPDDuplicateCodeViewer(View view)
Gets the CPDDuplicateCodeViewer attribute of the JavaStylePlugin object

Parameters:
view - Description of Parameter
Returns:
The CPDDuplicateCodeViewer value
Since:
v 1.0

getProperties

public PropertiesFile getProperties(java.lang.String type,
                                    java.lang.String project)
Gets the Properties attribute of the JavaStylePlugin class

Specified by:
getProperties in interface IDEInterface
Parameters:
type - Description of Parameter
project - Description of Parameter
Returns:
The Properties value
Since:
v 1.0

getLineStartOffset

public int getLineStartOffset(java.lang.Object buffer,
                              int begin)
Description of the Method

Specified by:
getLineStartOffset in interface IDEInterface
Parameters:
buffer - Description of Parameter
begin - Description of Parameter
Returns:
The BeginLine value
Since:
v 1.0

getLineEndOffset

public int getLineEndOffset(java.lang.Object buffer,
                            int end)
Description of the Method

Specified by:
getLineEndOffset in interface IDEInterface
Parameters:
buffer - Description of Parameter
end - Description of Parameter
Returns:
The LineEndOffset value
Since:
v 1.0

getText

public java.lang.String getText(java.awt.Frame view,
                                java.lang.Object buffer)
Description of the Method

Specified by:
getText in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - Description of Parameter
Returns:
The Text value
Since:
v 1.0

getLineCount

public int getLineCount(java.lang.Object buffer)
Description of the Method

Specified by:
getLineCount in interface IDEInterface
Parameters:
buffer - Description of Parameter
Returns:
The LineCount value
Since:
v 1.0

getProjectName

public java.lang.String getProjectName(java.awt.Frame view,
                                       java.lang.Object buffer)
Description of the Method

Specified by:
getProjectName in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - Description of Parameter
Returns:
The ProjectName value
Since:
v 1.0

getEditorFrame

public java.awt.Frame getEditorFrame()
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.

Specified by:
getEditorFrame in interface IDEInterface
Returns:
the frame
Since:
v 1.0

getCurrentBuffer

public java.lang.Object getCurrentBuffer(java.awt.Frame view)
Get the current (atcive) buffer.

Specified by:
getCurrentBuffer in interface IDEInterface
Parameters:
view - The frame containing the IDE.
Returns:
The active buffer or null if no active buffer.
Since:
v 1.0

getLineNumber

public int getLineNumber(java.awt.Frame view,
                         java.lang.Object buffer)
Get the line number of the cursor within the current buffer.

Specified by:
getLineNumber in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - Description of Parameter
Returns:
The ine number of the cursor in the current buffer, or -1 if no current buffer.
Since:
v 1.0

getFile

public java.io.File getFile(java.awt.Frame view,
                            java.lang.Object buffer)
Gets the file that is being edited

Specified by:
getFile in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - Description of Parameter
Returns:
The File value
Since:
v 1.0

bufferParsed

public 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.

Specified by:
bufferParsed in interface IDEInterface
Parameters:
view - The frame containing the IDE.
buffer - The buffer (containing Java Source) that has been parsed.
compilationUnit - The root node of the AST.
Since:
2.9.12

bufferNavigatorTree

public 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.

Specified by:
bufferNavigatorTree in interface IDEInterface
Parameters:
view - The frame containing the IDE.
buffer - The buffer (containing Java Source) that has been parsed.
node - The root node of the tree.
Since:
2.9.12

loadIcon

public javax.swing.Icon loadIcon(java.lang.String name)
Load an icon from the IDE

Specified by:
loadIcon in interface IDEInterface
Parameters:
name - The name of the icon.
Returns:
An icon (or null if the icon cannot be found).
Since:
v 1.0

bufferContainsJavaSource

public boolean bufferContainsJavaSource(java.awt.Frame view,
                                        java.lang.Object buffer)
Does the buffer contain Java source code.

Specified by:
bufferContainsJavaSource in interface IDEInterface
Parameters:
view - The frame containing the IDE.
buffer - Description of Parameter
Returns:
true if the buffer contains Java source code, false otherwise.
Since:
v 1.0

handleMessage

public void handleMessage(EBMessage message)
Description of the Method

Parameters:
message - Description of Parameter
Since:
v 1.0

start

public void start()
Description of the Method

Since:
v 1.0

showWaitCursor

public void showWaitCursor(java.awt.Frame parent)
Description of the Method

Specified by:
showWaitCursor in interface IDEInterface
Parameters:
parent - Description of Parameter
Since:
v 1.0

hideWaitCursor

public void hideWaitCursor(java.awt.Frame parent)
Description of the Method

Specified by:
hideWaitCursor in interface IDEInterface
Parameters:
parent - Description of Parameter
Since:
v 1.0

log

public void log(int urgency,
                java.lang.Object source,
                java.lang.Object message)
Description of the Method

Specified by:
log in interface IDEInterface
Parameters:
urgency - Description of Parameter
source - Description of Parameter
message - Description of Parameter
Since:
v 1.0

instanceCheck

public void instanceCheck(View view,
                          Buffer buffer,
                          boolean silent)
check current buffer

Parameters:
view - Description of Parameter
buffer - Description of Parameter
silent - Description of Parameter
Since:
v 1.0

instanceCheckDirectory

public void instanceCheckDirectory(View view,
                                   boolean recursive)
Description of the Method

Parameters:
view - Description of Parameter
recursive - Description of Parameter
Since:
v 1.0

instanceCheckAllOpenBuffers

public void instanceCheckAllOpenBuffers(View view)
check all open buffers

Parameters:
view - Description of Parameter
Since:
v 1.0

instanceClearErrorList

public void instanceClearErrorList()
clear error list

Since:
v 1.0

checkFile

public void checkFile(View view,
                      VFS.DirectoryEntry[] entry)
Description of the Method

Parameters:
view - Description of Parameter
entry - Description of Parameter
Since:
v 1.0

cpdBuffer

public void cpdBuffer(java.awt.Frame view,
                      java.lang.Object buffer)
               throws java.io.IOException
Description of the Method

Specified by:
cpdBuffer in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - Description of Parameter
Throws:
java.io.IOException - Description of Exception
Since:
v 1.0

cpdAllOpenBuffers

public void cpdAllOpenBuffers(java.awt.Frame view)
                       throws java.io.IOException
Description of the Method

Specified by:
cpdAllOpenBuffers in interface IDEInterface
Parameters:
view - Description of Parameter
Throws:
java.io.IOException - Description of Exception
Since:
v 1.0

cpdDir

public void cpdDir(java.awt.Frame view,
                   boolean recursive)
            throws java.io.IOException
Description of the Method

Specified by:
cpdDir in interface IDEInterface
Parameters:
view - Description of Parameter
recursive - Description of Parameter
Throws:
java.io.IOException - Description of Exception
Since:
v 1.0

openFile

public java.lang.Object openFile(java.awt.Frame view,
                                 java.lang.String fileName)
                          throws java.io.IOException
Description of the Method

Specified by:
openFile in interface IDEInterface
Parameters:
view - Description of Parameter
fileName - Description of Parameter
Returns:
Description of the Returned Value
Throws:
java.io.IOException - Description of Exception
Since:
v 1.0

moveCaretPosition

public void moveCaretPosition(java.awt.Frame view,
                              java.lang.Object buffer,
                              int start)
Description of the Method

Specified by:
moveCaretPosition in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - Description of Parameter
start - Description of Parameter
Since:
v 1.0

runInAWTThread

public void runInAWTThread(java.lang.Runnable runnable)
Description of the Method

Specified by:
runInAWTThread in interface IDEInterface
Parameters:
runnable - Description of Parameter
Since:
v 1.0

checkBuffer

public void checkBuffer(java.awt.Frame view,
                        java.lang.Object buffer)
Description of the Method

Specified by:
checkBuffer in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - Description of Parameter
Since:
v 1.0

check

public void check(View view,
                  Buffer buffer)
Description of the Method

Parameters:
view - Description of Parameter
buffer - Description of Parameter
Since:
v 1.0

checkAllOpenBuffers

public void checkAllOpenBuffers(java.awt.Frame view)
Description of the Method

Specified by:
checkAllOpenBuffers in interface IDEInterface
Parameters:
view - Description of Parameter
Since:
v 1.0

checkDirectory

public void checkDirectory(java.awt.Frame view,
                           boolean recursive)
Description of the Method

Specified by:
checkDirectory in interface IDEInterface
Parameters:
view - Description of Parameter
recursive - Description of Parameter
Since:
v 1.0

instanceBeautify

public void instanceBeautify(View view,
                             Buffer buffer,
                             boolean silently)
Parameters:
view - the view; may be null, if there is no current view
buffer - the buffer containing the java source code
silently - if true, no error dialogs are shown
Since:
v 1.0

goToBuffer

public void goToBuffer(java.awt.Frame view,
                       java.lang.Object buffer)
Description of the Method

Specified by:
goToBuffer in interface IDEInterface
Parameters:
view - Description of Parameter
buffer - Description of Parameter
Since:
v 1.0

saveProperties

public void saveProperties()
write new settings

Specified by:
saveProperties in interface IDEInterface
Since:
v 1.0

loadUML

public void loadUML(View view,
                    java.lang.String fileName)
Parameters:
view - Description of the Parameter
fileName - Description of Parameter
Since:
v 2.9.12

openUML

public void openUML(View view,
                    java.lang.String fileName)
Parameters:
view - Description of the Parameter
fileName - Description of Parameter
Since:
v 2.9.12

renameClass

public void renameClass(View view,
                        Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

moveClassTo

public void moveClassTo(View view,
                        Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

addAbstractParentClass

public void addAbstractParentClass(View view,
                                   Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - The feature to be added to the abstractParentClass attribute
Since:
v 1.0

removeClass

public void removeClass(View view,
                        Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

addChildClass

public void addChildClass(View view,
                          Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - The feature to be added to the childClass attribute
Since:
v 1.0

extractInterface

public void extractInterface(View view,
                             Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

renameVariablesUsingHungarian

public void renameVariablesUsingHungarian(View view,
                                          Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

pushUpMethod

public void pushUpMethod(View view,
                         Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

pushUpAbstractMethod

public void pushUpAbstractMethod(View view,
                                 Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

renameMethod

public void renameMethod(View view,
                         Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

pushDownMethod

public void pushDownMethod(View view,
                           Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

moveMethod

public void moveMethod(View view,
                       Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

renameMethodParameters

public void renameMethodParameters(View view,
                                   Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

renameField

public void renameField(View view,
                        Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

pushUpField

public void pushUpField(View view,
                        Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

pushDownField

public void pushDownField(View view,
                          Buffer buffer)
Parameters:
view - Description of the Parameter
buffer - Description of Parameter
Since:
v 1.0

setProperty

public static void setProperty(java.lang.String key,
                               java.lang.String value)
Sets the Property attribute of the JavaStylePlugin class

Parameters:
key - The new Property value
value - The new Property value
Since:
v 1.0

getErrorSource

public static DefaultErrorSource getErrorSource()
Gets the ErrorSource attribute of the JavaStylePlugin class

Returns:
The ErrorSource value
Since:
v 1.0

getProjectName

public static java.lang.String getProjectName(View view,
                                              Buffer buffer)
Sets the projectData attribute of the JEditPrettyPrinter object

Parameters:
view - Description of Parameter
buffer - Description of Parameter
Returns:
The projectName value
Since:
v 1.0

addNavigator

public static void addNavigator(Navigator nav)
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

removeNavigator

public static void removeNavigator(Navigator nav)
Description of the Method

Parameters:
nav - Description of Parameter
Since:
v 1.0

deleteProperty

public static void deleteProperty(java.lang.String key)
Description of the Method

Parameters:
key - Description of Parameter
Since:
v 1.0

initJSPlugin

public static void initJSPlugin()
Description of the Method

Since:
v 1.0

cpdCurrentFile

public static void cpdCurrentFile(View view)
                           throws java.io.IOException
Description of the Method

Parameters:
view - Description of Parameter
Throws:
java.io.IOException - Description of Exception
Since:
v 1.0

cpdAllOpenBuffers

public static void cpdAllOpenBuffers(View view,
                                     boolean all)
                              throws java.io.IOException
Description of the Method

Parameters:
view - Description of Parameter
all - Description of Parameter
Throws:
java.io.IOException - Description of Exception
Since:
v 1.0

cpdDir

public static void cpdDir(View view,
                          boolean recursive)
                   throws java.io.IOException
Description of the Method

Parameters:
view - Description of Parameter
recursive - Description of Parameter
Throws:
java.io.IOException - Description of Exception
Since:
v 1.0

checkFile

public static void checkFile(View view,
                             VFSBrowser browser)
Description of the Method

Parameters:
view - Description of Parameter
browser - Description of Parameter
Since:
v 1.0

checkDirectory

public static void checkDirectory(View view,
                                  VFSBrowser browser,
                                  boolean recursive)
Description of the Method

Parameters:
view - Description of Parameter
browser - Description of Parameter
recursive - Description of Parameter
Since:
v 1.0

addAnnotation

public 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.

Specified by:
addAnnotation in interface IDEInterface
Parameters:
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
lineNo - The line number of the annotation.
description - The annotation

clearAnnotations

public void clearAnnotations(java.awt.Frame view,
                             java.lang.Object buffer,
                             int type)
Clears all annotation for an ide buffer.

Specified by:
clearAnnotations in interface IDEInterface
Parameters:
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