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

public Class DiffToolConfig

extends Object
Class Inheritance
Static Imports
org.eclipse.jgit.lib.ConfigConstants.CONFIG_DIFFTOOL_SECTION, .ConfigConstants.CONFIG_DIFF_SECTION, .ConfigConstants.CONFIG_KEY_CMD, .ConfigConstants.CONFIG_KEY_GUITOOL, .ConfigConstants.CONFIG_KEY_PATH, .ConfigConstants.CONFIG_KEY_PROMPT, .ConfigConstants.CONFIG_KEY_TOOL, .ConfigConstants.CONFIG_KEY_TRUST_EXIT_CODE

Keeps track of difftool related configuration options.

Field Summary

Modifier and TypeField and Description
private final String
public static final Config.SectionParser<DiffToolConfig>
private final boolean
private final String
private final Map<String, ExternalDiffTool>
private final BooleanTriState

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the default GUI diff tool name (diff.guitool)
getDefaultGuiToolName
()

Get default GUI tool name

public String

Returns:

the default diff tool name (diff.tool)
getDefaultToolName
()

Get default tool name

public Set<String>

Returns:

the tool names
getToolNames
()

Get tool names

public Map<String, ExternalDiffTool>

Returns:

the tools map
getTools
()

Get tools map

public boolean

Returns:

the diff tool "prompt" option (difftool.prompt)
isPrompt
()

Get difftool.prompt option

public boolean

Returns:

the diff tool "trust exit code" option (difftool.trustExitCode)
isTrustExitCode
()

Get difftool.trustExitCode option

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

guiToolNameback to summary
private final String guiToolName
KEYback to summary
public static final Config.SectionParser<DiffToolConfig> KEY

Key for Config#get(SectionParser).

promptback to summary
private final boolean prompt
toolNameback to summary
private final String toolName
toolsback to summary
private final Map<String, ExternalDiffTool> tools
trustExitCodeback to summary
private final BooleanTriState trustExitCode

Constructor Detail

DiffToolConfigback to summary
private DiffToolConfig(Config rc)

Method Detail

getDefaultGuiToolNameback to summary
public String getDefaultGuiToolName()

Get default GUI tool name

Returns:String

the default GUI diff tool name (diff.guitool)

getDefaultToolNameback to summary
public String getDefaultToolName()

Get default tool name

Returns:String

the default diff tool name (diff.tool)

getToolNamesback to summary
public Set<String> getToolNames()

Get tool names

Returns:Set<String>

the tool names

getToolsback to summary
public Map<String, ExternalDiffTool> getTools()

Get tools map

Returns:Map<String, ExternalDiffTool>

the tools map

isPromptback to summary
public boolean isPrompt()

Get difftool.prompt option

Returns:boolean

the diff tool "prompt" option (difftool.prompt)

isTrustExitCodeback to summary
public boolean isTrustExitCode()

Get difftool.trustExitCode option

Returns:boolean

the diff tool "trust exit code" option (difftool.trustExitCode)