com.aptana.ide.debug.internal.core.model
Class JSDebugProcess

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by com.aptana.ide.debug.internal.core.model.JSDebugProcess
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.model.IProcess, org.eclipse.debug.core.model.ITerminate

public class JSDebugProcess
extends org.eclipse.core.runtime.PlatformObject
implements org.eclipse.debug.core.model.IProcess, org.eclipse.debug.core.IDebugEventSetListener

Author:
Max Stepanov

Field Summary
 
Fields inherited from interface org.eclipse.debug.core.model.IProcess
ATTR_CMDLINE, ATTR_PROCESS_LABEL, ATTR_PROCESS_TYPE
 
Constructor Summary
JSDebugProcess(org.eclipse.debug.core.ILaunch launch, java.lang.String label, java.util.Map attributes)
          JSDebugProcess
 
Method Summary
 boolean canTerminate()
           
protected  void fireChangeEvent()
          fireChangeEvent
protected  void fireCreationEvent()
          fireCreationEvent
protected  void fireEvent(org.eclipse.debug.core.DebugEvent event)
          fireEvent
protected  void fireTerminateEvent()
          fireTerminateEvent
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getAttribute(java.lang.String key)
           
 java.io.OutputStream getErrorStream()
          getErrorStream
 int getExitValue()
           
 java.lang.String getLabel()
           
 org.eclipse.debug.core.ILaunch getLaunch()
           
 java.io.OutputStream getOutputStream()
          getOutputStream
 org.eclipse.debug.core.model.IStreamsProxy getStreamsProxy()
           
 void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
           
 boolean isTerminated()
           
 void setAttribute(java.lang.String key, java.lang.String value)
           
protected  void setDebugTarget(org.eclipse.debug.core.model.IDebugTarget debugTarget)
          setDebugTarget
protected  void setXHRService(IXHRService xhrService)
          setXHRService
 void terminate()
           
protected  void throwDebugException(java.lang.Exception exception)
          throwDebugException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSDebugProcess

public JSDebugProcess(org.eclipse.debug.core.ILaunch launch,
                      java.lang.String label,
                      java.util.Map attributes)
JSDebugProcess

Parameters:
launch -
label -
attributes -
Method Detail

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.getLabel()

getLaunch

public org.eclipse.debug.core.ILaunch getLaunch()
Specified by:
getLaunch in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.getLaunch()

getStreamsProxy

public org.eclipse.debug.core.model.IStreamsProxy getStreamsProxy()
Specified by:
getStreamsProxy in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.getStreamsProxy()

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.String value)
Specified by:
setAttribute in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.setAttribute(java.lang.String, java.lang.String)

getAttribute

public java.lang.String getAttribute(java.lang.String key)
Specified by:
getAttribute in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.getAttribute(java.lang.String)

getExitValue

public int getExitValue()
                 throws org.eclipse.debug.core.DebugException
Specified by:
getExitValue in interface org.eclipse.debug.core.model.IProcess
Throws:
org.eclipse.debug.core.DebugException
See Also:
IProcess.getExitValue()

canTerminate

public boolean canTerminate()
Specified by:
canTerminate in interface org.eclipse.debug.core.model.ITerminate
See Also:
ITerminate.canTerminate()

isTerminated

public boolean isTerminated()
Specified by:
isTerminated in interface org.eclipse.debug.core.model.ITerminate
See Also:
ITerminate.isTerminated()

terminate

public void terminate()
               throws org.eclipse.debug.core.DebugException
Specified by:
terminate in interface org.eclipse.debug.core.model.ITerminate
Throws:
org.eclipse.debug.core.DebugException
See Also:
ITerminate.terminate()

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class org.eclipse.core.runtime.PlatformObject
See Also:
IAdaptable.getAdapter(java.lang.Class)

fireCreationEvent

protected void fireCreationEvent()
fireCreationEvent


fireTerminateEvent

protected void fireTerminateEvent()
fireTerminateEvent


fireChangeEvent

protected void fireChangeEvent()
fireChangeEvent


fireEvent

protected void fireEvent(org.eclipse.debug.core.DebugEvent event)
fireEvent

Parameters:
event -

throwDebugException

protected void throwDebugException(java.lang.Exception exception)
                            throws org.eclipse.debug.core.DebugException
throwDebugException

Parameters:
exception -
Throws:
org.eclipse.debug.core.DebugException

getOutputStream

public java.io.OutputStream getOutputStream()
getOutputStream

Returns:
OutputStream

getErrorStream

public java.io.OutputStream getErrorStream()
getErrorStream

Returns:
OutputStream

setDebugTarget

protected void setDebugTarget(org.eclipse.debug.core.model.IDebugTarget debugTarget)
setDebugTarget

Parameters:
debugTarget -

setXHRService

protected void setXHRService(IXHRService xhrService)
setXHRService

Parameters:
xhrService -

handleDebugEvents

public void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
Specified by:
handleDebugEvents in interface org.eclipse.debug.core.IDebugEventSetListener
See Also:
IDebugEventSetListener.handleDebugEvents(org.eclipse.debug.core.DebugEvent[])