|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.compare.patch.PatchConfiguration
public class PatchConfiguration
A patch configuration allows clients to set parameters that control how a patch is applied.
IFilePatch2| Constructor Summary | |
|---|---|
PatchConfiguration()
|
|
| Method Summary | |
|---|---|
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. |
java.lang.Object |
getProperty(java.lang.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(java.lang.String key,
java.lang.Object value)
Set the property associated with the given key |
void |
setReversed(boolean reversed)
Set whether the patch should be reversed when applied. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatchConfiguration()
| Method Detail |
|---|
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 java.lang.Object getProperty(java.lang.String key)
null if there is no property for the key.
key - the key
null
public void setProperty(java.lang.String key,
java.lang.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()
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.