Develop > Presentation layer > Management Center framework > Customize the Management Center user interface > Create a new tool for the Management Center
Add an OpenLaszlo library to the Management Center
As part of creating a new custom tool for the Management Center, once you have defined all the OpenLaszlo classes, define a single library that includes all the .lzx files that contain OpenLaszlo classes. The Management Center reads this file to understand and recognized all the associated classes for the new tool.
Before you begin
Before you create a library for your new tool, ensure you have created the appropriate OpenLaszlo classes. See Create a new tool for the Management Center.
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > your_company_name > Management_Center_component, where Management_Center_component is the name of the new custom tool.
- Create an OpenLaszlo library file with this syntax: Management_Center_componentname in camel caseLibrary.lzx. For example, CatalogLibrary.lzx.
- Within the library file, include all the .lzx files that you created for the new tool, which contain OpenLaszlo classes. Refer to WCDE_INSTALL\workspace\LOBTools\WebContent\WEB-INF\src\lzx\commerce\catalog\CatalogLibary.lzx as an example.
- Define the new library file so that the Management Center recognizes the new tool:
- In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > shell
- Double-click the ShellExtensionsLibarary.lzx to edit it.
- Include the new library file in the file. For example:
<--- Import the library of the My Custom New tool. --> <include href="../newtool/NewToolLibrary.lzx" />
What to do next
After you complete the work:
- Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the WCDE_INSTALL\workspace\LOBTools\WebContent directory. This is the default environment setting.
- Test the work by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
- Deploy your files to the production environment.
Related concepts
Management Center user interface
Related tasks
Define properties files and bundle keys for user interface text
Add a new library to the Management Center
Define an initialization service
Define a top object definition in the explorer view
Create a new tool for the Management Center