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

public Class PreDefinedDiffTool

extends UserDefinedDiffTool
Class Inheritance

The pre-defined diff tool.

Constructor Summary

AccessConstructor and Description
public
PreDefinedDiffTool(String
the name
name
,
String
the path
path
,
String
the tool parameters as one string that is used together with path as command
parameters
)

Create a pre-defined diff tool

public
PreDefinedDiffTool(CommandLineDiffTool
the command line diff tool
tool
)

Creates the pre-defined diff tool

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the concatenated path and command of the pre-defined diff tool
getCommand
()

Overrides org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool.getCommand.

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

The command of the diff tool.

public void
setPath(String
path string
path
)

Overrides org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool.setPath.

Overrides the path for the given tool.

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

Constructor Detail

PreDefinedDiffToolback to summary
public PreDefinedDiffTool(String name, String path, String parameters)

Create a pre-defined diff tool

Parameters
name:String

the name

path:String

the path

parameters:String

the tool parameters as one string that is used together with path as command

PreDefinedDiffToolback to summary
public PreDefinedDiffTool(CommandLineDiffTool tool)

Creates the pre-defined diff tool

Parameters
tool:CommandLineDiffTool

the command line diff tool

Method Detail

getCommandback to summary
public String getCommand()

Overrides org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool.getCommand.

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

Doc from org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool.getCommand.

The command of the diff tool.

A pre-defined external diff tool can be overridden using the tools name in a configuration file. The overwritten tool is then a user defined tool and the command of the diff tool is specified with difftool.<tool>.cmd. This command must work without prepending the value of getPath() and can sometimes include tool parameters.

Returns:String

the concatenated path and command of the pre-defined diff tool

Annotations
@Override
setPathback to summary
public void setPath(String path)

Overrides org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool.setPath.

Doc from org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool.setPath.

Overrides the path for the given tool. Equivalent to setting difftool.<tool>.path.

Parameters
path:String

path string

Annotations
@Override