public class DefaultInputOutputDescriptor extends java.lang.Object implements IInputOutputDescriptor
IInputOutputDescriptorTYPE_FILE_PATH, TYPE_INPUT_DATA_IN_MEMORY, TYPE_INPUT_STREAM_CONTENT_ACCESSOR, TYPE_OUTPUT_CONTRIBUTOR, TYPE_OUTPUT_EDITABLE_CONTENT, TYPE_OUTPUT_STREAM| Constructor and Description |
|---|
DefaultInputOutputDescriptor(java.lang.String inputOutputType,
java.lang.Object inputOutput,
java.lang.String caption,
java.lang.String description)
Constructs a new DefaultInputOutputDescriptor
|
DefaultInputOutputDescriptor(java.lang.String inputOutputType,
java.lang.Object inputOutput,
java.lang.String caption,
java.lang.String description,
org.eclipse.swt.graphics.Image icon)
Constructs a new DefaultInputOutputDescriptor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this defaultInputOutputDescriptor with the incoming object to
see whether they are equal or not.
|
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
|
int |
hashCode()
Overwrites super.hashcode to provide specific hashcode implementation for
DefaultInputOutputDescriptor object.
|
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) |
java.lang.String |
toString()
Provides string representation of this DefaultInputOutputDescriptor.
|
public DefaultInputOutputDescriptor(java.lang.String inputOutputType,
java.lang.Object inputOutput,
java.lang.String caption,
java.lang.String description)
inputOutputType - as declared in IInputOutputDescriptor: TYPE_FILE_PATH,
TYPE_INPUT_STREAM, TYPE_OUTPUT_STREAM, TYPE_MEMORY_BUFFER or
custom.inputOutput - the actual object providing access to the informationcaption - the short text for the input, shown to the userdescription - the detailed description of the input, shown to the userpublic DefaultInputOutputDescriptor(java.lang.String inputOutputType,
java.lang.Object inputOutput,
java.lang.String caption,
java.lang.String description,
org.eclipse.swt.graphics.Image icon)
inputOutputType - as declared in IInputOutputDescriptor: TYPE_FILE_PATH,
TYPE_INPUT_STREAM, TYPE_OUTPUT_STREAM, TYPE_MEMORY_BUFFER or
custom.inputOutput - the actual object providing access to the informationcaption - the short text for the input, shown to the userdescription - the detailed description of the input, shown to the usericon - to be displayed in the corresponding contributor's pane. It
may be null, in which case an icon from the
ComapareConfigaration will be taken. the Icon is to be
disposed from the outside.public java.lang.String getInputOutputType()
IInputOutputDescriptorgetInputOutputType in interface IInputOutputDescriptorIInputOutputDescriptor.getInputOutputType()public java.lang.Object getInputOutput()
IInputOutputDescriptorgetInputOutput in interface IInputOutputDescriptorIInputOutputDescriptor.getInputOutput()public java.lang.String getCaption()
IInputOutputDescriptorgetCaption in interface IInputOutputDescriptorIInputOutputDescriptor.getCaption()public void setCaption(java.lang.String caption)
IInputOutputDescriptorsetCaption in interface IInputOutputDescriptorcaption - -
caption textIInputOutputDescriptor.setCaption(java.lang.String)public java.lang.String getDescription()
IInputOutputDescriptorgetDescription in interface IInputOutputDescriptorIInputOutputDescriptor.getDescription()public void setDescription(java.lang.String description)
IInputOutputDescriptorsetDescription in interface IInputOutputDescriptordescription - -
description textIInputOutputDescriptor.setDescription(java.lang.String)public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public org.eclipse.swt.graphics.Image getIcon()
IInputOutputDescriptorgetIcon in interface IInputOutputDescriptorIInputOutputDescriptor.getIcon()public void setIcon(org.eclipse.swt.graphics.Image icon)
IInputOutputDescriptorsetIcon in interface IInputOutputDescriptoricon - to be used.IInputOutputDescriptor.setIcon(org.eclipse.swt.graphics.Image)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void setInputOutput(java.lang.Object obj)
setInputOutput in interface IInputOutputDescriptor