public interface IInputOutputDescriptor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_FILE_PATH
Input/output is provided as a fully-qualified java.lang.String file path
|
static java.lang.String |
TYPE_INPUT_DATA_IN_MEMORY
Input is provided as a handle to data already loaded in memory.
|
static java.lang.String |
TYPE_INPUT_STREAM_CONTENT_ACCESSOR
Input is provided as org.eclipse.compare.IStreamContentAccessor
|
static java.lang.String |
TYPE_OUTPUT_CONTRIBUTOR
Output must be one of the {Anector, Older or Newer} contributors.
|
static java.lang.String |
TYPE_OUTPUT_EDITABLE_CONTENT
Outpus is provided as IEditableContent inteface
|
static java.lang.String |
TYPE_OUTPUT_STREAM
Output is provided as java.io.OutputStream
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaption()
Retrieves the associated short caption to be shown as the contributor
title in the visual compare/merge editor window.
|
java.lang.String |
getDescription()
Retrieves the extended description providing detailed human-readable
information about the Input/Output, such as location, version etc.
|
org.eclipse.swt.graphics.Image |
getIcon()
Get the icon to be displayed in the corresponding contributor's pane.
|
java.lang.Object |
getInputOutput()
Retrieves the actual Input/Output object, such as file path, stream,
memory buffer etc.
|
java.lang.String |
getInputOutputType()
Retrieves the associated input/output type
|
void |
setCaption(java.lang.String caption)
Sets the short caption to be shown as the contributor title in the visual
compare/merge editor window.
|
void |
setDescription(java.lang.String description)
Sets the extended description providing detailed human-readable
information about the Input/Output, such as location, version, etc.
|
void |
setIcon(org.eclipse.swt.graphics.Image icon)
Sets the icon to be displayed in the corresponding contributor's pane.
|
void |
setInputOutput(java.lang.Object obj) |
static final java.lang.String TYPE_FILE_PATH
static final java.lang.String TYPE_INPUT_STREAM_CONTENT_ACCESSOR
static final java.lang.String TYPE_INPUT_DATA_IN_MEMORY
static final java.lang.String TYPE_OUTPUT_EDITABLE_CONTENT
static final java.lang.String TYPE_OUTPUT_STREAM
static final java.lang.String TYPE_OUTPUT_CONTRIBUTOR
If the input contributor is passed in as TYPE_INPUT_DATA_IN_MEMORY
type, the output can only be same as Ancestor for
three-way or Older for two-way session. In this case the
data will be modified in place (not written on top of existing file).
This is usefull for merging data originating from already open editor or
viewer.
java.lang.String getInputOutputType()
java.lang.Object getInputOutput()
java.lang.String getCaption()
void setCaption(java.lang.String caption)
caption
- -
caption textjava.lang.String getDescription()
void setDescription(java.lang.String description)
description
- -
description textorg.eclipse.swt.graphics.Image getIcon()
void setIcon(org.eclipse.swt.graphics.Image icon)
icon
- to be used.void setInputOutput(java.lang.Object obj)