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

public Class MergeToolConfig

extends Object
Class Inheritance
Static Imports
org.eclipse.jgit.lib.ConfigConstants.CONFIG_KEY_CMD, .ConfigConstants.CONFIG_KEY_GUITOOL, .ConfigConstants.CONFIG_KEY_KEEP_BACKUP, .ConfigConstants.CONFIG_KEY_KEEP_TEMPORARIES, .ConfigConstants.CONFIG_KEY_PATH, .ConfigConstants.CONFIG_KEY_PROMPT, .ConfigConstants.CONFIG_KEY_TOOL, .ConfigConstants.CONFIG_KEY_TRUST_EXIT_CODE, .ConfigConstants.CONFIG_KEY_WRITE_TO_TEMP, .ConfigConstants.CONFIG_MERGETOOL_SECTION, .ConfigConstants.CONFIG_MERGE_SECTION

Keeps track of merge tool related configuration options.

Field Summary

Modifier and TypeField and Description
private final String
private final boolean
private final boolean
public static final Config.SectionParser<MergeToolConfig>
private final boolean
private final String
private final Map<String, ExternalMergeTool>
private final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

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

Get default GUI tool name

public String

Returns:

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

Get default tool name

public Set<String>

Returns:

the tool names
getToolNames
()

Get tool names

public Map<String, ExternalMergeTool>

Returns:

the tools map
getTools
()

Get the tools map

public boolean

Returns:

the tool "keep backup" option
isKeepBackup
()

Get tool "keep backup" option

public boolean

Returns:

the tool "keepTemporaries" option
isKeepTemporaries
()

Get tool "keep temporaries" option

public boolean

Returns:

the merge tool "prompt" option (mergetool.prompt)
isPrompt
()

Get mergetool.prompt option

public boolean

Returns:

the tool "write to temp" option
isWriteToTemp
()

Get the tool "write to temp" option

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

guiToolNameback to summary
private final String guiToolName
keepBackupback to summary
private final boolean keepBackup
keepTemporariesback to summary
private final boolean keepTemporaries
KEYback to summary
public static final Config.SectionParser<MergeToolConfig> 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, ExternalMergeTool> tools
writeToTempback to summary
private final boolean writeToTemp

Constructor Detail

MergeToolConfigback to summary
private MergeToolConfig(Config rc)

Method Detail

getDefaultGuiToolNameback to summary
public String getDefaultGuiToolName()

Get default GUI tool name

Returns:String

the default GUI merge tool name (merge.guitool)

getDefaultToolNameback to summary
public String getDefaultToolName()

Get default tool name

Returns:String

the default merge tool name (merge.tool)

getToolNamesback to summary
public Set<String> getToolNames()

Get tool names

Returns:Set<String>

the tool names

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

Get the tools map

Returns:Map<String, ExternalMergeTool>

the tools map

isKeepBackupback to summary
public boolean isKeepBackup()

Get tool "keep backup" option

Returns:boolean

the tool "keep backup" option

isKeepTemporariesback to summary
public boolean isKeepTemporaries()

Get tool "keep temporaries" option

Returns:boolean

the tool "keepTemporaries" option

isPromptback to summary
public boolean isPrompt()

Get mergetool.prompt option

Returns:boolean

the merge tool "prompt" option (mergetool.prompt)

isWriteToTempback to summary
public boolean isWriteToTemp()

Get the tool "write to temp" option

Returns:boolean

the tool "write to temp" option