|
org.openide.text 6.21.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Line.ShowOpenType>
org.openide.text.Line.ShowOpenType
public static enum Line.ShowOpenType
ShowOpenType and ShowVisibilityType is replacement for constants SHOW_TRY_SHOW, SHOW_SHOW,
SHOW_GOTO, SHOW_TOFRONT, SHOW_REUSE, SHOW_REUSE_NEW. It is to provide full control
over show method behavior without need to add new constant for missing flag combination.
Note: Any modification of editor marked for reuse resets reuse flag. There is one global static reference
so only one or none editor can be marked for reuse.
show
,
ShowVisibilityType
Enum Constant Summary | |
---|---|
NONE
shows the line only if the editor is open |
|
OPEN
opens editor if necessary (editor was not opened) and shows the line |
|
REUSE
replaces editor marked for reuse (last editor opened using REUSE
or REUSE_NEW and opens editor if necessary, if editor is being opened (editor was not opened)
marks it for reuse, shows the line |
|
REUSE_NEW
ignores editor marked for reuse (resets reference to editor marked for reuse), opens editor if necessary, if editor is being opened (editor was not opened) marks it for reuse, shows the line |
Method Summary | |
---|---|
static Line.ShowOpenType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Line.ShowOpenType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Line.ShowOpenType NONE
public static final Line.ShowOpenType OPEN
public static final Line.ShowOpenType REUSE
REUSE
or REUSE_NEW
and opens editor if necessary, if editor is being opened (editor was not opened)
marks it for reuse, shows the line
public static final Line.ShowOpenType REUSE_NEW
Method Detail |
---|
public static Line.ShowOpenType[] values()
for (Line.ShowOpenType c : Line.ShowOpenType.values()) System.out.println(c);
public static Line.ShowOpenType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
org.openide.text 6.21.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |