|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbluej.extensions.BProject
public class BProject
A wrapper for a BlueJ project.
| Method Summary | |
|---|---|
void |
close()
Saves any open files, then closes all frames belonging to this project. |
java.net.URLClassLoader |
getClassLoader()
Returns a URLClassLoader that should be used to load project classes. |
java.io.File |
getDir()
Returns the directory in which this project is stored. |
java.lang.String |
getName()
Returns the name of this project. |
BPackage |
getPackage(java.lang.String name)
Get a package belonging to this project. |
BPackage[] |
getPackages()
Returns all packages belonging to this project. |
BPackage |
newPackage(java.lang.String fullyQualifiedName)
Create and return a new package with the given fully qualified name. |
void |
restartVM()
Restarts the VM used to run user code for this project. |
void |
save()
Requests a "save" of all open files in this project. |
java.lang.String |
toString()
Returns a string representation of this package object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
throws ProjectNotOpenException
ProjectNotOpenException - if the project has been closed by the user.
public java.io.File getDir()
throws ProjectNotOpenException
ProjectNotOpenException - if the project has been closed by the user.
public void save()
throws ProjectNotOpenException
ProjectNotOpenException - if the project has been closed by the user.
public void close()
throws ProjectNotOpenException
ProjectNotOpenException - if the project has been closed by the user.
public void restartVM()
throws ProjectNotOpenException
ProjectNotOpenException - if the project has been closed by the user.
public BPackage newPackage(java.lang.String fullyQualifiedName)
throws ProjectNotOpenException,
PackageAlreadyExistsException
ProjectNotOpenException - if the project has been closed by the user.
PackageAlreadyExistsException - if the named package already exists in the project.
public BPackage getPackage(java.lang.String name)
throws ProjectNotOpenException
name - the fully-qualified name of the package
ProjectNotOpenException - if the project has been closed by the user.
public BPackage[] getPackages()
throws ProjectNotOpenException
ProjectNotOpenException - if the project has been closed by the user.
public java.net.URLClassLoader getClassLoader()
throws ProjectNotOpenException
ProjectNotOpenException - if the project has been closed by the user.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||