Top Description Fields Constructors Methods
org.eclipse.jgit.internal.diffmergetool

public Class UserDefinedMergeTool

extends UserDefinedDiffTool
implements ExternalMergeTool
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.internal.diffmergetool.ExternalMergeTool, org.eclipse.jgit.internal.diffmergetool.ExternalDiffTool
Known Direct Subclasses
org.eclipse.jgit.internal.diffmergetool.PreDefinedMergeTool
Imports
org.eclipse.jgit.lib.internal.BooleanTriState

The user-defined merge tool.

Field Summary

Modifier and TypeField and Description
private BooleanTriState
trustExitCode

the merge tool "trust exit code" option

Constructor Summary

AccessConstructor and Description
public
UserDefinedMergeTool(String
the name
name
,
String
the path
path
,
String
the command
cmd
,
BooleanTriState
the "trust exit code" option
trustExitCode
)

Creates the merge tool

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the tool command
getCommand
(boolean
not used, because user-defined merge tool can only define one cmd -> it must handle with and without base present (empty)
withBase
)

Implements org.eclipse.jgit.internal.diffmergetool.ExternalMergeTool.getCommand.

Get command

public BooleanTriState

Returns:

the "trust exit code" flag
getTrustExitCode
()

Implements org.eclipse.jgit.internal.diffmergetool.ExternalMergeTool.getTrustExitCode.

Get the tool "trust exit code" option

protected void
setTrustExitCode(BooleanTriState
the new "trust exit code" flag
trustExitCode
)

Set "trust exit code" flag

Inherited from org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool:
getCommandgetNamegetPathisAvailablesetAvailablesetPath

Field Detail

trustExitCodeback to summary
private BooleanTriState trustExitCode

the merge tool "trust exit code" option

Constructor Detail

UserDefinedMergeToolback to summary
public UserDefinedMergeTool(String name, String path, String cmd, BooleanTriState trustExitCode)

Creates the merge tool

Parameters
name:String

the name

path:String

the path

cmd:String

the command

trustExitCode:BooleanTriState

the "trust exit code" option

Method Detail

getCommandback to summary
public String getCommand(boolean withBase)

Implements org.eclipse.jgit.internal.diffmergetool.ExternalMergeTool.getCommand.

Get command

Parameters
withBase:boolean

not used, because user-defined merge tool can only define one cmd -> it must handle with and without base present (empty)

Returns:String

the tool command

Annotations
@Override
getTrustExitCodeback to summary
public BooleanTriState getTrustExitCode()

Implements org.eclipse.jgit.internal.diffmergetool.ExternalMergeTool.getTrustExitCode.

Doc from org.eclipse.jgit.internal.diffmergetool.ExternalMergeTool.getTrustExitCode.

Get the tool "trust exit code" option

Returns:BooleanTriState

the "trust exit code" flag

Annotations
@Override
setTrustExitCodeback to summary
protected void setTrustExitCode(BooleanTriState trustExitCode)

Set "trust exit code" flag

Parameters
trustExitCode:BooleanTriState

the new "trust exit code" flag