|
||||||||||
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.ViewPart
de.cau.cs.kieler.sim.kiem.ui.views.KiemView
public class KiemView
The Class KiemView is only instantiated once when the view part is registered in the Eclipse IDE. It holds the DataComponent table list view and buttons to control the execution.
Field Summary | |
---|---|
static String |
VIEW_ID
The Constant VIEW_ID. |
Fields inherited from interface org.eclipse.ui.ISaveablePart2 |
---|
CANCEL, DEFAULT, NO, YES |
Fields inherited from interface org.eclipse.ui.ISaveablePart |
---|
PROP_DIRTY |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
KiemView()
The constructor of the Kiem View instance. |
Method Summary | |
---|---|
static void |
bringToFront()
This method brings the Table view to the front. |
void |
createColumns(KiemTableViewer viewerParam)
This will create the columns for the table. |
void |
createPartControl(Composite parentParam)
|
KiemTableViewer |
createPartControl2(Composite parentParam,
KiemTableViewer viewerParam)
Creates the part control2. |
void |
doSave(IProgressMonitor monitor)
|
void |
doSaveAs()
|
AimedStepDurationTextField |
getAimedStepDurationTextField()
Gets the aimed step duration text field. |
static KiemView |
getInstance()
Gets the single instance of KiemView. |
KiemPlugin |
getKIEMInstance()
Gets the kIEM instance. |
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
boolean |
isSaveOnCloseNeeded()
|
int |
promptToSaveOnClose()
|
void |
setAllEnabled(boolean enabled)
Sets the all actions (tool bar buttons and context menu entires) to enabled or disabled. |
void |
setAllEnabled(boolean enabled,
KiemTableViewer viewerParam)
Sets the all actions (tool bar buttons and context menu entires) to enabled or disabled. |
void |
setDirty(boolean isDirtyParam)
Sets the dirty flag. |
void |
setFocus()
Passing the focus request to the viewer's control. |
void |
setFocus(KiemTableViewer viewerParam)
Passing the focus request to the viewer's control. |
void |
showError(String message)
Show error dialog with the message. |
void |
showWarning(String message)
Show warning dialog with the message. |
void |
updateEnabledEnabledDisabledUpDownAddDelete()
Updates the enabled disabled status of the following actions: - up - down - add - delete. |
void |
updateEnabledEnabledDisabledUpDownAddDelete(KiemTableViewer viewerParam)
Updates the enabled disabled status of the following actions: - up - down - add - delete. |
void |
updateStepsAsync()
Updates steps in the steps text field asynchronously from within another thread. |
protected void |
updateView(boolean deselect)
Updates the table if it is not busy. |
void |
updateView(boolean deselect,
KiemTableViewer viewerParam)
Updates the table if it is not busy. |
void |
updateViewAsync()
Updates the table view asynchronously from within another thread. |
void |
updateViewAsyncKeepSelection()
Updates the table view asynchronously from within another thread. |
void |
updateViewSync()
Updates the table view synchronously from within another thread. |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, 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, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
public static final String VIEW_ID
Constructor Detail |
---|
public KiemView()
Method Detail |
---|
public KiemPlugin getKIEMInstance()
public static KiemView getInstance()
public static void bringToFront()
public void createPartControl(Composite parentParam)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
public KiemTableViewer createPartControl2(Composite parentParam, KiemTableViewer viewerParam)
parentParam
- the parent paramviewerParam
- the viewer param
public void createColumns(KiemTableViewer viewerParam)
viewerParam
- the viewerpublic void showWarning(String message)
message
- the message to presentpublic void showError(String message)
message
- the message to presentpublic void setAllEnabled(boolean enabled)
enabled
- the new enabled statuspublic void setAllEnabled(boolean enabled, KiemTableViewer viewerParam)
enabled
- the new enabled statusviewerParam
- the viewer parampublic void updateEnabledEnabledDisabledUpDownAddDelete()
public void updateEnabledEnabledDisabledUpDownAddDelete(KiemTableViewer viewerParam)
viewerParam
- the viewer parampublic void updateViewSync()
public void updateViewAsync()
public void updateViewAsyncKeepSelection()
public void updateStepsAsync()
protected void updateView(boolean deselect)
deselect
- a table entrypublic void updateView(boolean deselect, KiemTableViewer viewerParam)
deselect
- a table entryviewerParam
- the viewerpublic AimedStepDurationTextField getAimedStepDurationTextField()
public void setFocus()
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
public void setFocus(KiemTableViewer viewerParam)
viewerParam
- the new focuspublic void doSave(IProgressMonitor monitor)
doSave
in interface ISaveablePart
public void doSaveAs()
doSaveAs
in interface ISaveablePart
public boolean isDirty()
isDirty
in interface ISaveablePart
public void setDirty(boolean isDirtyParam)
isDirtyParam
- the new dirtypublic boolean isSaveAsAllowed()
isSaveAsAllowed
in interface ISaveablePart
public boolean isSaveOnCloseNeeded()
isSaveOnCloseNeeded
in interface ISaveablePart
public int promptToSaveOnClose()
promptToSaveOnClose
in interface ISaveablePart2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |