|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ide.addin.DefaultContext
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()
|
|
DefaultContext(Document doc)
|
|
DefaultContext(View view,
Workspace workspace,
Project project,
Element[] selection,
Document doc,
Element elem)
|
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. |
void |
setDocument(Document document)
|
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)
|
void |
setSelection(Element[] selection)
Set the list of selected Elements. |
void |
setView(View view)
Set the View to be associated with this Context. |
void |
setWorkspace(Workspace workspace)
|
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(Document doc)
public DefaultContext(View view, Workspace workspace, Project project, Element[] selection, Document doc, Element elem)
Method Detail |
public View getView()
Context
getView
in interface Context
oracle.ide.addin.Context
public void setView(View view)
view
- the View to associate with this Context.getView()
public Workspace getWorkspace()
Context
getWorkspace
in interface Context
public void setWorkspace(Workspace workspace)
public Project getProject()
Context
getProject
in interface Context
public void setProject(Project project)
public java.util.EventObject getEvent()
Context
getEvent
in interface Context
oracle.ide.addin.Context
Context.setEvent(java.util.EventObject)
public void setEvent(java.util.EventObject event)
Context
setEvent
in interface Context
oracle.ide.addin.Context
event
- the EventObject to associate with this Context.Context.getEvent()
public Element[] getSelection()
Context
getSelection
in interface Context
oracle.ide.addin.Context
#getDefaultSubject
public void setSelection(Element[] selection)
selection
- the list of selected Elements.getSelection
public Document getDocument()
getDocument
in interface Context
public void setDocument(Document document)
public Element getElement()
Context
getElement
in interface Context
oracle.ide.addin.Context
Context.getSelection()
public void setElement(Element element)
public java.lang.Object getExtraData()
Context
getExtraData
in interface Context
oracle.ide.addin.Context
Context.setExtraData(java.lang.Object)
public void setExtraData(java.lang.Object data)
Context
setExtraData
in interface Context
oracle.ide.addin.Context
extraData
- the user data to associate with this Context.Context.getExtraData()
public Folder findOwner(Element element)
findOwner
in interface Context
oracle.ide.addin.Context
element
- the Element being checked for removal from this folderprotected boolean areMultipleDocumentsSelected()
|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |