Extension SDK 10.1.3.36.73

oracle.ide.model
Class Workspace

java.lang.Object
  extended byoracle.ide.model.Node
      extended byoracle.ide.model.DataNode
          extended byoracle.ide.model.DataContainer
              extended byoracle.ide.model.Workspace
All Implemented Interfaces:
oracle.javatools.data.Dirtyable, Dirtyable, Displayable, Element, Folder, LazyLoadable, Locatable, Observer, oracle.javatools.data.PropertyStorage, Subject

public final class Workspace
extends DataContainer

Workspace represents an Application.


Field Summary
static java.lang.String EXT
          Constant recording the file extension for a workpace.
 
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.
 Project currentActiveProject()
          Returns the currently active Project associated with this Workspace.
 java.net.URL getActiveProjectURL()
          Returns the currently active project URL associated with this Workspace.
 javax.swing.Icon getIcon()
          Returns an Icon that can be shown in association with this Displayable.
protected  java.lang.Object getObjectStoreTarget()
           
protected  ObjectStore newObjectStore()
           
 boolean remove(Element doc, boolean notifyObservers)
           
 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.DataContainer
add, add, add, canRemove, containsChild, equals, equalsImpl, getBaseDirectory, getChildren, getListOfChildren, getProperties, getProperty, getProperty, getSharedPropertiesOnly, getTransientProperties, getUserPropertiesOnly, mayHaveChildren, openImpl, postCloseImpl, remove, removeAll, removeAll, resetSubDirtyableOwners, setListOfChildren, setProperty, setSubDirtyableOwner, size, update
 
Methods inherited from class oracle.ide.model.DataNode
getURL, saveImpl
 
Methods inherited from class oracle.ide.model.Node
_getReadWriteLockInternal, addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, close, createSubject, delete, deleteImpl, detach, ensureOpen, equalsImpl, getAttributes, getData, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getToolTipText, isDirty, isNew, isOpen, isReadOnly, isTrackedInNodeCache, markDirty, notifyObservers, open, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runWhileSynchronized, save, setOpen, setTimestampDirectly, setURL, toString
 
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

EXT

public static final java.lang.String EXT
Constant recording the file extension for a workpace.

See Also:
Constant Field Values
Constructor Detail

Workspace

public Workspace()
Method Detail

getActiveProjectURL

public java.net.URL getActiveProjectURL()
                                 throws TransientMarker
Returns the currently active project URL associated with this Workspace. If there is no currently active project, null is returned.

Throws:
TransientMarker

setActiveProjectURL

public void setActiveProjectURL(java.net.URL activeProjectURL)
Set the active project url. This method does not cause the opening of the workspace nor does it make the workspace dirty. The active project information is not saved in the workspace file.


getIcon

public javax.swing.Icon getIcon()
Description copied from interface: Displayable
Returns an Icon that can be shown in association with this Displayable. Typically the icon will be used in a tree control or list control. Therefore the icon must fit naturally within the space normally given to items within those controls. Such icons are usually 16x16 in size or, if there is a one-pixel transparent padding around the edge, 18x18 in size. It is strongly recommended that icons returned by this method be either 16x16 or 18x18 in size. If null is returned, the control may show a default icon, or it may show no icon, whichever is appropriate.

Specified by:
getIcon in interface Displayable
Overrides:
getIcon in class Node

canAdd

public boolean canAdd(Element element)
Folder interface method. Returns true if the specified Element is an instance of Project; returns false otherwise.

Specified by:
canAdd in interface Folder
Overrides:
canAdd in class DataContainer
Returns:
true if and only if the specified Element is not null.
See Also:
DefaultFolder.canAdd(Element), Folder.canAdd(Element)

remove

public boolean remove(Element doc,
                      boolean notifyObservers)
Overrides:
remove in class DataContainer

newObjectStore

protected ObjectStore newObjectStore()
Overrides:
newObjectStore in class DataNode

getObjectStoreTarget

protected java.lang.Object getObjectStoreTarget()
Overrides:
getObjectStoreTarget in class DataNode

closeImpl

protected void closeImpl()
                  throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the close() behavior.

Overrides:
closeImpl in class DataContainer
Throws:
java.io.IOException

currentActiveProject

public Project currentActiveProject()
Returns the currently active 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.


setActiveProject

public void setActiveProject(Project activeProject)
Set the active project.


Extension SDK 10.1.3.36.73

 

Copyright © 1997, 2005, Oracle.All rights reserved.