MenuItems demonstrates a simple menu action extension. An action is a menu, popup menu, or toolbar command in the WebLogic Workshop IDE. The MenuItems extension adds a Favorites menu whose submenus allow the user to add and remove URLs as favorites; clicking a URL in the menu opens a browser to that URL's location.
For more information on creating action extensions, see Adding Menus and Toolbar Buttons.
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.
With the second instance of the IDE running, you should have access to the Favorites menu pictured at the top of this topic. To try out the sample, click the menu and select items from it. You can also add and remove items using the commands provided.
For information on debugging extension samples, see Debugging Extensions.