|
|||||||||||
| 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
edu.usc.cse.desi.editor.AbstractPage
edu.usc.cse.desi.editor.DESITabularPage
This is the tabular page of the DeSi Editor. It is responsible for setting up and displaying the SWT widgets that make up the tabular view as well as connecting those widges to changes in the model.
| Field Summary | |
private java.util.LinkedHashMap |
myAlgosAndResults
|
private java.util.List |
myCalculators
|
private InputData |
myInputData
|
private org.eclipse.swt.widgets.Composite |
myMainComposite
|
private DESIViewModel |
myOldModel
|
private org.eclipse.jface.viewers.ListViewer |
myResultsList
|
private java.util.List |
myTableViewers
|
| Fields inherited from class edu.usc.cse.desi.editor.AbstractPage |
|
| 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 | |
DESITabularPage(DESIEditor top_level_editor)
|
|
| Method Summary | |
private void |
createAlgoSection(org.eclipse.swt.widgets.Composite parent)
|
private void |
createCollocTable(org.eclipse.swt.widgets.Composite parent)
This method will create the co-location table which will be presented in the the constraints section. |
private void |
createComponentsEvtSizeTable(org.eclipse.swt.widgets.Composite parent)
This method will create a TableViewer for the component table that shows component event sizes. |
private void |
createComponentsTable(org.eclipse.swt.widgets.Composite parent)
This method creates a TableViewer for the components table and adds it to the given parent SWT Widget. |
private void |
createConstraintsSection(org.eclipse.swt.widgets.Composite parent)
This method will create the constraints section. |
private void |
createDeploymentTable(org.eclipse.swt.widgets.Composite parent)
Create a table of component deployments. |
private void |
createHostBWTable(org.eclipse.swt.widgets.Composite parent)
This method creates the table that shows the bandwisth of the links between the hosts. |
private void |
createHostTable(org.eclipse.swt.widgets.Composite parent)
This method will create the Hosts Table. |
private void |
createInputSection(org.eclipse.swt.widgets.Composite parent)
This method will create the input section, all the widgets needed for specifying and randomly generating new Systems and Deployments. |
private void |
createLocTable(org.eclipse.swt.widgets.Composite parent)
This is the method that creates the location constraints table. |
private void |
createLogicalLinkPropertyTable(org.eclipse.swt.widgets.Composite parent,
java.lang.String prop_name)
Create a table that will display the given property of logical links. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This method is overridden, to make each page special. |
private void |
createPhysicalLinkPropertyTable(org.eclipse.swt.widgets.Composite parent,
java.lang.String prop_name)
Create a table that will display the given property of physical links. |
private void |
createResultsSection(org.eclipse.swt.widgets.Composite parent)
This method creates the section of the tabular page where the results are displayed. |
private void |
createTabbedSection(org.eclipse.swt.widgets.Composite parent)
There is a section of the tabular view that contains tabbed pages that give the current status of the system. |
private void |
generate()
This method is called when someone hits the generate button. |
java.lang.String |
getPageName()
What is the readable name of this page? |
private void |
initializeAlgos()
This method will initialize the algorithms that can be run. |
private void |
layoutView(org.eclipse.swt.widgets.Composite parent)
This method will, once the main grid layout is setup, will add all the pieces of the view to it. |
void |
modelChanged(DESIViewModel old_model,
DESIViewModel new_model)
When the model changes, we need to keep a copy of the old model in case we decide to go back to it. |
protected void |
registerEditPartViewer(org.eclipse.gef.EditPartViewer viewer)
If this page has an viewer, it must be registered with the Editor and the edit domain. |
private void |
runAlgo(java.lang.String algo_name)
This method will run the algorithm whose name is passed in. |
private void |
runSamsAlgo()
|
void |
setFocus()
Call set focus on our graphical viewer. |
private void |
undoButtonPressed()
This method will be called when the Undo button is hit. |
| Methods inherited from class edu.usc.cse.desi.editor.AbstractPage |
doSave, doSaveAs, getCommandStack, getModel, getMyEditDomain, getMyEditor, gotoMarker, init, isDirty, isSaveAsAllowed, switchedTo |
| 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, dispose, firePropertyChange, getAdapter, 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, dispose, getSite, getTitle, getTitleImage, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
| Field Detail |
private org.eclipse.swt.widgets.Composite myMainComposite
private DESIViewModel myOldModel
private InputData myInputData
private java.util.List myTableViewers
private java.util.List myCalculators
private org.eclipse.jface.viewers.ListViewer myResultsList
private java.util.LinkedHashMap myAlgosAndResults
| Constructor Detail |
public DESITabularPage(DESIEditor top_level_editor)
top_level_editor - | Method Detail |
private void initializeAlgos()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
AbstractPage
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class AbstractPageprivate void la youtView(org.eclipse.swt.widgets.Composite parent)
parent - private void createAlgoSection(org.eclipse.swt.widgets.Composite parent)
private void createConstraintsSection(org.eclipse.swt.widgets.Composite parent)
parent - private void createInputSection(org.eclipse.swt.widgets.Composite parent)
parent - Composite - The parent SWT widget of this section.private void createResultsSection(org.eclipse.swt.widgets.Composite parent)
parent - Composite - The parent SWT widget of this section.private void createTabbedSection(org.eclipse.swt.widgets.Composite parent)
parent - private void generate()
private void createCollocTable(org.eclipse.swt.widgets.Composite parent)
parent - private void createLocTable(org.eclipse.swt.widgets.Composite parent)
parent - private void createHostTable(org.eclipse.swt.widgets.Composite parent)
parent - Composite - The parent SWT Widget of this table.private void createDeploymentTable(org.eclipse.swt.widgets.Composite parent)
parent -
private void createLogicalLinkPropertyTable(org.eclipse.swt.widgets.Composite parent,
java.lang.String prop_name)
parent - Composite - The SWT parent widget of this table.prop_name - String - The name of the property of logical links this table will display.
private void createPhysicalLinkPropertyTable(org.eclipse.swt.widgets.Composite parent,
java.lang.String prop_name)
parent - Composite - The SWT parent widget of this table.prop_name - String - The name of the property of Physical Links to display.private void createHostBWTable(org.eclipse.swt.widgets.Composite parent)
parent - Composite - The parent SWT widget of this table.private void createComponentsTable(org.eclipse.swt.widgets.Composite parent)
parent - Composite - The parent SWT widget of this table.private void createComponentsEvtSizeTable(org.eclipse.swt.widgets.Composite parent)
parent - Composite - The parent SWT widget of this table.public java.lang.String getPageName()
AbstractPage
getPageName in class AbstractPageprotected void registerEditPartViewer(org.eclipse.gef.EditPartViewer viewer)
AbstractPage
registerEditPartViewer in class AbstractPageviewer - EditPartViewerpublic void setFocus()
AbstractPage
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class AbstractPage
public void modelChanged(DESIViewModel old_model,
DESIViewModel new_model)
modelChanged in class AbstractPagenew_model - DESIViewModel - The new model.old_model - DESIViewModel - The old model.AbstractPage.modelChanged(edu.usc.cse.desi.model.view.DESIViewModel, edu.usc.cse.desi.model.view.DESIViewModel)private void undoButtonPressed()
private void runSamsAlgo()
private void runAlgo(java.lang.String algo_name)
algo_name - String - The name of the algorithm that should be run.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||