|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.patterncoder.BlueJHandler
public class BlueJHandler
Handles the BlueJ proxy object. All classes using the proxy should register an instance of this class using the getInstance method.
| Field Summary | |
|---|---|
static bluej.extensions.BlueJ |
thisBlueJ
|
| Method Summary | |
|---|---|
void |
addClass(java.lang.String className)
Adds a class to the current BlueJ project/package. |
java.io.File |
getBlueJDir()
Returns the BlueJ directory. |
java.io.File |
getCurrentPackageDir()
Returns the directory of the currently opened package. |
java.lang.String |
getCurrentPackageName()
Returns the name of the currently opened package in the BlueJ environment. |
static BlueJHandler |
getInstance()
Controls the creation and management of the singleton object. |
java.io.File |
getProjectDir()
Returns the directory of the currently opened project. |
java.io.File |
getUserConfigDir()
Returns the current users BlueJ configuration directory. |
void |
reload()
Reloads the current BlueJ package. |
void |
setBlueJ(bluej.extensions.BlueJ thisBlueJ)
Sets the BlueJ proxy currently in use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static bluej.extensions.BlueJ thisBlueJ
| Method Detail |
|---|
public static BlueJHandler getInstance()
public void setBlueJ(bluej.extensions.BlueJ thisBlueJ)
thisBlueJ - The proxy object currently being used.public java.io.File getUserConfigDir()
C:\Documents and Settings\.....\BlueJ
public java.io.File getBlueJDir()
C:\BlueJ
public java.io.File getProjectDir()
throws bluej.extensions.ProjectNotOpenException
bluej.extensions.ProjectNotOpenException - thrown if project not open.
public java.io.File getCurrentPackageDir()
throws bluej.extensions.ProjectNotOpenException,
bluej.extensions.PackageNotFoundException
bluej.extensions.ProjectNotOpenException - thrown if project not open.
bluej.extensions.PackageNotFoundException - thrown if package not found.
public java.lang.String getCurrentPackageName()
throws bluej.extensions.ProjectNotOpenException,
bluej.extensions.PackageNotFoundException
bluej.extensions.ProjectNotOpenException - thrown if project not open.
bluej.extensions.PackageNotFoundException - thrown if package not found.public void addClass(java.lang.String className)
className - the name of the class to add.public void reload()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||