Creating custom compare and merge projects

You can create a compare and merge client project for your model files. You can specify your file name extensions and ID matchers or name matchers. You can also enable diagram support and add sub-session merge extenders for text fields.

Procedure

  1. Click File > New > Other.
  2. In the New window, expand Modeling > Compare Merge Extensibility; then click Compare Merge Project and click Next.
  3. In the New Compare Merge Project wizard, specify the project name and location and click Next.
  4. On the File Specification page, specify your model files by file name extensions or content types and click Next.
  5. On the Matcher Type Specification page, select the matcher type for each model file name extension, either an unique ID or name, and click Next.
  6. On the Diagram and Model Tree Rendering page, if you want to include the Explorer tab in your compare and merge client, select the Show my custom model tree on the Explorer tab check box and click Next.
  7. On the Extended Compare and Merge Classes page, name the extended classes and click Next.
  8. On the Sub-Session Merge Extenders and Composite Delta Strategies page, select the sub-session merge extenders and composite delta strategies to include in the new compare and merge project, and click Finish.

Results

The new project generates all the required Java™ source code for the extended classes. The plugin.xml file contains all the extension point bindings, and the minimum plug-in dependencies are specified in the MANIFEST.MF file.

Feedback