|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.model.Node
oracle.ide.model.DataContainer
oracle.ide.model.HashStructureNode
oracle.ide.model.Workspace
public final class Workspace
Workspace represents an Application.
Field Summary | |
---|---|
static java.lang.String |
CREATED_BY_TEMPLATE_ID_PROPERTY |
static java.lang.String |
DATA_KEY The data key by which a Workspace instance can be located within a TraversableContext . |
static java.lang.String |
EXT Constant recording the file extension for a workpace. |
Fields inherited from class oracle.ide.model.Node |
---|
LOG_READONLY |
Constructor Summary | |
---|---|
Workspace() |
Method Summary | |
---|---|
boolean |
canAdd(Element element) Folder interface method. |
protected void |
closeImpl() Subclasses should override this method to customize the close() behavior. |
java.lang.Object |
copyTo(java.lang.Object object) |
Project |
currentActiveProject() Returns the currently active Project associated with this Workspace . |
Project |
getActiveProject() |
java.net.URL |
getActiveProjectURL() Returns the currently active project URL associated with this Workspace . |
javax.swing.Icon |
getIcon() Displayable interface method. |
protected java.lang.String |
getNamespaceURI() |
protected java.lang.String |
getRootQName() |
boolean |
isDefault() For HashStructureNode subtypes that keep default state in a separate Node instance, this method should return true if this Node is the default instance. |
protected HashStructureIO |
newHashStructureIO() |
java.util.Collection<Project> |
projects() Returns a collection of Project instances which are children of this Workspace. |
boolean |
remove(Element doc, boolean notifyObservers) |
protected void |
saveImpl() Subclasses should override this method to customize the save() behavior. |
void |
setActiveProject(Project activeProject) Set the active project. |
void |
setActiveProjectURL(java.net.URL activeProjectURL) Set the active project url. |
Methods inherited from class oracle.ide.model.HashStructureNode |
---|
applyBatchChanges, copyToImpl, equals, equalsImpl, getObjectStoreTarget, getProperties, getPropertiesForOverriding, getUserPropertiesOnly, isUserPropertiesEnabled, newObjectStore, openImpl, saveUserProperties, setURL |
Methods inherited from class oracle.ide.model.DataContainer |
---|
add, add, add, canRemove, containsChild, equalsImpl, getBaseDirectory, getChildren, getListOfChildren, getProperty, getProperty, getSharedPropertiesOnly, getURL, mayHaveChildren, remove, removeAll, removeAll, resetSubDirtyableOwners, setListOfChildren, setProperty, setSubDirtyableOwner, size, update |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.ide.model.Element |
---|
getAttributes, getData |
Methods inherited from interface oracle.ide.model.Displayable |
---|
getLongLabel, getShortLabel, getToolTipText, toString |
Field Detail |
---|
public static final java.lang.String DATA_KEY
Workspace
instance can be located within a TraversableContext
. It is also the key for the PropertiesDialog
.
public static final java.lang.String EXT
public static final java.lang.String CREATED_BY_TEMPLATE_ID_PROPERTY
Constructor Detail |
---|
public Workspace()
Method Detail |
---|
public javax.swing.Icon getIcon()
Node
Displayable
interface method. The Node class returns a generic icon.getIcon
in interface Displayable
getIcon
in class Node
Icon
to be displayed for the Displayable
.public boolean canAdd(Element element)
Folder
interface method. Returns true
if the specified Element
is an instance of Project
; returns false
otherwise.canAdd
in interface Folder
canAdd
in class DataContainer
element
- the Element
that is about to be added to this Folder
.true
if and only if the specified Element
is not null
.DefaultFolder.canAdd(Element)
, Folder.canAdd(Element)
public boolean remove(Element doc, boolean notifyObservers)
remove
in class DataContainer
protected final HashStructureIO newHashStructureIO()
newHashStructureIO
in class HashStructureNode
protected final java.lang.String getNamespaceURI()
getNamespaceURI
in class HashStructureNode
protected final java.lang.String getRootQName()
getRootQName
in class HashStructureNode
protected void closeImpl() throws java.io.IOException
Node
Node.close()
invokes this only if the node is open, under write lock. The Node
implementation does nothing.closeImpl
in class HashStructureNode
java.io.IOException
- if an I/O error occurred while closingprotected void saveImpl() throws java.io.IOException
Node
Node.save()
invokes this only if the node is dirty, under write lock. The Node
implementation does nothing.saveImpl
in class HashStructureNode
java.io.IOException
- if an I/O error occurred while savingpublic final java.lang.Object copyTo(java.lang.Object object)
copyTo
in class HashStructureNode
public boolean isDefault()
HashStructureNode
true
if this Node is the default instance.isDefault
in class HashStructureNode
public java.net.URL getActiveProjectURL() throws TransientMarker
URL
associated with this Workspace
. If there is no currently active project, null is returned.TransientMarker
public void setActiveProjectURL(java.net.URL activeProjectURL)
public Project currentActiveProject()
Project
associated with this Workspace
. If there is no currently active Project
, null is returned. This method is called currentActiveProject
instead of getActiveProject
in order to avoid having the "_activeProject" property get picked up by the Introspector
.public void setActiveProject(Project activeProject)
public Project getActiveProject()
@NotNull
public java.util.Collection<Project> projects()
Project
instances which are children of this Workspace.
This method is equivalent to calling DataContainer.getChildren()
and building a collection of the children which are an instance of Project
.
Project
s. Never returns null.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |