Class DiffDialogHelper


  • public final class DiffDialogHelper
    extends java.lang.Object
    The Diff Dialog helper provides methods to open a Diff Dialog.
    Author:
    Eugen Neufeld
    • Method Detail

      • showDialog

        public static void showDialog​(DiffMergeModelContext diffModelContext,
                                      int diffIndex)
                               throws java.lang.IllegalArgumentException
        This opens a dialog displaying the differences of the elements of the DiffMergeModelContext based on the index of the difference. If the index is not valid, less then 0 or greater equals the number of differences, then an IllegalArgumentException is thrown.
        Parameters:
        diffModelContext - the DiffMergeModelContext containing the data
        diffIndex - the index of the difference
        Throws:
        java.lang.IllegalArgumentException - if the index is invalid
      • showDialog

        public static void showDialog​(DiffMergeModelContext diffModelContext,
                                      VControl vControl,
                                      java.lang.String featureLabel)
                               throws java.lang.IllegalArgumentException
        Opens a dialog displaying the differences of the elements of the DiffMergeModelContext based on the provided VControl.
        Parameters:
        diffModelContext - the DiffMergeModelContext containing the data
        vControl - the VControl having the differences
        featureLabel - the feature text to use in the title of the dialog
        Throws:
        java.lang.IllegalArgumentException - if the controls doesn't have a difference