org.prorefactor
Class Console

java.lang.Object
  extended by org.prorefactor.Console
Direct Known Subclasses:
HowUsedConsole, WhereUsedConsole

public class Console
extends java.lang.Object

Provides command-line access to ProRefactor configuration and one or two features.


Field Summary
protected  ProparseLdr proparse
           
protected  java.io.BufferedReader reader
           
protected  RefactorSession session
           
 
Constructor Summary
Console()
           
 
Method Summary
 java.util.Collection buildCUListFromFile(java.lang.String listFileName)
           
protected  void checkProjectIsLoaded()
           
 java.util.Collection findCompileUnits(java.io.File dir)
           
protected  void loadProjectSettings()
           
static void main(java.lang.String[] args)
           
protected  java.lang.String menuSelect()
           
protected  void processSelection(java.lang.String choice)
           
protected  java.io.File promptDirectory()
          Prompt for a directory.
protected  void showMenu()
           
protected  void showProparseVersion()
           
 void uiLoop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

protected java.io.BufferedReader reader

proparse

protected ProparseLdr proparse

session

protected RefactorSession session
Constructor Detail

Console

public Console()
Method Detail

main

public static void main(java.lang.String[] args)

uiLoop

public void uiLoop()

processSelection

protected void processSelection(java.lang.String choice)
                         throws java.lang.Exception
Throws:
java.lang.Exception

buildCUListFromFile

public java.util.Collection buildCUListFromFile(java.lang.String listFileName)
                                         throws java.io.IOException
Throws:
java.io.IOException

checkProjectIsLoaded

protected void checkProjectIsLoaded()
                             throws java.lang.Exception
Throws:
java.lang.Exception

findCompileUnits

public java.util.Collection findCompileUnits(java.io.File dir)

loadProjectSettings

protected void loadProjectSettings()
                            throws java.lang.Exception
Throws:
java.lang.Exception

menuSelect

protected java.lang.String menuSelect()
                               throws java.io.IOException
Throws:
java.io.IOException

promptDirectory

protected java.io.File promptDirectory()
                                throws java.io.IOException
Prompt for a directory.

Returns:
null if no valid directory selected.
Throws:
java.io.IOException

showMenu

protected void showMenu()

showProparseVersion

protected void showProparseVersion()


Copyright © 2008 Joanju Software. All Rights Reserved.