oracle.ide.model
Class ElementAttributes
java.lang.Object
|
+--oracle.ide.model.DefaultAttributes
|
+--oracle.ide.model.ElementAttributes
- All Implemented Interfaces:
- Attributes
- public class ElementAttributes
- extends DefaultAttributes
Extends Attributes
to focus on the notion of Element
attributes.
Field Summary |
static int |
ACTIVE
ACTIVE is a mutable attribute that
indicates that the Element is currently active. |
static int |
BUILDABLE
BUILDABLE is an immutable attribute that
controls the Make and Rebuild menu items. |
static int |
CLOSEABLE
CLOSEABLE is an immutable attribute that
controls the File | Close menu item. |
static int |
DELETEABLE
DELETEABLE is an immutable attribute that
controls the Edit | Delete, File | Remove from [Container], and
File | Erase from Disk menu items. |
static int |
DEPLOYABLE
DEPLOYABLE indicates that the Element is
eligible to be deployed. |
static int |
DIRTY
DIRTY is a mutable attribute that
indicates that the Element is currently dirty. |
static int |
EDITOR_SAVEABLE_AS
EDITOR_SAVEABLE_AS controls the File | Save As menu
item when an editor is the active view. |
static int |
ERASEABLE
ERASEABLE is an immutable attribute that
controls the File | Erase from Disk menu item. |
static int |
NAVIGABLE
NAVIGABLE controls the File | New -> Navigator menu item |
static int |
NON_EDITABLE
EDITABLE indicates that the Element should
not be editable by editors directly, such as the code editor. |
static int |
NON_RELOADABLE
NON_RELOADABLE controls if the node is not subject to the
automatic reloading when the IDE regains focus. |
static int |
OPEN_AS_TEXT
OPEN_AS_TEXT indicates that the Element is a
node that when opened by the user using the URLChooser
dialog it should be encapsulated by a TextNode . |
static int |
PRINTABLE
PRINTABLE is an immutable attribute that
controls the File | Print menu item. |
static int |
REMOVEABLE
REMOVEABLE is an immutable attribute that
controls the File | Remove from [Container] menu item. |
static int |
RENAMEABLE
RENAMEABLE is an immutable attribute that
controls the File | Save As, and File | Rename menu items. |
static int |
SAVEABLE
SAVEABLE is an immutable attribute that
controls the File | Save, File | Save As, and File | Rename
menu items. |
static int |
SAVEABLE_AS
SAVEABLE_AS controls the File | Save As menu item. |
Methods inherited from class oracle.ide.model.DefaultAttributes |
clear, decAttr, equals, equalsImpl, incAttr, isSet, maxAttr, minAttr, noneAttr, set, unset |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERASEABLE
public static final int ERASEABLE
ERASEABLE
is an immutable attribute that
controls the File | Erase from Disk menu item. Generally, this
attribute should be set when a node can only be removed from
a project when it is also removed from the file system. When
setting this attribute, the DELETEABLE attribute should be unset.
REMOVEABLE
public static final int REMOVEABLE
REMOVEABLE
is an immutable attribute that
controls the File | Remove from [Container] menu item. Generally, this
attribute should be set when a node can only be removed from
a project and not from the file system. When setting this attribute,
the DELETEABLE attribute should be unset.
DELETEABLE
public static final int DELETEABLE
DELETEABLE
is an immutable attribute that
controls the Edit | Delete, File | Remove from [Container], and
File | Erase from Disk menu items. Persistent elements that implement
the Document
interface and have the DELETEABLE attribute
set indicate that the File | Remove from [Container] and
File | Erase from Disk menu itmes should be enabled. Transient
elements having the DELETEABLE attribute set indicate that the
Edit | Delete menu item should be enabled.
BUILDABLE
public static final int BUILDABLE
BUILDABLE
is an immutable attribute that
controls the Make and Rebuild menu items.
PRINTABLE
public static final int PRINTABLE
PRINTABLE
is an immutable attribute that
controls the File | Print menu item.
SAVEABLE
public static final int SAVEABLE
SAVEABLE
is an immutable attribute that
controls the File | Save, File | Save As, and File | Rename
menu items.
RENAMEABLE
public static final int RENAMEABLE
RENAMEABLE
is an immutable attribute that
controls the File | Save As, and File | Rename menu items.
CLOSEABLE
public static final int CLOSEABLE
CLOSEABLE
is an immutable attribute that
controls the File | Close menu item.
EDITOR_SAVEABLE_AS
public static final int EDITOR_SAVEABLE_AS
EDITOR_SAVEABLE_AS
controls the File | Save As menu
item when an editor is the active view.
SAVEABLE_AS
public static final int SAVEABLE_AS
SAVEABLE_AS
controls the File | Save As menu item.
NAVIGABLE
public static final int NAVIGABLE
NAVIGABLE
controls the File | New -> Navigator menu item
NON_RELOADABLE
public static final int NON_RELOADABLE
NON_RELOADABLE
controls if the node is not subject to the
automatic reloading when the IDE regains focus.
DEPLOYABLE
public static final int DEPLOYABLE
DEPLOYABLE
indicates that the Element
is
eligible to be deployed. By default, elements are not considered
deployable.
NON_EDITABLE
public static final int NON_EDITABLE
EDITABLE
indicates that the Element
should
not be editable by editors directly, such as the code editor.
This can be used by nodes or elements whose content should be
protected from direct user editing. By default, elements are
considered to be editable.
OPEN_AS_TEXT
public static final int OPEN_AS_TEXT
OPEN_AS_TEXT
indicates that the Element
is a
node that when opened by the user using the URLChooser
dialog it should be encapsulated by a TextNode
.
ACTIVE
public static final int ACTIVE
ACTIVE
is a mutable attribute that
indicates that the Element
is currently active.
DIRTY
public static final int DIRTY
DIRTY
is a mutable attribute that
indicates that the Element
is currently dirty.
ElementAttributes
public ElementAttributes()
ElementAttributes
public ElementAttributes(int attribute)
ElementAttributes
public ElementAttributes(DefaultAttributes attributes)
duplicate
public Attributes duplicate()
- Return an exact duplicate of me.
nextImmutableAttribute
public static final int nextImmutableAttribute()
- Returns the next available immutable attribute.
nextMutableAttribute
public static final int nextMutableAttribute()
- Returns the next available mutable attribute.