public interface OpenComparisonDialogOperation
Example usage from within a Script:
import de.espirit.firstspirit.agency.OperationAgent;
import de.espirit.firstspirit.ui.operations.OpenComparisonDialogOperation;
operationAgent = context.requireSpecialist(OperationAgent.TYPE);
operation = operationAgent.getOperation(OpenComparisonDialogOperation.TYPE);
operation.setDialogTitle("Title");
operation.setOriginalHeader("Original");
operation.setModifiedHeader("Modified");
originalText = "Deleted My Original Text";
modifiedText = "My Modified Text Inserted";
operation.perform(originalText, modifiedText);
return 0;
The example will show a two column window having the original text on the left hand side and the modified text on the right hand side.
Modifier and Type | Field and Description |
---|---|
static OperationType<OpenComparisonDialogOperation> |
TYPE
Configurable operation providing means to compare and optionally merge two textual sources.
|
Modifier and Type | Method and Description |
---|---|
void |
perform(String originalText,
String modifiedText)
Opens a differential view on the original and modified texts.
|
void |
setDialogTitle(String title)
Sets the title of the dialog.
|
void |
setModifiedHeader(String header)
Sets the header for the modified text section.
|
void |
setOriginalHeader(String header)
Sets the header for the original text section.
|
static final OperationType<OpenComparisonDialogOperation> TYPE
void setDialogTitle(@NotNull String title)
title
- The dialog title.void setOriginalHeader(@NotNull String header)
header
- The original text's header.void setModifiedHeader(@NotNull String header)
header
- The modified text's header.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210