|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
com.alveole.studio.web.designer.graph.PackageNavigatorEditor
public class PackageNavigatorEditor
This class is the tree navigator, that displays all nodes and edges. This is one of the main entries of this plugin.
| Field Summary | |
|---|---|
static java.lang.String |
ID
This editor plugin ID. |
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
PackageNavigatorEditor()
Create a navigator view. |
|
| Method Summary | |
|---|---|
void |
addFocusListener(org.eclipse.swt.events.FocusListener fl)
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Called to display controls. |
void |
displayPackage(NodePackage pack)
Create Vertices and edges given a package to display. |
void |
displayPackage(NodePackage pack,
boolean history)
Create Vertices and edges given a package to display. |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Save to XML. |
void |
doSaveAs()
|
void |
firePropertyChange(int propertyId)
Fires a property change. |
PackageNavigatorModel |
getNavigatorModel()
Gets the associated model. |
Project |
getProject()
Get project's contents. |
ProjectContext |
getProjectContext()
Get project's context. |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
Initializes this editor. |
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
void |
link(edu.uci.ics.jung.graph.Vertex v1,
edu.uci.ics.jung.graph.Vertex v2)
Create a link between two vertices. |
void |
refreshToolbar()
Refresh toolbar (with new features). |
void |
removeFocusListener(org.eclipse.swt.events.FocusListener fl)
|
void |
repaintSwingGraph()
Repaint graph from swing component. |
void |
repaintSWTGraph()
Repaint from SWT component graph. |
void |
setFocus()
This method is called by eclipse RCP to advertise that we have focus. |
void |
setNavigatorModel(PackageNavigatorModel navigatorModel)
Sets the associated model. |
void |
setProject(Project p)
Change project's contents. |
void |
updateToolbarState()
Update toolbar state after current package changed. |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
|---|
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, dispose, getSite, getTitle, getTitleImage, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
public static final java.lang.String ID
| Constructor Detail |
|---|
public PackageNavigatorEditor()
| Method Detail |
|---|
public void displayPackage(NodePackage pack)
pack -
public void displayPackage(NodePackage pack,
boolean history)
pack - history - Set it to true if current page should go to back-history.public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave in interface org.eclipse.ui.ISaveablePartdoSave in class org.eclipse.ui.part.EditorPartpublic void doSaveAs()
doSaveAs in interface org.eclipse.ui.ISaveablePartdoSaveAs in class org.eclipse.ui.part.EditorPart
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
init in interface org.eclipse.ui.IEditorPartinit in class org.eclipse.ui.part.EditorPartorg.eclipse.ui.PartInitExceptionpublic void setProject(Project p)
public Project getProject()
public ProjectContext getProjectContext()
public boolean isDirty()
isDirty in interface org.eclipse.ui.ISaveablePartisDirty in class org.eclipse.ui.part.EditorPartpublic boolean isSaveAsAllowed()
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePartisSaveAsAllowed in class org.eclipse.ui.part.EditorPartpublic void repaintSwingGraph()
public void repaintSWTGraph()
public void refreshToolbar()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartpublic void addFocusListener(org.eclipse.swt.events.FocusListener fl)
public void removeFocusListener(org.eclipse.swt.events.FocusListener fl)
public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartpublic void updateToolbarState()
public void link(edu.uci.ics.jung.graph.Vertex v1,
edu.uci.ics.jung.graph.Vertex v2)
link in interface GuiActionsManagerv1 - Initial node.v2 - Target node.public PackageNavigatorModel getNavigatorModel()
public void setNavigatorModel(PackageNavigatorModel navigatorModel)
public void firePropertyChange(int propertyId)
firePropertyChange in class org.eclipse.ui.part.WorkbenchPart
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||