public enum SyntaxPreset extends java.lang.Enum<SyntaxPreset>
| Enum Constant and Description |
|---|
base |
css |
darkTheme |
eclipseTheme |
editable |
hideMenu |
historyLimit |
html |
ideaTheme |
java |
js |
margin |
none |
opaque |
php |
size |
sql |
transparent |
viewable |
vsTheme |
xml |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
apply(WebSyntaxArea syntaxArea)
Applies syntax preset to the specified WebSyntaxArea.
|
static SyntaxPreset |
getSyntaxPreset(java.io.File file)
Returns syntax preset for the specified file.
|
static SyntaxPreset |
getSyntaxPreset(java.lang.String file)
Returns syntax preset for the specified file name.
|
PresetType |
getType()
Returns SyntaxPreset type.
|
static SyntaxPreset |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SyntaxPreset[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyntaxPreset base
public static final SyntaxPreset size
public static final SyntaxPreset margin
public static final SyntaxPreset historyLimit
public static final SyntaxPreset viewable
public static final SyntaxPreset editable
public static final SyntaxPreset hideMenu
public static final SyntaxPreset transparent
public static final SyntaxPreset opaque
public static final SyntaxPreset java
public static final SyntaxPreset xml
public static final SyntaxPreset html
public static final SyntaxPreset css
public static final SyntaxPreset js
public static final SyntaxPreset php
public static final SyntaxPreset sql
public static final SyntaxPreset none
public static final SyntaxPreset ideaTheme
public static final SyntaxPreset darkTheme
public static final SyntaxPreset vsTheme
public static final SyntaxPreset eclipseTheme
public static SyntaxPreset[] values()
for (SyntaxPreset c : SyntaxPreset.values()) System.out.println(c);
public static SyntaxPreset valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic PresetType getType()
public abstract void apply(WebSyntaxArea syntaxArea)
syntaxArea - WebSyntaxAreapublic static SyntaxPreset getSyntaxPreset(java.io.File file)
file - filepublic static SyntaxPreset getSyntaxPreset(java.lang.String file)
file - file name