TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.instrumentation.ui.internal.control.provider.application
Class TIInstrumentAgentControlProvider.TIInstrumentAgentStateModifier

java.lang.Object
  extended by org.eclipse.tptp.platform.instrumentation.ui.internal.control.provider.application.TIInstrumentAgentControlProvider.TIInstrumentAgentStateModifier
All Implemented Interfaces:
org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier
Enclosing class:
TIInstrumentAgentControlProvider

public static class TIInstrumentAgentControlProvider.TIInstrumentAgentStateModifier
extends java.lang.Object
implements org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier

The actual state modifier for the TI agent. This is a singleton class that should be accessed via the getInstance method. All public methods of this class are synchornized.


Method Summary
 void attach()
           
 boolean canAttach()
           
 boolean canDetach()
           
 boolean canPause()
           
 boolean canResume()
           
 void detach()
           
static TIInstrumentAgentControlProvider.TIInstrumentAgentStateModifier getInstance()
          Return the only instance of this class
 void pauseMonitoring()
           
 void setInput(org.eclipse.jface.viewers.StructuredSelection input)
           
 void startMonitoring()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TIInstrumentAgentControlProvider.TIInstrumentAgentStateModifier getInstance()
Return the only instance of this class

Returns:
The instance of this singleton class

canAttach

public boolean canAttach()
Specified by:
canAttach in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier

canDetach

public boolean canDetach()
Specified by:
canDetach in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier

canPause

public boolean canPause()
Specified by:
canPause in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier

canResume

public boolean canResume()
Specified by:
canResume in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier

attach

public void attach()
            throws org.eclipse.core.runtime.CoreException
Specified by:
attach in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier
Throws:
org.eclipse.core.runtime.CoreException

detach

public void detach()
            throws org.eclipse.core.runtime.CoreException
Specified by:
detach in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier
Throws:
org.eclipse.core.runtime.CoreException

pauseMonitoring

public void pauseMonitoring()
                     throws org.eclipse.core.runtime.CoreException
Specified by:
pauseMonitoring in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier
Throws:
org.eclipse.core.runtime.CoreException

startMonitoring

public void startMonitoring()
                     throws org.eclipse.core.runtime.CoreException
Specified by:
startMonitoring in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier
Throws:
org.eclipse.core.runtime.CoreException

setInput

public void setInput(org.eclipse.jface.viewers.StructuredSelection input)
Specified by:
setInput in interface org.eclipse.tptp.trace.ui.provisional.control.provider.IAgentStateModifier

TPTP 4.5.0 Platform Project
Internal API Specification