|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.addin.DefaultContext
DefaultContext
class. Provides a default implementation
of the Context
interface. In general, extensions should not
implement their own context class. They should use the class
IdeContext
directly.
Field Summary | |
protected java.lang.Object |
_data
|
protected Document |
_doc
|
protected Element |
_elem
|
protected java.util.EventObject |
_event
|
protected Project |
_project
|
protected Element[] |
_sel
|
protected View |
_view
|
protected Workspace |
_workspace
|
Constructor Summary | |
DefaultContext()
Default constructor |
|
DefaultContext(Document doc)
Constructor. |
|
DefaultContext(Element element)
Constructor. |
|
DefaultContext(View view,
Workspace workspace,
Project project,
Element[] selection,
Document doc,
Element elem)
Constructor. |
Method Summary | |
protected boolean |
areMultipleDocumentsSelected()
|
Folder |
findOwner(Element element)
|
Document |
getDocument()
Gets the document that owns the selection. |
Element |
getElement()
Provides a reference to the Element of interest. |
java.util.EventObject |
getEvent()
Provides a reference to the EventObject associated with this Context. |
java.lang.Object |
getExtraData()
Provides a reference to the user data associated with this Context. |
Project |
getProject()
Provides a reference to the Project data associated with this Context. |
Element[] |
getSelection()
Gets the list of selected Elements. |
View |
getView()
Provides a reference to the View associated with this Context. |
Workspace |
getWorkspace()
Provides a reference to the Workspace associated with this Context. |
Context |
makeCopy()
Create a copy of the current context and copy accross the relavent properties |
void |
setDocument(Document document)
Sets the document that owns the selection. |
void |
setElement(Element element)
|
void |
setEvent(java.util.EventObject event)
Set the EventObject to be associated with this Context. |
void |
setExtraData(java.lang.Object data)
Set the user data to be associated with this Context. |
void |
setProject(Project project)
Set a reference to the Project data associated with this Context. |
void |
setSelection(Element[] selection)
Sets the list of selected Elements. |
void |
setView(View view)
Set a reference to the View to be associated with this Context. |
void |
setWorkspace(Workspace workspace)
Sets a reference to the Workspace to be associated with this Context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected View _view
protected Workspace _workspace
protected Project _project
protected Element[] _sel
protected Document _doc
protected Element _elem
protected java.util.EventObject _event
protected java.lang.Object _data
Constructor Detail |
public DefaultContext()
public DefaultContext(Element element)
element
- the document associated with this context.public DefaultContext(Document doc)
doc
- the document associated with this context.public DefaultContext(View view, Workspace workspace, Project project, Element[] selection, Document doc, Element elem)
view
- the view this context comes from.workspace
- the workspace associated with this context.project
- the project associated with this context.selection
- the elements selected in the view.doc
- the document associated with this context.elem
- the 0th element in the selection.Method Detail |
public Context makeCopy()
makeCopy
in interface Context
public View getView()
Context
getView
in interface Context
public void setView(View view)
Context
setView
in interface Context
public Workspace getWorkspace()
Context
getWorkspace
in interface Context
public void setWorkspace(Workspace workspace)
Context
setWorkspace
in interface Context
public Project getProject()
Context
getProject
in interface Context
public void setProject(Project project)
Context
setProject
in interface Context
public java.util.EventObject getEvent()
Context
getEvent
in interface Context
Context.setEvent(java.util.EventObject)
public void setEvent(java.util.EventObject event)
Context
setEvent
in interface Context
event
- the EventObject to associate with this Context.Context.getEvent()
public Element[] getSelection()
Context
getSelection
in interface Context
#getDefaultSubject
public void setSelection(Element[] selection)
Context
setSelection
in interface Context
#getDefaultSubject
public Document getDocument()
Context
getDocument
in interface Context
public void setDocument(Document document)
Context
setDocument
in interface Context
public Element getElement()
Context
getElement
in interface Context
Context.getSelection()
public void setElement(Element element)
public java.lang.Object getExtraData()
Context
getExtraData
in interface Context
Context.setExtraData(java.lang.Object)
public void setExtraData(java.lang.Object data)
Context
setExtraData
in interface Context
Context.getExtraData()
public Folder findOwner(Element element)
findOwner
in interface Context
element
- the Element being checked for removal from this folder
protected boolean areMultipleDocumentsSelected()
true
if several Document
objects are found
in the selection list.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.