public class PatchConfiguration extends Object
IFilePatch2
Constructor and Description |
---|
PatchConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addHunkFilter(IHunkFilter filter)
Adds a hunk filter.
|
int |
getFuzz()
Return the fuzz factor to be used when applying a patch.
|
IHunkFilter[] |
getHunkFilters()
Return an array of hunk filters that have been added to this
configuration.
|
int |
getPrefixSegmentStripCount()
Return the number of prefix segments to be stripped when attempting
to apply a patch.
|
Object |
getProperty(String key)
Return the property associated with the given key or
null if there is no property for the key. |
boolean |
isIgnoreWhitespace()
Return whether whitespace should be ignored.
|
boolean |
isReversed()
Return whether the patch should be reversed when applied.
|
void |
removeHunkFilter(IHunkFilter filter)
Removes a hunk filter.
|
void |
setFuzz(int fuzz)
Set the fuzz factor to be used when applying a patch.
|
void |
setIgnoreWhitespace(boolean ignoreWhitespace)
Set whether whitespace should be ignored
|
void |
setPrefixSegmentStripCount(int stripCount)
Set the number of prefix segments to be stripped when attempting
to apply a patch.
|
void |
setProperty(String key,
Object value)
Set the property associated with the given key
|
void |
setReversed(boolean reversed)
Set whether the patch should be reversed when applied.
|
public boolean isReversed()
public void setReversed(boolean reversed)
reversed
- whether the patch should be reversed when appliedpublic int getPrefixSegmentStripCount()
public void setPrefixSegmentStripCount(int stripCount)
stripCount
- the number of prefix segments to be stripped when attempting
to apply a patch.public int getFuzz()
public void setFuzz(int fuzz)
fuzz
- the fuzz factor to be used when applying a patch.public boolean isIgnoreWhitespace()
public void setIgnoreWhitespace(boolean ignoreWhitespace)
ignoreWhitespace
- whether whitespace should be ignoredpublic Object getProperty(String key)
null
if there is no property for the key.key
- the keynull
public void setProperty(String key, Object value)
key
- the keyvalue
- the value to be associated with the keypublic void addHunkFilter(IHunkFilter filter)
filter
- the filterpublic void removeHunkFilter(IHunkFilter filter)
filter
- the filterpublic IHunkFilter[] getHunkFilters()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.