org.acm.seguin.pretty
Class PrettyPrintFromIDE

java.lang.Object
  extended by org.acm.seguin.pretty.PrettyPrintFile
      extended by org.acm.seguin.pretty.PrettyPrintString
          extended by org.acm.seguin.pretty.PrettyPrintFromIDE
Direct Known Subclasses:
CafePrettyPrinter, ElixirPrettyPrinter, GenericPrettyPrinter, JDeveloperPrettyPrinter, KawaPrettyPrint, NetBeansPrettyPrinter

public abstract class PrettyPrintFromIDE
extends PrettyPrintString

Pretty print the source code based on the IDE

Author:
Chris Seguin

Constructor Summary
PrettyPrintFromIDE()
           
 
Method Summary
protected abstract  int getLineNumber()
          Returns the initial line number
protected  PrintData getPrintData(java.io.File input)
          Return the appropriate print data
protected abstract  java.lang.String getStringFromIDE()
          Gets the initial string from the IDE
 void prettyPrintCurrentWindow()
          Reformat the source code in the current window
protected abstract  void setLineNumber(int value)
          Sets the line number
protected abstract  void setStringInIDE(java.lang.String value)
          Sets the string in the IDE
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintString
getOutputBuffer, getWriter, resetOutputBuffer, setInputString
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintFile
apply, apply, getParserFactory, isApplicable, postApply, setAsk, setParserFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrintFromIDE

public PrettyPrintFromIDE()
Method Detail

prettyPrintCurrentWindow

public void prettyPrintCurrentWindow()
Reformat the source code in the current window


setStringInIDE

protected abstract void setStringInIDE(java.lang.String value)
Sets the string in the IDE

Parameters:
value - The new file contained in a string

setLineNumber

protected abstract void setLineNumber(int value)
Sets the line number

Parameters:
value - The new LineNumber value

getStringFromIDE

protected abstract java.lang.String getStringFromIDE()
Gets the initial string from the IDE

Returns:
The file in string format

getPrintData

protected PrintData getPrintData(java.io.File input)
Return the appropriate print data

Overrides:
getPrintData in class PrettyPrintFile
Parameters:
input - Description of Parameter
Returns:
the print data

getLineNumber

protected abstract int getLineNumber()
Returns the initial line number

Returns:
The LineNumber value