Customizing Mapping File to Add New Subtypes

When you create new subtypes, you must update the mapping file to include the subtype name. You can also specify icons for the new subtypes. Use the following procedure to update the mapping file.

  1. Stop the app server.
  2. Extract the mapping file, emxEngineeringCentralMappingFile.properties, from /WEB-INF/lib/engineering.jar into the /WEB-INF/classes directory.
  3. In the mapping file, add the subtype-to-bean mapping. For example:

    If you create a new subtype of drawing called Drawing Print Minor, add the following line to the mapping file:

    type_DrawingPrintMinor=com.matrixone.framework.beans.DrawingPrint
    

    This key is the symbolic name of the new subtype and the value is the bean to use as an interface to the new subtype.

  4. Save the changes to emxEngineeringCentralMappingFile.properties. In addition, replace the original mapping file in engineering.jar with the updated file, respecting the original path information.
  5. Specify icons for the new subtypes as follows:
    1. In /WEB-INF/classes/emxSystem.properties, add a line such as:

      emxFramework.smallIcon.type_DrawingPrintMinor = 
      iconSmallDrawingPrint.gif
      

    2. In /WEB-INF/classes/emxEngineeringCentral.properties, add lines such as

      type_DrawingPrintMinor.SmallIcon = iconSmallDrawingPrint.gif
      
      type_DrawingPrintMinor.LargeIcon = iconLargeDrawingPrint.gif
      

  6. Restart the app server.