Package org.eclipse.emf.cdo.ui.compare
Class CDOCompareEditorUtil
java.lang.Object
org.eclipse.emf.cdo.ui.compare.CDOCompareEditorUtil
Static methods to open an EMF Compare dialog.
- Since:
- 4.2
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
An optional mix-in interface forinput consumers
that want to customize the creation of the visual controls of the Compare UI.static interface
An optional mix-in interface forinput consumers
that need to be notified when an associated Compareeditor
was opened.static final class
static class
A default implementation of aninput consumer
.static final class
Atransaction opener
that automatically closes the editor of a transaction when the transaction is closed. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDisposeRunnables
(Runnable... disposeRunnables) static void
closeEditorWithTransaction
(CDOTransaction transaction) static void
closeTransactionAfterCommit
(CDOTransaction transaction) static Image
static CDOCompareEditorUtil.Input
createComparisonInput
(CDOView leftView, CDOView rightView, Set<CDOID> affectedIDs) static CDOCompareEditorUtil.Input
createComparisonInput
(CDOView leftView, CDOView rightView, CDOView[] originView, CDOViewOpener viewOpener) static CDOCompareEditorUtil.Input
createComparisonInput
(CDOView leftView, CDOView rightView, org.eclipse.emf.compare.Comparison comparison) static boolean
static boolean
openDialog
(CDOCommitInfo commitInfo) static boolean
openDialog
(CDOCommitInfo leftCommitInfo, CDOBranchPoint rightPoint) static boolean
openDialog
(CDOSession session, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint) static boolean
openDialog
(CDOCompareEditorUtil.Input input, CDOView rightView) static boolean
openDialog
(CDOViewOpener viewOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView) static boolean
openDialog
(CDOViewOpener viewOpener, CDOTransactionOpener transactionOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView) static boolean
openDialog
(CDOView leftView, CDOView rightView, Set<CDOID> affectedIDs) static boolean
openDialog
(CDOView leftView, CDOView rightView, CDOView[] originView) static boolean
openDialog
(CDOView leftView, CDOView rightView, CDOView[] originView, CDOViewOpener viewOpener) static boolean
openEditor
(CDOCommitInfo commitInfo, boolean activate) static boolean
openEditor
(CDOCommitInfo leftCommitInfo, CDOBranchPoint rightPoint, boolean activate) static boolean
openEditor
(CDOViewOpener viewOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView, boolean activate) static boolean
openEditor
(CDOViewOpener viewOpener, CDOTransactionOpener transactionOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView, boolean activate) static boolean
openEditor
(CDOView leftView, CDOView rightView, Set<CDOID> affectedIDs, boolean activate) static boolean
openEditor
(CDOView leftView, CDOView rightView, CDOView[] originView, boolean activate) static void
runWithTitle
(String title, Runnable runnable) static void
setInputConsumer
(Consumer<CDOCompareEditorUtil.Input> consumer) static void
setSuppressCommit
(boolean suppressCommit)
-
Field Details
-
COMPARE_IMAGE
Deprecated.As of 4.7 usecompareImage()
.- Since:
- 4.6
-
PROP_COMPARISON_LABEL
- Since:
- 4.4
- See Also:
-
PROP_COMPARISON_IMAGE
- Since:
- 4.4
- See Also:
-
-
Method Details
-
compareImage
- Since:
- 4.7
-
closeTransactionAfterCommit
- Since:
- 4.4
-
closeEditorWithTransaction
- Since:
- 4.4
-
openEditor
public static boolean openEditor(CDOViewOpener viewOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView, boolean activate) - Since:
- 4.3
-
openEditor
public static boolean openEditor(CDOViewOpener viewOpener, CDOTransactionOpener transactionOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView, boolean activate) - Since:
- 4.3
-
openEditor
public static boolean openEditor(CDOCommitInfo leftCommitInfo, CDOBranchPoint rightPoint, boolean activate) - Since:
- 4.3
-
openEditor
- Since:
- 4.3
-
openEditor
public static boolean openEditor(CDOView leftView, CDOView rightView, CDOView[] originView, boolean activate) - Since:
- 4.3
-
openEditor
public static boolean openEditor(CDOView leftView, CDOView rightView, Set<CDOID> affectedIDs, boolean activate) - Since:
- 4.4
-
openDialog
public static boolean openDialog(CDOSession session, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint) - Since:
- 4.3
-
openDialog
public static boolean openDialog(CDOViewOpener viewOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView) - Since:
- 4.3
-
openDialog
public static boolean openDialog(CDOViewOpener viewOpener, CDOTransactionOpener transactionOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView) - Since:
- 4.3
-
openDialog
-
openDialog
-
openDialog
-
openDialog
public static boolean openDialog(CDOView leftView, CDOView rightView, CDOView[] originView, CDOViewOpener viewOpener) - Since:
- 4.3
-
openDialog
- Since:
- 4.4
-
openDialog
- Since:
- 4.4
-
createComparisonInput
public static CDOCompareEditorUtil.Input createComparisonInput(CDOView leftView, CDOView rightView, CDOView[] originView, CDOViewOpener viewOpener) - Since:
- 4.3
-
createComparisonInput
public static CDOCompareEditorUtil.Input createComparisonInput(CDOView leftView, CDOView rightView, Set<CDOID> affectedIDs) - Since:
- 4.4
-
createComparisonInput
public static CDOCompareEditorUtil.Input createComparisonInput(CDOView leftView, CDOView rightView, org.eclipse.emf.compare.Comparison comparison) - Since:
- 4.4
-
runWithTitle
- Since:
- 4.4
-
setInputConsumer
- Since:
- 4.6
-
isSuppressCommit
public static boolean isSuppressCommit()- Since:
- 4.3
-
setSuppressCommit
public static void setSuppressCommit(boolean suppressCommit) - Since:
- 4.3
-
addDisposeRunnables
- Since:
- 4.3
-
compareImage()
.