|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.compare.patch.PatchConfiguration
A patch configuration allows clients to set parameters that control how a patch is applied.
This class may be instantiated by clients but is not intended to be subclassed.
IFilePatch| Constructor Summary | |
|---|---|
PatchConfiguration()
|
|
| Method Summary | |
|---|---|
int |
getFuzz()
Return the fuzz factor to be used when applying a patch. |
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 |
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. |
| 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 Object getProperty(String key)
null if there is no property for the key.
key - the key
null
public void setProperty(String key,
Object value)
key - the keyvalue - the value to be associated with the key
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.