|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alveole.interfaces.ProjectContext
public class ProjectContext
This class is the current project's context. Project context contains reference to project. Context is used to perform some basic GUI operations, such as opening a panel on properties View, or getting focus on graph. It also keeps references to JavaProject, and to current Editor. All methods must be called in SWT dispkay thread.
Field Summary | |
---|---|
protected org.eclipse.core.resources.IProject |
javaProject
Reference to the containing project. |
protected Project |
project
The currently edited Project. |
protected ProjectEditor |
projectEditor
Reference to the current graph editor. |
protected org.eclipse.core.resources.IResource |
projectResource
The reference to the current edited XML file. |
protected org.eclipse.swt.widgets.Shell |
shell
The editor shell. |
Constructor Summary | |
---|---|
ProjectContext(org.eclipse.core.resources.IResource projectResource)
Constructor. |
Method Summary | |
---|---|
org.eclipse.core.resources.IProject |
getJavaProject()
Get the containing IProject. |
NodePropertiesView |
getNodePropertiesView()
Gets the Nodes View. |
Project |
getProject()
Gets the current edited project's file. |
ProjectEditor |
getProjectEditor()
Get a reference to the editor. |
org.eclipse.swt.widgets.Shell |
getShell()
Get the editor shell. |
void |
setFocus()
Calls focus on editor. |
void |
setProject(Project project)
Sets the current edited project's file. |
void |
setProjectEditor(ProjectEditor projectEditor)
Set the referenc to the editor. |
void |
setShell(org.eclipse.swt.widgets.Shell shell)
Sets the editor shell. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Project project
protected org.eclipse.swt.widgets.Shell shell
protected org.eclipse.core.resources.IResource projectResource
protected org.eclipse.core.resources.IProject javaProject
protected ProjectEditor projectEditor
Constructor Detail |
---|
public ProjectContext(org.eclipse.core.resources.IResource projectResource)
projectResource
- The currently edited XML file.Method Detail |
---|
public Project getProject()
public void setProject(Project project)
public org.eclipse.swt.widgets.Shell getShell()
public void setShell(org.eclipse.swt.widgets.Shell shell)
shell
- The shell.public NodePropertiesView getNodePropertiesView()
public void setFocus()
public org.eclipse.core.resources.IProject getJavaProject()
public ProjectEditor getProjectEditor()
public void setProjectEditor(ProjectEditor projectEditor)
projectEditor
- The editor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |