|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.jedit.syntax.ModeProvider
public class ModeProvider
This class works like a singleton, the instance is initialized by jEdit.
| Field Summary | |
|---|---|
static ModeProvider |
instance
|
| Constructor Summary | |
|---|---|
ModeProvider()
|
|
| Method Summary | |
|---|---|
void |
addMode(Mode mode)
Do not call this method. |
protected void |
error(java.lang.String file,
java.lang.Throwable e)
|
Mode |
getMode(java.lang.String name)
Returns the edit mode with the specified name. |
Mode |
getModeForFile(java.lang.String filename,
java.lang.String firstLine)
Get the appropriate mode that must be used for the file |
Mode[] |
getModes()
Returns an array of installed edit modes. |
void |
loadMode(Mode mode)
|
void |
loadMode(Mode mode,
XModeHandler xmh)
|
void |
removeAll()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static ModeProvider instance
| Constructor Detail |
|---|
public ModeProvider()
| Method Detail |
|---|
public void removeAll()
public Mode getMode(java.lang.String name)
name - The edit mode
public Mode getModeForFile(java.lang.String filename,
java.lang.String firstLine)
filename - the filenamefirstLine - the first line of the file
public Mode[] getModes()
public void addMode(Mode mode)
mode - The edit mode
public void loadMode(Mode mode,
XModeHandler xmh)
public void loadMode(Mode mode)
protected void error(java.lang.String file,
java.lang.Throwable e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||