CustomProject demonstrates a project type extension. A project type extension adds support for a new kind of project. By default, WebLogic Workshop includes support for project types such as Web Project, Control Project, Java Project, EJB Project, and others. The CustomProject sample extension adds support for a project that includes files whose extension is PHP.
Note: PHP is a server-side web technology similar to JavaServer Pages. WebLogic Server doesn't support PHP, and you don't need PHP support in order to see how the sample works. If you're curious about PHP, see the PHP FAQ at www.php.net.
The CustomProject sample actually demonstrates a variety of extension types. For more information on these, see Adding Support for Preferences, Application and Project Templates, and Adding New Project Types.
To view the sample code in WebLogic Workshop:
To run this sample, open one of its files in WebLogic Workshop and click the Start button. The sample will build, copying the resulting extension JAR file to the WORKSHOP_HOME/extensions folder, then launch a new instance of WebLogic Workshop. If you've set breakpoints in the first IDE instance, these should be hit as you exercise the sample code in the new instance.
Note that the CustomProject folder hierarchy includes a php_template folder. When you build the sample (WebLogic Workshop builds it when you run it), the Ant build target zips the contents of this folder into php.zip, which is copied to the WORKSHOP_HOME/templates directory. With the ZIP file in this directory, WebLogic Workshop can find it to populate a PHP project with needed files when a new one is created.
For information on debugging extension samples, see Debugging Extensions.
Adding Support for Preferences