|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--upidiff.prefs.UserPreferences
This class represents the user preferences.
| Field Summary | |
private Preferences |
backend
Preferences backend. |
private static int |
DEFAULT_DELETED_CHAR_COLOR
Default color for deleted characters (green) |
private static int |
DEFAULT_DELETED_LINE_COLOR
Default color for deleted lines (yellow). |
private static int |
DEFAULT_INSERTED_CHAR_COLOR
Default color for inserted characters (red) |
private static int |
DEFAULT_INSERTED_LINE_COLOR
Default color for inserted lines (blue). |
private static int |
DEFAULT_MERGED_COLOR
Default color for merged changes (light gray) |
private static int |
DEFAULT_UPDATED_LINES_COLOR
Default color for updated lines (light blue) |
private static UserPreferences |
instance
The global user preferences instance. |
| Constructor Summary | |
private |
UserPreferences()
Creates a new instance of the UserPreferences class. |
| Method Summary | |
String |
getCurrentDirectory()
Queries the current directory. |
Color |
getDeletedCharColor()
Queries the color for deleted characters. |
Color |
getDeletedLineColor()
Queries the color for deleted lines. |
Color |
getInsertedCharColor()
Queries the color for inserted characters. |
Color |
getInsertedLineColor()
Queries the color for inserted lines. |
static UserPreferences |
getInstance()
Returns the global user preferences instance. |
String |
getLanguage()
Queries the currently selected language. |
Color |
getMergedColor()
Queries the color for merged changes. |
boolean |
getShowHiddenFiles()
Queries whether to show hidden files in the "Open files" dialog. |
Color |
getUpdatedLinesColor()
Queries the color for updated lines. |
boolean |
isInputFilterEmptyLines()
Queries the setting for the "Empty lines input filter". |
boolean |
isInputFilterIgnoreCase()
Queries the setting for the "Ignore case filter". |
boolean |
isInputFilterIgnoreTabs()
Queries the setting for the "Ignore tabs filter". |
boolean |
isInputFilterIgnoreWhitespace()
Queries the setting for the "Ignore whitespace filter". |
boolean |
isInputFilterJavaComment()
Queries the setting for the "Java comment filter". |
void |
setCurrentDirectory(String path)
Sets the current open directory. |
void |
setDeletedCharColor(Color color)
Sets the color for deleted characters. |
void |
setDeletedLineColor(Color color)
Sets the color for deleted lines. |
void |
setInputFilterEmptyLines(boolean setting)
Sets the setting for the "Empty lines input filter". |
void |
setInputFilterIgnoreCase(boolean setting)
Sets the setting for the "Ignore tabs filter" |
void |
setInputFilterIgnoreTabs(boolean setting)
Sets the setting for the "Ingore tabs filter". |
void |
setInputFilterIgnoreWhitespace(boolean setting)
Sets the setting for the "Ignore whitespace filter". |
void |
setInputFilterJavaComment(boolean setting)
Sets the setting for the "Java comment filter". |
void |
setInsertedCharColor(Color color)
Sets the color for inserted characters. |
void |
setInsertedLineColor(Color color)
Sets the color for inserted lines. |
void |
setLanguage(String lang)
Sets the curerntly selected language. |
void |
setMergedColor(Color color)
Sets the color for merged changes. |
void |
setShowHiddenFiles(boolean shown)
Sets whether to show hidden files in the "Open files" dialog. |
void |
setUpdatedLinesColor(Color color)
Sets the color for updated lines. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final int DEFAULT_DELETED_LINE_COLOR
private static final int DEFAULT_INSERTED_LINE_COLOR
private static final int DEFAULT_DELETED_CHAR_COLOR
private static final int DEFAULT_INSERTED_CHAR_COLOR
private static final int DEFAULT_UPDATED_LINES_COLOR
private static final int DEFAULT_MERGED_COLOR
private static UserPreferences instance
private Preferences backend
| Constructor Detail |
private UserPreferences()
| Method Detail |
public static final UserPreferences getInstance()
public final String getCurrentDirectory()
public final void setCurrentDirectory(String path)
path - Path to the current directory.public final boolean getShowHiddenFiles()
public final void setShowHiddenFiles(boolean shown)
shown - Whether to show hidden files.public final Color getDeletedLineColor()
public final void setDeletedLineColor(Color color)
color - The new color for deleted lines.public final Color getInsertedLineColor()
public final void setInsertedLineColor(Color color)
color - The new color for inserted lines.public final Color getDeletedCharColor()
public final void setDeletedCharColor(Color color)
color - The new color for deleted characters.public final Color getInsertedCharColor()
public final void setInsertedCharColor(Color color)
color - The new color for inserted characters.public final Color getUpdatedLinesColor()
public final void setUpdatedLinesColor(Color color)
color - The new color for updated lines.public final Color getMergedColor()
public final void setMergedColor(Color color)
color - The new color for merged changes.public final boolean isInputFilterEmptyLines()
public final void setInputFilterEmptyLines(boolean setting)
setting - New setting.public final boolean isInputFilterIgnoreCase()
public final void setInputFilterIgnoreCase(boolean setting)
setting - New setting.public final boolean isInputFilterIgnoreTabs()
public final void setInputFilterIgnoreTabs(boolean setting)
setting - New setting.public final boolean isInputFilterIgnoreWhitespace()
public final void setInputFilterIgnoreWhitespace(boolean setting)
setting - New setting.public final boolean isInputFilterJavaComment()
public final void setInputFilterJavaComment(boolean setting)
setting - New setting.public final String getLanguage()
public final void setLanguage(String lang)
lang - New language name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||