|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditorPart
edu.usc.cse.desi.editor.DESIEditor
This class will be our "mother" class that is our editor. It will contain and set up the two sub-pages, GraphicalEditor and TabularEditor.
| Field Summary | |
private boolean |
dirty
|
private int |
graphicalPageNumber
|
private org.eclipse.gef.ui.actions.ActionRegistry |
myActionRegistry
|
private org.eclipse.gef.commands.CommandStack |
myCurrentComStack
|
private java.lang.Object |
myCurrentSelection
|
private DESIViewModel |
myModel
|
private OverviewOutlinePage |
myOutlinePage
|
private org.eclipse.gef.palette.PaletteRoot |
myPaletteRoot
|
private PropertyInitializer |
myPropInitializer
|
private java.util.List |
mySelectionActions
|
private java.util.List |
myStackActions
|
private org.eclipse.gef.ui.parts.SelectionSynchronizer |
mySynchronizer
|
private edu.uci.ics.xarchutils.XArchFlatInterface |
myXARCH
|
private edu.uci.ics.xarchutils.ObjRef |
myXARCHRef
|
private java.util.List |
propertyActions
|
private int |
selectionPageNumber
|
private int |
tabularPageNumber
|
| Fields inherited from class org.eclipse.ui.part.MultiPageEditorPart |
|
| Fields inherited from class org.eclipse.ui.part.EditorPart |
|
| Fields inherited from class org.eclipse.ui.part.WorkbenchPart |
|
| Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Constructor Summary | |
DESIEditor()
|
|
| Method Summary | |
void |
alertSelectionPageOfChange(org.eclipse.jface.viewers.ISelection selection)
This method was created for DESI 2.0. |
void |
commandStackChanged(java.util.EventObject event)
When the command stack changes, the actions interested in the command stack are updated. |
private void |
copyXADLReferences(DESIViewModel old_model,
DESIViewModel new_model)
When the DESI model changes, if we are operating on top of a xADL model, this must be called. |
protected void |
createActions()
Creates actions for this editor. |
DESIViewModel |
createDESIModelFromXADLModel(DeSiDataModel xadl_model)
This method comes from the USC/UCI/JPL project. |
protected void |
createPages()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
protected void |
firePropertyChange(int property)
|
protected org.eclipse.gef.ui.actions.ActionRegistry |
getActionRegistry()
Lazily creates and returns the action registry. |
java.lang.Object |
getAdapter(java.lang.Class type)
|
DESIViewModel |
getModel()
Returns the shared model that all pages of this editor will use. |
java.lang.Object |
getMyCurrentSelection()
Returns whatever is currently selected. |
PropertyInitializer |
getMyPropInitializer()
|
OverviewOutlinePage |
getOutlinePage()
When called, this method returns either the existing or a new Outline page. |
AbstractPage |
getPage(int page_num)
Returns the page with the given page number. |
org.eclipse.gef.palette.PaletteRoot |
getPaletteRoot()
In case any other pages need to use a palette, here is the palette root. |
protected org.eclipse.gef.ui.parts.SelectionSynchronizer |
getSelectionSynchronizer()
Returns the selection syncronizer object. |
DeSiDataModel |
getXADLModelFromFile(java.lang.String file_name)
This method will, given the xadl file name, return the xadl DESI api which will then allow us to load it into our in-memory model. |
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
Initialize the model from the file that is given as input. |
boolean |
isDirty()
Is the model dirty, or not? |
boolean |
isSaveAsAllowed()
|
protected void |
pageChange(int newPageIndex)
This method is called when the user switches from one page to the next. |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
|
void |
setDirty(boolean b)
sets whether or not the model is dirty. |
void |
setModel(DESIViewModel new_model)
This method sets the model for DESI and for all of its subpages. |
void |
switchToSelectionPage()
When this method is called, the editor will switch to the selection page. |
protected void |
updateActions(java.util.List actionIds)
A convenience method for updating a set of actions defined by the given List of action IDs. |
private void |
updateXADLParents(DESIViewModel current_model)
When the DESI model changes, if we are operating on top of a xADL model, this method must be called. |
| Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
addPage, addPage, createPartControl, createSite, dispose, getActiveEditor, getActivePage, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageText, handlePropertyChange, removePage, setActivePage, setControl, setFocus, setPageImage, setPageText |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, getConfigurationElement, getContentDescription, getDefaultImage, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| 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, getSite, getTitle, getTitleImage, removePropertyListener |