TPTP 4.5.0 Platform Project
Internal API Specification

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

java.lang.Object
  extended by org.eclipse.hyades.trace.views.internal.AbstractLazyHandler
All Implemented Interfaces:
org.eclipse.hyades.trace.ui.IViewSelectionChangedListener
Direct Known Subclasses:
Pattern, SinglePattern, StatisticView

public abstract class AbstractLazyHandler
extends java.lang.Object
implements org.eclipse.hyades.trace.ui.IViewSelectionChangedListener


Field Summary
protected static int LAZY_HANDLE_SELECTION_EVENT
           
protected static int LAZY_HANDLE_VIEWER_SELECTION_EVENT
           
protected static int LAZY_REFRESH
           
protected static int LAZY_UPDATE
           
protected static int LAZY_UPDATE_BUTTONS
           
protected static int LAZY_UPDATE_UI
           
protected static int LAZY_UPDATE_WITH_REFRESH
           
protected  int lazyOperations
           
protected  java.lang.Object lazySelectionEventSource
           
 
Constructor Summary
AbstractLazyHandler(boolean lazyMode)
           
 
Method Summary
protected  void addPostponedSelectionEventSource(java.lang.Object source)
           
protected  boolean checkSetLazyOperation(int opType)
           
protected  boolean checkSetLazyUpdateOperation(boolean refresh)
           
protected  boolean checkSetLazyViewerSelectionOperation(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event)
           
protected abstract  void doHandleSelectionEvent(boolean isPostponedOperation, int processedOperations)
           
protected abstract  void doHandleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event, boolean isPostponedOperation, int processedOperations)
           
protected  void doProcessLazyPostponedOperations()
           
protected abstract  void doRefresh(boolean isPostponedOperation, int processedOperations)
           
protected abstract  void doUpdate(boolean refresh, boolean isPostponedOperation, int processedOperations)
           
protected abstract  void doUpdateButtons(boolean isPostponedOperation, int processedOperations)
           
protected abstract  void doUpdateUI(boolean isPostponedOperation, int processedOperations)
           
protected  void handleHidden()
           
protected  void handleSelectionEvent()
           
 void handleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event)
           
protected  void handleVisible()
           
protected  boolean isHandleSelectionEventNeeded(java.lang.Object source)
           
 boolean isLazyMode()
           
protected  boolean isVisible()
           
protected  boolean lazyHandlesOpType(int opType)
           
protected  java.lang.Object nextPostponedSelectionEventSource()
           
protected  void processLazyPostponedOperations()
           
 void refresh()
           
 void setHidden()
          this method is called by the framework to notify the view that it has become hidden
 void setLazyMode(boolean lazy)
           
 void setVisible()
          this method is called by the framework to notify the view that it has become visible
 void update()
           
 void update(boolean refresh)
           
protected  void updateButtons()
           
 void updateUI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAZY_UPDATE

protected static final int LAZY_UPDATE
See Also:
Constant Field Values

LAZY_UPDATE_BUTTONS

protected static final int LAZY_UPDATE_BUTTONS
See Also:
Constant Field Values

LAZY_HANDLE_SELECTION_EVENT

protected static final int LAZY_HANDLE_SELECTION_EVENT
See Also:
Constant Field Values

LAZY_HANDLE_VIEWER_SELECTION_EVENT

protected static final int LAZY_HANDLE_VIEWER_SELECTION_EVENT
See Also:
Constant Field Values

LAZY_UPDATE_WITH_REFRESH

protected static final int LAZY_UPDATE_WITH_REFRESH
See Also:
Constant Field Values

LAZY_UPDATE_UI

protected static final int LAZY_UPDATE_UI
See Also:
Constant Field Values

LAZY_REFRESH

protected static final int LAZY_REFRESH
See Also:
Constant Field Values

lazyOperations

protected int lazyOperations

lazySelectionEventSource

protected java.lang.Object lazySelectionEventSource
Constructor Detail

AbstractLazyHandler

public AbstractLazyHandler(boolean lazyMode)
Method Detail

checkSetLazyViewerSelectionOperation

protected final boolean checkSetLazyViewerSelectionOperation(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event)

addPostponedSelectionEventSource

protected void addPostponedSelectionEventSource(java.lang.Object source)

isHandleSelectionEventNeeded

protected boolean isHandleSelectionEventNeeded(java.lang.Object source)

nextPostponedSelectionEventSource

protected java.lang.Object nextPostponedSelectionEventSource()

lazyHandlesOpType

protected boolean lazyHandlesOpType(int opType)

checkSetLazyOperation

protected final boolean checkSetLazyOperation(int opType)

isLazyMode

public boolean isLazyMode()

setLazyMode

public void setLazyMode(boolean lazy)

processLazyPostponedOperations

protected final void processLazyPostponedOperations()

doProcessLazyPostponedOperations

protected void doProcessLazyPostponedOperations()

isVisible

protected final boolean isVisible()

setVisible

public final void setVisible()
this method is called by the framework to notify the view that it has become visible

See Also:
setHidden()

setHidden

public final void setHidden()
this method is called by the framework to notify the view that it has become hidden

See Also:
setVisible()

handleVisible

protected void handleVisible()

handleHidden

protected void handleHidden()

checkSetLazyUpdateOperation

protected final boolean checkSetLazyUpdateOperation(boolean refresh)

update

public void update()

update

public void update(boolean refresh)

updateButtons

protected void updateButtons()

handleSelectionEvent

protected void handleSelectionEvent()

handleViewSelectionChangedEvent

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

updateUI

public void updateUI()

refresh

public void refresh()

doUpdate

protected abstract void doUpdate(boolean refresh,
                                 boolean isPostponedOperation,
                                 int processedOperations)

doUpdateButtons

protected abstract void doUpdateButtons(boolean isPostponedOperation,
                                        int processedOperations)

doHandleSelectionEvent

protected abstract void doHandleSelectionEvent(boolean isPostponedOperation,
                                               int processedOperations)

doHandleViewSelectionChangedEvent

protected abstract void doHandleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event,
                                                          boolean isPostponedOperation,
                                                          int processedOperations)

doUpdateUI

protected abstract void doUpdateUI(boolean isPostponedOperation,
                                   int processedOperations)

doRefresh

protected abstract void doRefresh(boolean isPostponedOperation,
                                  int processedOperations)

TPTP 4.5.0 Platform Project
Internal API Specification