|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| 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
org.eclipse.hyades.trace.ui.TraceViewer
public abstract class TraceViewer
This class defines an abstract base class for viewers shown in the trace model. This is for the profile monitor navigator, log view naviator. Part of TraveViewer in trace.ui: doesn't include: menuAboutToShow, enableEditActions
| Field Summary | |
|---|---|
java.lang.String |
GROUP_ADD_VIEWS
|
java.lang.String |
GROUP_ADDITIONS
|
java.lang.String |
GROUP_GENERIC
|
static java.lang.String |
VIEW_ID
|
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
TraceViewer()
Constructor |
|
| Method Summary | |
|---|---|
void |
addViewPage(org.eclipse.emf.ecore.EObject object)
Add a page to the workbook. |
void |
addViewPage(org.eclipse.emf.ecore.EObject object,
boolean newPage)
Add a page to the workbook. |
boolean |
contextHandlerSelectionChanged()
|
abstract TraceViewerPage |
createPage(org.eclipse.emf.ecore.EObject mofObject)
Creates the TraceViewerPage instance associated with this trace viewer. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
createReportAction()
|
void |
deregister(java.lang.Object obj)
Invoked when a top hierarchy object is deleted from the model. |
void |
dispose()
|
org.eclipse.ui.part.IPage |
getCurrentPage()
Returns the current page in the view |
org.eclipse.ui.part.IPage |
getDefaultPage()
|
java.lang.String |
getDefaultPageMessage()
Returns the default page message. |
org.eclipse.jface.viewers.Viewer[] |
getExportViewer()
|
java.lang.Object |
getModelObject()
|
static org.eclipse.emf.ecore.EObject |
getObjectToView_(org.eclipse.emf.ecore.EObject selObject)
|
org.eclipse.emf.ecore.EObject |
getObjectToView(org.eclipse.emf.ecore.EObject selObject)
Returns the object that should be viewd if true if the selObject is selected in the monitors view For example, if the process node is selected, the view should display the profiling data if trace collects profiling data |
TraceViewerPage |
getPage(org.eclipse.emf.ecore.EObject mofObject)
Returns the TraceViewerPage instance for the given EObject |
java.lang.Object[] |
getViewerControls()
|
java.lang.String |
getViewerTitle()
|
java.lang.String |
getViewID()
|
abstract java.lang.String |
getViewTitle()
Returns the title of the view for this viewer |
void |
handleProfileEvent(ProfileEvent event)
This method applies the appropriate function on this viewer for the given ProfileEvent |
void |
initializeActionBar()
Initializes the action bar for this viewer |
void |
initializedMenu(boolean init)
Sets where the menu has been initialized |
boolean |
isFPartVisible()
|
boolean |
isFRefreshView()
|
boolean |
isInitializedMenu()
Returns whether the menu has been initialized |
boolean |
isProcessRefreshEvents()
Returns true of this viewer processes refresh events. |
boolean |
isSaveNeeded()
Returns true if a save is needed for the view |
void |
loadingTrace()
|
void |
loadingTraceDone()
|
void |
makeActions()
This method is called to create the actions for the viewer |
void |
menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
|
void |
removePage(java.lang.Object obj)
Removes the page associated with the given object |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
Selection has changed in the Monitors view (PDProjectExplorer) |
void |
setFocus()
Requests the part to take focus within the desktop. |
void |
setFPartVisible(boolean partVisible)
|
void |
setFRefreshView(boolean refreshView)
|
void |
setRecordSelection(org.eclipse.emf.ecore.EObject record,
org.eclipse.emf.ecore.EObject treeSel)
Sets the record selection for this viewer |
void |
showPage(org.eclipse.ui.part.IPage page)
Shows the given page |
| Methods inherited from class org.eclipse.ui.part.ViewPart |
|---|
getViewSite, init, init, saveState, setInitializationData |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
public static final java.lang.String VIEW_ID
public final java.lang.String GROUP_ADD_VIEWS
public final java.lang.String GROUP_GENERIC
public final java.lang.String GROUP_ADDITIONS
| Constructor Detail |
|---|
public TraceViewer()
| Method Detail |
|---|
public void loadingTrace()
public void loadingTraceDone()
public void addViewPage(org.eclipse.emf.ecore.EObject object,
boolean newPage)
object - an EObject, the EObject the page will be based onnewPage - a boolean, whether this is a new page to display or notpublic void addViewPage(org.eclipse.emf.ecore.EObject object)
object - an EObject, the EObject the page will be based onpublic org.eclipse.emf.ecore.EObject getObjectToView(org.eclipse.emf.ecore.EObject selObject)
selObject - an EObject
public abstract TraceViewerPage createPage(org.eclipse.emf.ecore.EObject mofObject)
mofObject - an EObject, the object associate with this viewer and page
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)public org.eclipse.ui.part.IPage getCurrentPage()
public TraceViewerPage getPage(org.eclipse.emf.ecore.EObject mofObject)
mofObject - an EObject instance
public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.dispose()public void initializedMenu(boolean init)
init - a booleanpublic boolean isInitializedMenu()
public boolean isSaveNeeded()
public void makeActions()
public void createReportAction()
public void removePage(java.lang.Object obj)
obj - an Objectpublic void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartpublic void showPage(org.eclipse.ui.part.IPage page)
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.ISelectionListenerpublic abstract java.lang.String getViewTitle()
public void handleProfileEvent(ProfileEvent event)
handleProfileEvent in interface IProfileEventListenerevent - a ProfileEvent instancepublic void initializeActionBar()
public void setRecordSelection(org.eclipse.emf.ecore.EObject record,
org.eclipse.emf.ecore.EObject treeSel)
record - an EObject, the recordtreeSel - an EObject, the tree selectionpublic boolean isProcessRefreshEvents()
public void deregister(java.lang.Object obj)
deregister in interface IDeleteListenerpublic boolean isFRefreshView()
public void setFRefreshView(boolean refreshView)
public boolean isFPartVisible()
public void setFPartVisible(boolean partVisible)
public java.lang.Object[] getViewerControls()
getViewerControls in interface IExportViewerpublic java.lang.String getViewerTitle()
getViewerTitle in interface IExportViewerpublic org.eclipse.jface.viewers.Viewer[] getExportViewer()
getExportViewer in interface IExportViewerpublic boolean contextHandlerSelectionChanged()
public java.lang.Object getModelObject()
getModelObject in interface IExportViewerpublic java.lang.String getDefaultPageMessage()
public void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
menuAboutToShow in interface org.eclipse.jface.action.IMenuListenerIMenuListener.menuAboutToShow(org.eclipse.jface.action.IMenuManager)public org.eclipse.ui.part.IPage getDefaultPage()
public java.lang.String getViewID()
public static org.eclipse.emf.ecore.EObject getObjectToView_(org.eclipse.emf.ecore.EObject selObject)
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||