|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gjt.sp.jedit.Abbrevs
Abbreviation manager.
Field Summary | |
static java.lang.String |
ENCODING
|
Method Summary | |
static void |
addGlobalAbbrev(java.lang.String abbrev,
java.lang.String expansion)
Adds an abbreviation to the global abbreviation list. |
static void |
addModeAbbrev(java.lang.String mode,
java.lang.String abbrev,
java.lang.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 java.util.Hashtable |
getGlobalAbbrevs()
Returns the global abbreviation set. |
static java.util.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(java.util.Hashtable globalAbbrevs)
Sets the global abbreviation set. |
static void |
setModeAbbrevs(java.util.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 java.lang.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 java.util.Hashtable getGlobalAbbrevs()
public static void setGlobalAbbrevs(java.util.Hashtable globalAbbrevs)
globalAbbrevs
- The new global abbrev setpublic static java.util.Hashtable getModeAbbrevs()
public static void setModeAbbrevs(java.util.Hashtable modes)
modes
- The new mode abbrev setpublic static void addGlobalAbbrev(java.lang.String abbrev, java.lang.String expansion)
abbrev
- The abbreviationexpansion
- The expansionpublic static void addModeAbbrev(java.lang.String mode, java.lang.String abbrev, java.lang.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 |