Develop > Presentation layer > Customize IBM Sales Center > Editors
Extend an editor
There are several types of editors in the IBM Sales Center. These editors are used to create and manage orders, quotes, ticklers, returns, and customers. Editors are where the Customer Service Representatives do the majority of their work. This section explains how to extend an editor.
To extend an existing IBM Sales Center editor:
Procedure
- Determine the ID and the implementing class of the org.eclipse.ui.editors definition that to extend. The Sales Center editors are defined in the plugin.xml file in the com.ibm.commerce.telesales.ui.impl plug-in.
- Create a subclass of the original editor implementation class, using the class API documentation as a reference. For example:
package extensions; import com.ibm.commerce.telesales.ui.impl.editors.customer.CustomerEditor; public class ExtendedCustomerEditor extends CustomerEditor { /** * Constructor will write out to the console if the extension * is successful. */ public ExtendedCustomerEditor() { System.out.println("ExtendedCustomerEditor"); } }
- Define an org.eclipse.ui.editors definition with the own ID and specify it as the implementation class, the subclass of the original implementation class. For example, this is the plug in manifest file for a new extensions plug-in:
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.0"?> <plugin> <extension point="com.ibm.commerce.telesales.configurator"> <configurator path="config"/> </extension> <extension point="org.eclipse.ui.editors"> <editor name="customerEditorName" icon="icons/ctool16/edit_customer.gif" id="extensions.customerEditor"> </editor> </extension> </plugin>
- Use the system configurator extension point to indicate that the new editor definition will be used:
com.ibm.commerce.telesales.customerEditor=extensions.customerEditor
Related concepts
Overview of customizing IBM Sales Center
Related tasks