|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.ide.model.DefaultDocument
oracle.ide.model.DefaultNode
oracle.ide.model.DataNode
oracle.ide.model.DataContainer
oracle.ide.model.Workspace
This a new class that is under development to replace Workspace.
| Field Summary | |
static java.lang.String |
EXT
|
static java.lang.String |
NAMESPACE_URI
|
static java.lang.String |
ROOT_TAG
|
| Fields inherited from class oracle.ide.model.DataContainer |
_children |
| Fields inherited from class oracle.ide.model.DataNode |
_objectStore |
| Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
| Fields inherited from interface oracle.ide.model.Category |
UNDEFINED |
| Constructor Summary | |
Workspace()
Default constructor. |
|
Workspace(Workspace workspace)
Copy constructor. |
|
| Method Summary | |
boolean |
canAdd(Element element)
Folder interface method. |
void |
close()
Closes the Document and unloads any associated data. |
java.lang.Object |
copyTo(java.lang.Object object)
Design pattern for supporting strongly typed copying. |
protected void |
copyToImpl(Workspace copy)
|
Project |
currentActiveProject()
Returns the currently active Project associated with
this Workspace. |
protected ObjectStore |
currentObjectStore()
|
boolean |
equals(java.lang.Object o)
|
protected boolean |
equalsImpl(Workspace workspace)
This is a helper method for equals(Object) that can
also be used by subclasses that implement equals(Object). |
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. |
java.util.Map |
getProperties()
Retrieves a map holding the property-value pairs. |
java.lang.Object |
getProperty(java.lang.String name)
Retrieves the value associated with a property. |
java.lang.Object |
getProperty(java.lang.String name,
java.lang.Object defaultValue)
Accessor to user data saved in the workspace file |
boolean |
remove(Element doc,
boolean notifyObservers)
This is a variant of the Folder.remove(Element) method
that accepts an additional flag that indiciates whether or not
notifications of the change should be sent to registered observers. |
void |
setActiveProject(Project activeProject)
|
void |
setActiveProjectURL(java.net.URL activeProjectURL)
|
void |
setProperties(java.util.Map properties)
Sets the map holding the property-value pairs. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Accessor to user data saved in the workspace file |
| Methods inherited from class oracle.ide.model.DataContainer |
add, add, add, canRemove, containsChild, copyToImpl, getBaseDirectory, getChildren, getListOfChildren, mayHaveChildren, remove, removeAll, removeAll, resetSubDirtyableOwners, setListOfChildren, setSubDirtyableOwner, size |
| Methods inherited from class oracle.ide.model.DataNode |
getURL, open, reopen, save, setObjectStore |
| Methods inherited from class oracle.ide.model.DefaultNode |
equalsImpl, getCategory, setURL |
| Methods inherited from class oracle.ide.model.DefaultDocument |
attach, copyToImpl, createSubject, detach, ensureOpen, equalsImpl, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampDirectly, getToolTipText, isDirty, isNew, isOpen, isReadOnly, markDirty, notifyObservers, refreshTimestamp, setOpen, setTimestampDirectly |
| Methods inherited from class oracle.ide.model.DefaultElement |
getAttributes, getData |
| Methods inherited from class oracle.ide.model.DefaultDisplayable |
toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.ide.model.Document |
getInputStream, getTimestamp, isNew, isReadOnly, open, save |
| Methods inherited from interface oracle.ide.model.Locatable |
getURL, setURL |
| Methods inherited from interface oracle.ide.model.Element |
getAttributes |
| Methods inherited from interface oracle.ide.model.Data |
getData |
| Methods inherited from interface oracle.ide.model.Displayable |
getLongLabel, getShortLabel, getToolTipText, toString |
| Methods inherited from interface oracle.ide.addin.Subject |
attach, detach, notifyObservers |
| Methods inherited from interface oracle.ide.model.Dirtyable |
isDirty, markDirty |
| Methods inherited from interface oracle.ide.model.LazyLoadable |
isOpen |
| Methods inherited from interface oracle.ide.model.Category |
getCategory |
| Field Detail |
public static final java.lang.String EXT
public static final java.lang.String NAMESPACE_URI
public static final java.lang.String ROOT_TAG
| Constructor Detail |
public Workspace()
public Workspace(Workspace workspace)
| Method Detail |
public void close()
DocumentDocument and unloads any associated data.
When this method returns, the state of the Document
object should be equivalent to when the Document
object has just been instantiated but not yet opened.
close in interface Documentclose in class DataContainerpublic java.lang.Object copyTo(java.lang.Object object)
copyTo in interface Copyableobject - The target object to which the state of
this object should be copied. If target
is null, then the copyTo method will
return a new instance of this class.
this
object was copied. If the target was
non-null, then the return value is the same as the
target object that was passed in; otherwise, the
return value is a new instance of this class.protected final void copyToImpl(Workspace copy)
public boolean equals(java.lang.Object o)
protected final boolean equalsImpl(Workspace workspace)
equals(Object) that can
also be used by subclasses that implement equals(Object).
It assumes that the argument is not null.
public java.net.URL getActiveProjectURL()
URL associated with
this Workspace. If there is no currently active
project, null is returned.
This method will not open the workspace to determine the active
project URL. If the workspace is closed, null is returned.
public void setActiveProjectURL(java.net.URL activeProjectURL)
public javax.swing.Icon getIcon()
DisplayableIcon 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.
getIcon in interface DisplayablegetIcon in class DefaultDisplayableDisplayable.getIcon()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 DataContainertrue if and only if the specified
Element is not null.DefaultFolder.canAdd(Element),
Folder.canAdd(Element)
public boolean remove(Element doc,
boolean notifyObservers)
ContainerFolder.remove(Element) method
that accepts an additional flag that indiciates whether or not
notifications of the change should be sent to registered observers.
remove in interface Containerremove in class DataContainerprotected ObjectStore currentObjectStore()
currentObjectStore in class DataNodepublic Project currentActiveProject()
Project associated with
this Workspace. If there is no currently active
Project, null is returned.
This method will not open the workspace to determine the active
project. If the workspace is closed, 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 java.util.Map getProperties()
DynamicPropertySet
getProperties in interface DynamicPropertySetpublic void setProperties(java.util.Map properties)
DynamicPropertySet
setProperties in interface DynamicPropertySetpublic java.lang.Object getProperty(java.lang.String name)
DynamicPropertySet
getProperty in interface DynamicPropertySetname - the property key for which a value is desired.
exists.
null value
if the property does not exist or is not set.
public java.lang.Object getProperty(java.lang.String name,
java.lang.Object defaultValue)
getProperty in interface DynamicPropertySetname - the property key for which a value is desired.defaultValue - the value to return if no value currently
exists.
public void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface DynamicPropertySetname - the property key to setvalue - the value to set
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.