public abstract class RTFileCommandImpl extends Object implements RTFileCommand
RTFileCommand.MergeCompletionCallback, RTFileCommand.Mode
Constructor and Description |
---|
RTFileCommandImpl() |
Modifier and Type | Method and Description |
---|---|
static com.ibm.xtools.comparemerge.core.utils.IInputOutputDescriptor |
createDescriptor(Object obj,
String lbl,
String descr) |
static String |
getFileExtension(File file) |
RTFileCommand |
setAncestor(File file)
Set ancestor version.
|
RTFileCommand |
setAncestor(org.eclipse.compare.IStreamContentAccessor stream)
Set ancestor version via
IStreamContentAccessor |
RTFileCommand |
setCompletionCallback(RTFileCommand.MergeCompletionCallback callback)
Set callback which will be notified when compare/merge operation is completed
|
RTFileCommand |
setDescriptions(String ancestor,
String left,
String right)
Set detailed descriptions for ancestor/left/right versions
|
RTFileCommand |
setFileExtension(String ext)
Set common file extension.
|
RTFileCommand |
setLabels(String ancestor,
String left,
String right)
Set labels for ancestor/left/right versions
|
RTFileCommand |
setLeft(File file)
Set left version
|
RTFileCommand |
setLeft(org.eclipse.compare.IStreamContentAccessor stream)
Set left version via
IStreamContentAccessor |
RTFileCommand |
setMode(RTFileCommand.Mode mode)
Set mode for compare/merge command
|
RTFileCommand |
setRight(File file)
Set right version
|
RTFileCommand |
setRight(org.eclipse.compare.IStreamContentAccessor stream)
Set right version via
IStreamContentAccessor |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setOutput, setOutput
call
public RTFileCommand setCompletionCallback(RTFileCommand.MergeCompletionCallback callback)
RTFileCommand
setCompletionCallback
in interface RTFileCommand
callback
- - RTFileCommand.MergeCompletionCallback
public RTFileCommand setMode(RTFileCommand.Mode mode)
RTFileCommand
setMode
in interface RTFileCommand
mode
- RTFileCommand.Mode
public RTFileCommand setFileExtension(String ext)
RTFileCommand
setFileExtension
in interface RTFileCommand
ext
- - file extension (without '.')public RTFileCommand setAncestor(File file)
RTFileCommand
setAncestor
in interface RTFileCommand
file
- - File
public RTFileCommand setAncestor(org.eclipse.compare.IStreamContentAccessor stream)
RTFileCommand
IStreamContentAccessor
setAncestor
in interface RTFileCommand
stream
- - IStreamContentAccessor
public RTFileCommand setLeft(File file)
RTFileCommand
setLeft
in interface RTFileCommand
file
- - File
public RTFileCommand setLeft(org.eclipse.compare.IStreamContentAccessor stream)
RTFileCommand
IStreamContentAccessor
setLeft
in interface RTFileCommand
stream
- - IStreamContentAccessor
public RTFileCommand setRight(File file)
RTFileCommand
setRight
in interface RTFileCommand
file
- - File
public RTFileCommand setRight(org.eclipse.compare.IStreamContentAccessor stream)
RTFileCommand
IStreamContentAccessor
setRight
in interface RTFileCommand
stream
- - IStreamContentAccessor
public RTFileCommand setLabels(String ancestor, String left, String right)
RTFileCommand
setLabels
in interface RTFileCommand
ancestor
- - label for ancestorleft
- - label for left versionright
- - label for right versionpublic RTFileCommand setDescriptions(String ancestor, String left, String right)
RTFileCommand
setDescriptions
in interface RTFileCommand
ancestor
- - description for ancestorleft
- - description for left versionright
- - description for right versionpublic static com.ibm.xtools.comparemerge.core.utils.IInputOutputDescriptor createDescriptor(Object obj, String lbl, String descr)