What Is a Portfolio?
The Java WorkShop groups projects into portfolios. The portfolio you are working in is called your current portfolio. When you create a new project, it is added to your current portfolio.
The first time you run the WorkShop, it creates a portfolio named personal and makes it your default portfolio. You have write access to this portfolio. The portfolio contains one sample project, Checkers, which you can build, browse, run, and debug.
The WorkShop also provides two read-only portfolios:
- jdk--Java Developer's Kit portfolio. This portfolio contains the example applets in the Java Developer's Kit (JDK).
- awt--Abstract window toolkit portfolio. This portfolio contains the test cases from the JDK.
The WorkShop saves the current portfolio from one session to the next. If you have write access to the portfolio, the WorkShop also saves the current project. Otherwise, the default project in the portfolio file becomes the current project the next time you start the WorkShop.
Portfolio Operations
Using the Portfolio menu on the WorkShop tool bar, you can perform the following operations:
-
Create a portfolio. If you create a portfolio in a location accessible to your HTTP server, then other WorkShop users on the Internet can access the portfolio.
- Import a portfolio. You can import an existing portfolio that is local to your file system or a portfolio that is published on the Internet.
- Change the current portfolio.
- Remove a portfolio from the WorkShop.
Portfolio Files
The WorkShop stores a portfolio in a file called portfolioname.psf. The WorkShop constructs the file in the directory you specify when you create the portfolio.
If you are running the WorkShop in the Solaris(tm) computing environment, the personal portfolio file, personal.psf, is located in the .jws directory in your home directory.
If you are running the WorkShop on either Windows 95 or Windows NT, your personal portfolio is located in the following directory:
- Windows NT
- If you do nothing special, c:\users\default\.jws
- If HOME is defined, your_home_dir\.jws
- If HOME is not defined, c:\windows\.jws
- Windows 95
- If HOME is defined, your_home_dir\.jws
- If HOME is not defined, c:\windows\.jws
The file portfolios in the .jws directory in your home directory contains a list of the portfolios loaded into your current WorkShop session.
See Also:
- Creating a Portfolio
- Importing a Portfolio
- Changing the Current Portfolio
- Browsing a Portfolio over the Internet
- Removing a Portfolio