| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.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_KEYThe data key by which a Workspaceinstance can be located
  within aTraversableContext. | 
| static java.lang.String | EXTConstant 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)Folderinterface 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 Projectassociated with
  thisWorkspace. | 
|  Project | getActiveProject() | 
|  java.net.URL | getActiveProjectURL()Returns the currently active project URLassociated with
  thisWorkspace. | 
|  javax.swing.Icon | getIcon()Displayableinterface 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 trueif this Node is
  the default instance. | 
| protected  HashStructureIO | newHashStructureIO() | 
|  java.util.Collection<Project> | projects()Returns a collection of Projectinstances 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()
NodeDisplayable interface method.  The Node class returns
  a generic icon.
getIcon in interface DisplayablegetIcon in class NodeIcon 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 FoldercanAdd in class DataContainerelement - 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 DataContainerprotected final HashStructureIO newHashStructureIO()
newHashStructureIO in class HashStructureNodeprotected final java.lang.String getNamespaceURI()
getNamespaceURI in class HashStructureNodeprotected final java.lang.String getRootQName()
getRootQName in class HashStructureNode
protected void closeImpl()
                  throws java.io.IOException
NodeNode.close() invokes this only if the node is open, under
 write lock.  The Node implementation does nothing.
closeImpl in class HashStructureNodejava.io.IOException - if an I/O error occurred while closing
protected void saveImpl()
                 throws java.io.IOException
NodeNode.save() invokes this only if the node is dirty, under
 write lock.  The Node implementation does nothing.
saveImpl in class HashStructureNodejava.io.IOException - if an I/O error occurred while savingpublic final java.lang.Object copyTo(java.lang.Object object)
copyTo in class HashStructureNodepublic boolean isDefault()
HashStructureNodetrue 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.
TransientMarkerpublic 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.
Projects. Never returns
    null.| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||