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

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.Breakpoint
          extended by com.aptana.ide.debug.internal.core.model.JSDebugExceptionBreakpoint
All Implemented Interfaces:
IJSExceptionBreakpoint, org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IBreakpoint

public class JSDebugExceptionBreakpoint
extends org.eclipse.debug.core.model.Breakpoint
implements IJSExceptionBreakpoint

Author:
Max Stepanov

Field Summary
 
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED
 
Constructor Summary
JSDebugExceptionBreakpoint()
          Default constructor is required for the breakpoint manager to re-create persisted breakpoints.
JSDebugExceptionBreakpoint(org.eclipse.core.resources.IResource resource, java.lang.String exceptionTypeName)
          Constructs a exception breakpoint on the given resource for the given exception type name.
JSDebugExceptionBreakpoint(org.eclipse.core.resources.IResource resource, java.lang.String exceptionTypeName, java.util.Map attributes, boolean register)
          Constructs a exception breakpoint on the given resource for the given exception type name.
JSDebugExceptionBreakpoint(IUniformResource resource, java.lang.String exceptionTypeName)
          JSDebugExceptionBreakpoint
JSDebugExceptionBreakpoint(IUniformResource resource, java.lang.String exceptionTypeName, java.util.Map attributes, boolean register)
          JSDebugExceptionBreakpoint
 
Method Summary
 java.lang.String getExceptionTypeName()
          getExceptionTypeName
 java.lang.String getModelIdentifier()
           
 
Methods inherited from class org.eclipse.debug.core.model.Breakpoint
delete, ensureMarker, equals, getMarker, getMarkerRule, getMarkerRule, hashCode, isEnabled, isPersisted, isRegistered, markerExists, run, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setEnabled, setMarker, setPersisted, setRegistered
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.debug.core.model.IBreakpoint
delete, getMarker, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

JSDebugExceptionBreakpoint

public JSDebugExceptionBreakpoint()
Default constructor is required for the breakpoint manager to re-create persisted breakpoints. After instantiating a breakpoint, the setMarker(...) method is called to restore this breakpoint's attributes.


JSDebugExceptionBreakpoint

public JSDebugExceptionBreakpoint(org.eclipse.core.resources.IResource resource,
                                  java.lang.String exceptionTypeName)
                           throws org.eclipse.core.runtime.CoreException
Constructs a exception breakpoint on the given resource for the given exception type name.

Parameters:
resource - file on which to set the breakpoint
exceptionTypeName -
Throws:
org.eclipse.core.runtime.CoreException - if unable to create the breakpoint

JSDebugExceptionBreakpoint

public JSDebugExceptionBreakpoint(IUniformResource resource,
                                  java.lang.String exceptionTypeName)
                           throws org.eclipse.core.runtime.CoreException
JSDebugExceptionBreakpoint

Parameters:
resource -
exceptionTypeName -
Throws:
org.eclipse.core.runtime.CoreException

JSDebugExceptionBreakpoint

public JSDebugExceptionBreakpoint(org.eclipse.core.resources.IResource resource,
                                  java.lang.String exceptionTypeName,
                                  java.util.Map attributes,
                                  boolean register)
                           throws org.eclipse.core.runtime.CoreException
Constructs a exception breakpoint on the given resource for the given exception type name.

Parameters:
resource - file on which to set the breakpoint
exceptionTypeName -
attributes - the marker attributes to set
register - whether to add this breakpoint to the breakpoint manager
Throws:
org.eclipse.core.runtime.CoreException - if unable to create the breakpoint

JSDebugExceptionBreakpoint

public JSDebugExceptionBreakpoint(IUniformResource resource,
                                  java.lang.String exceptionTypeName,
                                  java.util.Map attributes,
                                  boolean register)
                           throws org.eclipse.core.runtime.CoreException
JSDebugExceptionBreakpoint

Parameters:
resource -
exceptionTypeName -
attributes -
register -
Throws:
org.eclipse.core.runtime.CoreException
Method Detail

getModelIdentifier

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

getExceptionTypeName

public java.lang.String getExceptionTypeName()
                                      throws org.eclipse.core.runtime.CoreException
Description copied from interface: IJSExceptionBreakpoint
getExceptionTypeName

Specified by:
getExceptionTypeName in interface IJSExceptionBreakpoint
Returns:
String
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IJSExceptionBreakpoint.getExceptionTypeName()