TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.hyades.trace.views.internal
Class SinglePattern

java.lang.Object
  extended by org.eclipse.hyades.trace.views.internal.AbstractLazyHandler
      extended by org.eclipse.hyades.trace.views.internal.SinglePattern
All Implemented Interfaces:
java.util.EventListener, org.eclipse.hyades.trace.ui.IViewSelectionChangedListener, ITimeChangedListener, org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.swt.events.ControlListener, org.eclipse.swt.internal.SWTEventListener

public class SinglePattern
extends AbstractLazyHandler
implements ITimeChangedListener, org.eclipse.swt.events.ControlListener, org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.hyades.trace.ui.IViewSelectionChangedListener


Field Summary
protected  SinglePatternTab _tabItem
           
protected  org.eclipse.swt.custom.ViewForm dataPane
           
protected  org.eclipse.jface.action.Separator fSeparator
           
protected  float MAG_STEP
           
protected  org.eclipse.swt.widgets.Composite viewComp
           
protected  org.eclipse.swt.widgets.Composite viewContainer
           
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.AbstractLazyHandler
LAZY_HANDLE_SELECTION_EVENT, LAZY_HANDLE_VIEWER_SELECTION_EVENT, LAZY_REFRESH, LAZY_UPDATE, LAZY_UPDATE_BUTTONS, LAZY_UPDATE_UI, LAZY_UPDATE_WITH_REFRESH, lazyOperations, lazySelectionEventSource
 
Constructor Summary
SinglePattern(org.eclipse.swt.widgets.Composite parent, SinglePatternTab tabItem)
           
SinglePattern(org.eclipse.swt.widgets.Composite parent, SinglePatternTab tabItem, boolean lazyMode)
           
 
Method Summary
 void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
          Adds a listener for selection changes in this selection provider.
 void controlMoved(org.eclipse.swt.events.ControlEvent e)
           
 void controlResized(org.eclipse.swt.events.ControlEvent event)
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
protected  void doHandleSelectionEvent(boolean isPostponedOperation, int processedOperations)
           
protected  void doHandleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event, boolean isPostponedOperation, int processedOperations)
           
protected  void doRefresh(boolean isPostponedOperation, int processedOperations)
           
protected  void doUpdate(boolean redraw, boolean isPostponedOperation, int processedOperations)
           
protected  void doUpdateButtons(boolean isPostponedOperation, int processedOperations)
           
protected  void doUpdateUI(boolean isPostponedOperation, int processedOperations)
           
 void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
          This method should fill (or update) the given menu.
 JCanvas getCanvas()
           
 org.eclipse.swt.widgets.Control getControl()
          Insert the method's description here.
 org.eclipse.jface.viewers.ISelection getSelection()
          Returns the current selection for this provider.
 SinglePatternTab getTabItem()
           
 void handleTimeChangedEvent()
           
 void handleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event)
           
 void initialize()
          Insert the method's description here.
 boolean isCalleeEnabled()
           
 boolean isCallerEnabled()
           
protected  boolean isHandleSelectionEventNeeded(java.lang.Object source)
           
 boolean isNextEnabled()
           
 boolean isOpenSourceEnabled()
           
 boolean isPreviousEnabled()
           
 void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
          Called when the context menu is about to open.
 void next()
          Insert the method's description here.
 void openSource()
          Insert the method's description here.
 void previous()
          Insert the method's description here.
 void refresh()
           
 void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
          Removes the given selection change listener from this selection provider.
 void resizeContent()
          Insert the method's description here.
 void selectionChanged()
           
 void setSelection(org.eclipse.jface.viewers.ISelection selection)
          Sets the current selection for this selection provider.
 void showCallee()
          Insert the method's description here.
 void showCaller()
          Insert the method's description here.
 void update()
          Insert the method's description here.
 void update(boolean redraw)
          Insert the method's description here.
 void updateButtons()
           
 void updateStatus(java.lang.String status)
           
 void updateTitle(java.lang.String title)
           
 void updateUI()
          Insert the method's description here.
 void zoomIn(boolean zoom)
          Insert the method's description here.
 void zoomOut(boolean zoom)
          Insert the method's description here.
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.AbstractLazyHandler
addPostponedSelectionEventSource, checkSetLazyOperation, checkSetLazyUpdateOperation, checkSetLazyViewerSelectionOperation, doProcessLazyPostponedOperations, handleHidden, handleSelectionEvent, handleVisible, isLazyMode, isVisible, lazyHandlesOpType, nextPostponedSelectionEventSource, processLazyPostponedOperations, setHidden, setLazyMode, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAG_STEP

protected final float MAG_STEP
See Also:
Constant Field Values

_tabItem

protected SinglePatternTab _tabItem

viewContainer

protected org.eclipse.swt.widgets.Composite viewContainer

dataPane

protected org.eclipse.swt.custom.ViewForm dataPane

viewComp

protected org.eclipse.swt.widgets.Composite viewComp

fSeparator

protected org.eclipse.jface.action.Separator fSeparator
Constructor Detail

SinglePattern

public SinglePattern(org.eclipse.swt.widgets.Composite parent,
                     SinglePatternTab tabItem)

SinglePattern

public SinglePattern(org.eclipse.swt.widgets.Composite parent,
                     SinglePatternTab tabItem,
                     boolean lazyMode)
Method Detail

controlMoved

public void controlMoved(org.eclipse.swt.events.ControlEvent e)
Specified by:
controlMoved in interface org.eclipse.swt.events.ControlListener

controlResized

public void controlResized(org.eclipse.swt.events.ControlEvent event)
Specified by:
controlResized in interface org.eclipse.swt.events.ControlListener

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Parameters:
parent - org.eclipse.swt.widgets.Composite

dispose

public void dispose()

fillContextMenu

public void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
This method should fill (or update) the given menu. It is called just before the menu opens.


getControl

public org.eclipse.swt.widgets.Control getControl()
Insert the method's description here. Creation date: (1/10/2001 2:33:22 PM)

Returns:
org.eclipse.swt.widgets.Control

initialize

public void initialize()
Insert the method's description here. Creation date: (06/15/2000 3:55:00 PM)


menuAboutToShow

public void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Called when the context menu is about to open.

See Also:
IFillMenuTarget#fillContextMenu

next

public void next()
Insert the method's description here. Creation date: (1/11/2001 5:07:13 PM)


openSource

public void openSource()
Insert the method's description here. Creation date: (8/21/2001 6:31:49 PM)


previous

public void previous()
Insert the method's description here. Creation date: (1/11/2001 5:07:13 PM)


resizeContent

public void resizeContent()
Insert the method's description here. Creation date: (10/17/2000 2:08:36 PM)


showCallee

public void showCallee()
Insert the method's description here. Creation date: (6/6/2001 5:21:34 PM)


showCaller

public void showCaller()
Insert the method's description here. Creation date: (6/6/2001 5:21:34 PM)


update

public void update()
Insert the method's description here. Creation date: (08/14/2000 5:45:18 PM)

Overrides:
update in class AbstractLazyHandler

update

public void update(boolean redraw)
Insert the method's description here. Creation date: (08/14/2000 5:45:18 PM)

Overrides:
update in class AbstractLazyHandler

doUpdate

protected void doUpdate(boolean redraw,
                        boolean isPostponedOperation,
                        int processedOperations)
Specified by:
doUpdate in class AbstractLazyHandler

updateButtons

public void updateButtons()
Overrides:
updateButtons in class AbstractLazyHandler

doUpdateButtons

protected void doUpdateButtons(boolean isPostponedOperation,
                               int processedOperations)
Specified by:
doUpdateButtons in class AbstractLazyHandler

isPreviousEnabled

public boolean isPreviousEnabled()

isNextEnabled

public boolean isNextEnabled()

isCallerEnabled

public boolean isCallerEnabled()

isCalleeEnabled

public boolean isCalleeEnabled()

isOpenSourceEnabled

public boolean isOpenSourceEnabled()

updateStatus

public void updateStatus(java.lang.String status)

updateTitle

public void updateTitle(java.lang.String title)

updateUI

public void updateUI()
Insert the method's description here. Creation date: (1/11/2001 5:07:13 PM)

Overrides:
updateUI in class AbstractLazyHandler

doUpdateUI

protected void doUpdateUI(boolean isPostponedOperation,
                          int processedOperations)
Specified by:
doUpdateUI in class AbstractLazyHandler

zoomIn

public void zoomIn(boolean zoom)
Insert the method's description here. Creation date: (1/11/2001 5:07:13 PM)


zoomOut

public void zoomOut(boolean zoom)
Insert the method's description here. Creation date: (1/11/2001 5:07:13 PM)


handleTimeChangedEvent

public void handleTimeChangedEvent()
Specified by:
handleTimeChangedEvent in interface ITimeChangedListener

getTabItem

public SinglePatternTab getTabItem()

refresh

public void refresh()
Overrides:
refresh in class AbstractLazyHandler

doRefresh

protected void doRefresh(boolean isPostponedOperation,
                         int processedOperations)
Specified by:
doRefresh in class AbstractLazyHandler

selectionChanged

public void selectionChanged()

doHandleSelectionEvent

protected void doHandleSelectionEvent(boolean isPostponedOperation,
                                      int processedOperations)
Specified by:
doHandleSelectionEvent in class AbstractLazyHandler

addSelectionChangedListener

public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.

Specified by:
addSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
Parameters:
listener - a selection changed listener

getSelection

public org.eclipse.jface.viewers.ISelection getSelection()
Returns the current selection for this provider.

Specified by:
getSelection in interface org.eclipse.jface.viewers.ISelectionProvider
Returns:
the current selection

removeSelectionChangedListener

public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
Removes the given selection change listener from this selection provider. Has no affect if an identical listener is not registered.

Specified by:
removeSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
Parameters:
listener - a selection changed listener

setSelection

public void setSelection(org.eclipse.jface.viewers.ISelection selection)
Sets the current selection for this selection provider.

Specified by:
setSelection in interface org.eclipse.jface.viewers.ISelectionProvider
Parameters:
selection - the new selection

getCanvas

public JCanvas getCanvas()
Returns:

handleViewSelectionChangedEvent

public void handleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event)
Specified by:
handleViewSelectionChangedEvent in interface org.eclipse.hyades.trace.ui.IViewSelectionChangedListener
Overrides:
handleViewSelectionChangedEvent in class AbstractLazyHandler

doHandleViewSelectionChangedEvent

protected void doHandleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event,
                                                 boolean isPostponedOperation,
                                                 int processedOperations)
Specified by:
doHandleViewSelectionChangedEvent in class AbstractLazyHandler

isHandleSelectionEventNeeded

protected boolean isHandleSelectionEventNeeded(java.lang.Object source)
Overrides:
isHandleSelectionEventNeeded in class AbstractLazyHandler

TPTP 4.5.0 Platform Project
Internal API Specification