|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.sp.jedit.Abbrevs
Abbreviation manager.
Field Summary | |
static String |
ENCODING
|
Method Summary | |
static void |
addGlobalAbbrev(String abbrev,
String expansion)
Adds an abbreviation to the global abbreviation list. |
static void |
addModeAbbrev(String mode,
String abbrev,
String expansion)
Adds a mode-specific abbrev. |
static boolean |
expandAbbrev(View view,
boolean add)
Expands the abbrev at the caret position in the specified view. |
static boolean |
getExpandOnInput()
Returns if abbreviations should be expanded after the user finishes typing a word. |
static Hashtable |
getGlobalAbbrevs()
Returns the global abbreviation set. |
static Hashtable |
getModeAbbrevs()
Returns the mode-specific abbreviation set. |
static void |
setExpandOnInput(boolean expandOnInput)
Sets if abbreviations should be expanded after the user finishes typing a word. |
static void |
setGlobalAbbrevs(Hashtable globalAbbrevs)
Sets the global abbreviation set. |
static void |
setModeAbbrevs(Hashtable modes)
Sets the mode-specific abbreviation set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ENCODING
Method Detail |
public static boolean getExpandOnInput()
public static void setExpandOnInput(boolean expandOnInput)
expandOnInput
- If true, typing a non-alphanumeric character
will automatically attempt to expand the current abbrevpublic static boolean expandAbbrev(View view, boolean add)
view
- The viewadd
- If true and abbrev not found, will ask user if
it should be addedpublic static Hashtable getGlobalAbbrevs()
public static void setGlobalAbbrevs(Hashtable globalAbbrevs)
globalAbbrevs
- The new global abbrev setpublic static Hashtable getModeAbbrevs()
public static void setModeAbbrevs(Hashtable modes)
modes
- The new mode abbrev setpublic static void addGlobalAbbrev(String abbrev, String expansion)
abbrev
- The abbreviationexpansion
- The expansionpublic static void addModeAbbrev(String mode, String abbrev, String expansion)
mode
- The edit modeabbrev
- The abbrevexpansion
- The expansion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |