Package org.eclipse.emf.cdo.ui.compare

# Klasse CDOCompareEditorUtil

java.lang.Object
org.eclipse.emf.cdo.ui.compare.CDOCompareEditorUtil

public final class CDOCompareEditorUtil extends Object
Static methods to open an EMF Compare dialog.

Seit:
  4.2
Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static interface`
`CDOCompareEditorUtil.ContentsCreator`
An optional mix-in interface for `input consumers` that want to customize the creation of the visual controls of the Compare UI.
`static interface`
`CDOCompareEditorUtil.EditorConsumer`
An optional mix-in interface for `input consumers` that need to be notified when an associated Compare `editor` was opened.
`static final class`
`CDOCompareEditorUtil.Input`
`static class`
`CDOCompareEditorUtil.InputHolder`
A default implementation of an `input consumer`.
`static final class`
`CDOCompareEditorUtil.TransactionOpenerAndEditorCloser`
A `transaction opener` that automatically closes the editor of a transaction when the transaction is closed.

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final Image`
`COMPARE_IMAGE`
Veraltet.
As of 4.7 use `compareImage()`.
`static final String`
`PROP_COMPARISON_IMAGE`
`static final String`
`PROP_COMPARISON_LABEL`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static void`
`addDisposeRunnables(Runnable... disposeRunnables)`
`static void`
`closeEditorWithTransaction(CDOTransaction transaction)`
`static void`
`closeTransactionAfterCommit(CDOTransaction transaction)`
`static Image`
`compareImage()`
`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`
`isSuppressCommit()`
`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)`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### COMPARE_IMAGE

@Deprecated public static final Image COMPARE_IMAGE
Veraltet.
As of 4.7 use `compareImage()`.

Seit:
  4.6

### PROP_COMPARISON_LABEL

public static final String PROP_COMPARISON_LABEL

Seit:
  4.4
Siehe auch:
  - Konstantenfeldwerte

### PROP_COMPARISON_IMAGE

public static final String PROP_COMPARISON_IMAGE

Seit:
  4.4
Siehe auch:
  - Konstantenfeldwerte

## Methodendetails

### compareImage

public static Image compareImage()

Seit:
  4.7

### closeTransactionAfterCommit

public static void closeTransactionAfterCommit(CDOTransaction transaction)

Seit:
  4.4

### closeEditorWithTransaction

public static void closeEditorWithTransaction(CDOTransaction transaction)

Seit:
  4.4

### openEditor

public static boolean openEditor(CDOViewOpener viewOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView, boolean activate)

Seit:
  4.3

### openEditor

public static boolean openEditor(CDOViewOpener viewOpener, CDOTransactionOpener transactionOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView, boolean activate)

Seit:
  4.3

### openEditor

public static boolean openEditor(CDOCommitInfo leftCommitInfo, CDOBranchPoint rightPoint, boolean activate)

Seit:
  4.3

### openEditor

public static boolean openEditor(CDOCommitInfo commitInfo, boolean activate)

Seit:
  4.3

### openEditor

public static boolean openEditor(CDOView leftView, CDOView rightView, CDOView[] originView, boolean activate)

Seit:
  4.3

### openEditor

public static boolean openEditor(CDOView leftView, CDOView rightView, Set<CDOID> affectedIDs, boolean activate)

Seit:
  4.4

### openDialog

public static boolean openDialog(CDOSession session, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint)

Seit:
  4.3

### openDialog

public static boolean openDialog(CDOViewOpener viewOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView)

Seit:
  4.3

### openDialog

public static boolean openDialog(CDOViewOpener viewOpener, CDOTransactionOpener transactionOpener, CDOBranchPoint leftPoint, CDOBranchPoint rightPoint, CDOView[] originView)

Seit:
  4.3

### openDialog

public static boolean openDialog(CDOCommitInfo leftCommitInfo, CDOBranchPoint rightPoint)

### openDialog

public static boolean openDialog(CDOCommitInfo commitInfo)

### openDialog

public static boolean openDialog(CDOView leftView, CDOView rightView, CDOView[] originView)

### openDialog

public static boolean openDialog(CDOView leftView, CDOView rightView, CDOView[] originView, CDOViewOpener viewOpener)

Seit:
  4.3

### openDialog

public static boolean openDialog(CDOView leftView, CDOView rightView, Set<CDOID> affectedIDs)

Seit:
  4.4

### openDialog

public static boolean openDialog(CDOCompareEditorUtil.Input input, CDOView rightView)

Seit:
  4.4

### createComparisonInput

public static CDOCompareEditorUtil.Input createComparisonInput(CDOView leftView, CDOView rightView, CDOView[] originView, CDOViewOpener viewOpener)

Seit:
  4.3

### createComparisonInput

public static CDOCompareEditorUtil.Input createComparisonInput(CDOView leftView, CDOView rightView, Set<CDOID> affectedIDs)

Seit:
  4.4

### createComparisonInput

public static CDOCompareEditorUtil.Input createComparisonInput(CDOView leftView, CDOView rightView, org.eclipse.emf.compare.Comparison comparison)

Seit:
  4.4

### runWithTitle

public static void runWithTitle(String title, Runnable runnable)

Seit:
  4.4

### setInputConsumer

public static void setInputConsumer(Consumer<CDOCompareEditorUtil.Input> consumer)

Seit:
  4.6

### isSuppressCommit

public static boolean isSuppressCommit()

Seit:
  4.3

### setSuppressCommit

public static void setSuppressCommit(boolean suppressCommit)

Seit:
  4.3

### addDisposeRunnables

public static void addDisposeRunnables(Runnable... disposeRunnables)

Seit:
  4.3