Copying and Pasting Projects Between Portfolios

You can copy a project from a portfolio to the Java WorkShop clipboard. Once an object is on the clipboard, you can paste it into another portfolio or into the Source Editor.

If the project you want to copy is not in a portfolio, then you must import it. See Importing a Project for instructions.

To copy a project from a portfolio:

  1. Open the portfolio that contains the project you want to copy.

  2. Select the project.

  3. Click the Copy control on the Portfolio Manager tool bar.

    If the Portfolio Manager is not open, copy a project by choosing Project => Copy and selecting the project name.

To paste a project into a portfolio:

  1. Open the portfolio in which you want to paste the project. You must have write permission for this portfolio.

  2. Click the Paste control on the Portfolio Manager tool bar.

    The Paste Project dialog box opens. The absolute path name of the project appears in the Project File field.

  3. Select how to paste the project.

  4. In the Destination Directory field, enter the absolute path name of the directory in which you want to store the project files.

  5. Click the Yes radio button in the Include Source field if you also want to copy the .java files.

  6. Enter a name for the project in the New Project Name field.

  7. Click the Paste button.

    The WorkShop pastes the project into the current portfolio and adds the project name to the Choose, Edit, and Remove submenus in the Project menu. If the project is an applet, standalone program, or imported applet, its name is also added to the Run submenu in the Project menu.

    If you are copying the files, the WorkShop places the copies in the destination directory and creates two additional files: project.src.jws, which contains the source files for the project, and project.jws, which contains all other files, such as the .prj file. If another user copies the project, the WorkShop copies the .jws and .jws.src files instead of the individual project files.


See also:

Copying an Applet Into an HTML File
Copying an Image Into an HTML File