org.acm.seguin.ide.jedit
Class JEditPrettyPrinter

java.lang.Object
  extended by org.acm.seguin.pretty.PrettyPrintFile
      extended by org.acm.seguin.ide.jedit.JEditPrettyPrinter
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
JEditJSPPrettyPrinter

public class JEditPrettyPrinter
extends PrettyPrintFile
implements java.lang.Runnable

Description of the Class

Since:
1.0
Author:
Mike Atkinson (Mike)

Nested Class Summary
protected  class JEditPrettyPrinter.JavaStyleExceptionPrinter
          Prints to stdout and includes a dialog box
 
Field Summary
protected  Buffer buffer
           
protected static java.lang.Throwable exception
           
protected  JEditPrettyPrinter.JavaStyleExceptionPrinter exceptionPrinter
           
protected  JavaStylePlugin jsPlugin
           
protected  View view
           
protected  java.io.Writer writer
           
 
Constructor Summary
JEditPrettyPrinter(JavaStylePlugin jsPlugin, View view, Buffer buffer)
          Constructor for the JEditPrettyPrinter object
 
Method Summary
protected  java.lang.String getOutputBuffer()
          Gets the OutputBuffer attribute of the JEditPrettyPrinter object
protected  java.io.Writer getWriter(java.io.File file)
          Gets the OutputStream attribute of the JEditPrettyPrinter object
protected  void postApply(java.io.File inputFile, net.sourceforge.jrefactory.ast.SimpleNode root)
          After we have applied the pretty printing
 void run()
          Main processing method for the JEditPrettyPrinter object
protected  void setInputString(java.lang.String input)
          Sets the InputString attribute of the JEditPrettyPrinter object
protected static void setProjectData(View view, Buffer buffer)
          Sets the projectData attribute of the JEditPrettyPrinter object
protected  void setSettings()
          Sets the Settings attribute of the JEditPrettyPrinter object
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintFile
apply, apply, getParserFactory, getPrintData, isApplicable, setAsk, setParserFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exceptionPrinter

protected JEditPrettyPrinter.JavaStyleExceptionPrinter exceptionPrinter

buffer

protected Buffer buffer

writer

protected java.io.Writer writer

jsPlugin

protected JavaStylePlugin jsPlugin

view

protected View view

exception

protected static java.lang.Throwable exception
Constructor Detail

JEditPrettyPrinter

public JEditPrettyPrinter(JavaStylePlugin jsPlugin,
                          View view,
                          Buffer buffer)
Constructor for the JEditPrettyPrinter object

Parameters:
jsPlugin - Description of Parameter
view - Description of Parameter
buffer - Description of Parameter
Since:
v 1.0
Method Detail

run

public void run()
Main processing method for the JEditPrettyPrinter object

Specified by:
run in interface java.lang.Runnable
Since:
v 1.0

setInputString

protected void setInputString(java.lang.String input)
Sets the InputString attribute of the JEditPrettyPrinter object

Parameters:
input - The new InputString value
Since:
v 1.0

getOutputBuffer

protected java.lang.String getOutputBuffer()
Gets the OutputBuffer attribute of the JEditPrettyPrinter object

Returns:
The OutputBuffer value
Since:
v 1.0

getWriter

protected java.io.Writer getWriter(java.io.File file)
Gets the OutputStream attribute of the JEditPrettyPrinter object

Overrides:
getWriter in class PrettyPrintFile
Parameters:
file - Description of Parameter
Returns:
The Writer value
Since:
v 1.0

postApply

protected void postApply(java.io.File inputFile,
                         net.sourceforge.jrefactory.ast.SimpleNode root)
After we have applied the pretty printing

Overrides:
postApply in class PrettyPrintFile
Parameters:
inputFile - Description of Parameter
root - Description of Parameter
Since:
v 1.0

setSettings

protected void setSettings()
Sets the Settings attribute of the JEditPrettyPrinter object

Since:
v 1.0

setProjectData

protected static void setProjectData(View view,
                                     Buffer buffer)
Sets the projectData attribute of the JEditPrettyPrinter object

Parameters:
view - The new ProjectData value
buffer - The new ProjectData value
Since:
v 1.0