|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Context interface provides information about the current IDE state.
From this interface, Wizards and other classes receiving IDE actions
can determine the active Project
and Workspace
as
well as the currently selected Element
.
Method Summary | |
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 |
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. |
Method Detail |
public View getView()
public Workspace getWorkspace()
public Project getProject()
public java.util.EventObject getEvent()
setEvent(java.util.EventObject)
public void setEvent(java.util.EventObject event)
event
- the EventObject to associate with this Context.getEvent()
public Element[] getSelection()
#getDefaultSubject
public Document getDocument()
public Element getElement()
getSelection()
public java.lang.Object getExtraData()
setExtraData(java.lang.Object)
public void setExtraData(java.lang.Object data)
extraData
- the user data to associate with this Context.getExtraData()
public Folder findOwner(Element element)
element
- the Element being checked for removal from this folder
|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |