|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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. |
Context |
makeCopy()
This methods allows clients to make a copy of the current context whilst preserving the type of the Context object. |
void |
setDocument(Document document)
Sets the document that owns the selection. |
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. |
Method Detail |
public Context makeCopy()
public View getView()
public void setView(View view)
public Workspace getWorkspace()
public void setWorkspace(Workspace workspace)
public Project getProject()
public void setProject(Project project)
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 void setSelection(Element[] selection)
#getDefaultSubject
public Document getDocument()
public void setDocument(Document document)
public Element getElement()
getSelection()
public java.lang.Object getExtraData()
setExtraData(java.lang.Object)
public void setExtraData(java.lang.Object data)
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.