Develop > Presentation layer > Customize IBM Sales Center > Views


Extend a view

Several default views are available for customization within the IBM Sales Center client. This section explains how to extend a view.


Procedure

  1. Subclass the view using the API documentation for the view implementation class as a reference. For example:

    ExtendedStoresView.java
    
    package extensions; 
    import com.ibm.commerce.telesales.ui.impl.views.stores.StoresView; 
    public class ExtendedStoresView extends StoresView {
            
            public ExtendedStoresView() {
                    // indicate in console that the extension is being
    used
                    System.out.println("ExtendedStoresView");         }
    }
    

  2. Define the new view using the org.eclipse.ui.view extension point. For example, in the extensions plug-in manifest file:

    <?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.views">      
    <view name="Stores"
                category="com.ibm.commerce.telesales.ui.impl"
                
                id="extensions.storeview">      
    </view>   
    </extension>
    </plugin>
    

  3. Use the System Configurator Extension Point to indicate that the IBM Sales Center perspective will use the new view instead of the default IBM Sales Center view. For example:

    com.ibm.commerce.telesales.ui.storeview=extensions.storeview
    


Related concepts

Views

System configurator


Related tasks

Add a view

Remove a view

Replace a view


+

Search Tips   |   Advanced Search