Class DiffDialogHelper
- java.lang.Object
-
- org.eclipse.emf.ecp.diffmerge.swt.DiffDialogHelper
-
public final class DiffDialogHelper extends java.lang.Object
The Diff Dialog helper provides methods to open a Diff Dialog.- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
showDialog(DiffMergeModelContext diffModelContext, int diffIndex)
This opens a dialog displaying the differences of the elements of theDiffMergeModelContext
based on the index of the difference.static void
showDialog(DiffMergeModelContext diffModelContext, VControl vControl, java.lang.String featureLabel)
Opens a dialog displaying the differences of the elements of theDiffMergeModelContext
based on the providedVControl
.
-
-
-
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 theDiffMergeModelContext
based on the index of the difference. If the index is not valid, less then 0 or greater equals the number of differences, then anIllegalArgumentException
is thrown.- Parameters:
diffModelContext
- theDiffMergeModelContext
containing the datadiffIndex
- 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 theDiffMergeModelContext
based on the providedVControl
.- Parameters:
diffModelContext
- theDiffMergeModelContext
containing the datavControl
- theVControl
having the differencesfeatureLabel
- the feature text to use in the title of the dialog- Throws:
java.lang.IllegalArgumentException
- if the controls doesn't have a difference
-
-