com.pvx.ooadide.launchers.debug.model
Class PvxLineBreakpointAdapter

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.Breakpoint
          extended by org.eclipse.debug.core.model.LineBreakpoint
              extended by com.pvx.ooadide.launchers.debug.model.PvxLineBreakpointAdapter
All Implemented Interfaces:
IPVXEventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IBreakpoint, org.eclipse.debug.core.model.ILineBreakpoint

public class PvxLineBreakpointAdapter
extends org.eclipse.debug.core.model.LineBreakpoint
implements IPVXEventListener

Adapter to create breakpoints in PVX files.


Field Summary
 
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED
 
Constructor Summary
PvxLineBreakpointAdapter()
           
 
Method Summary
 boolean canToggleLineBreakpoints(org.eclipse.ui.texteditor.ITextEditor editor, org.eclipse.jface.text.ITextSelection selection)
           
 java.lang.String getModelIdentifier()
           
 void handleEvent(java.lang.String event)
          Notification the given event occurred in the target program being interpretted.
 void install(PVXDebugTarget target)
          Installs this breakpoint in the given interprettor.
 boolean isRunToLineBreakpoint()
          Returns whether this breakpoint is a run-to-line breakpoint
 void remove(PVXDebugTarget target)
          Removes this breakpoint from the given interprettor.
 void toggleLineBreakpoints(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
 
Methods inherited from class org.eclipse.debug.core.model.LineBreakpoint
getCharEnd, getCharStart, getLineNumber
 
Methods inherited from class org.eclipse.debug.core.model.Breakpoint
delete, equals, getMarker, hashCode, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
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

PvxLineBreakpointAdapter

public PvxLineBreakpointAdapter()
Method Detail

toggleLineBreakpoints

public void toggleLineBreakpoints(org.eclipse.ui.IWorkbenchPart part,
                                  org.eclipse.jface.viewers.ISelection selection)
                           throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

isRunToLineBreakpoint

public boolean isRunToLineBreakpoint()
Returns whether this breakpoint is a run-to-line breakpoint

Returns:
whether this breakpoint is a run-to-line breakpoint

install

public void install(PVXDebugTarget target)
             throws org.eclipse.core.runtime.CoreException
Installs this breakpoint in the given interprettor. Registeres this breakpoint as an event listener in the given target and creates the breakpoint specific request.

Parameters:
target - PVX interprettor
Throws:
org.eclipse.core.runtime.CoreException - if installation fails

remove

public void remove(PVXDebugTarget target)
            throws org.eclipse.core.runtime.CoreException
Removes this breakpoint from the given interprettor. Removes this breakpoint as an event listener and clears the request for the interprettor.

Parameters:
target - PVX interprettor
Throws:
org.eclipse.core.runtime.CoreException - if removal fails

handleEvent

public void handleEvent(java.lang.String event)
Description copied from interface: IPVXEventListener
Notification the given event occurred in the target program being interpretted.

Specified by:
handleEvent in interface IPVXEventListener
Parameters:
event - the event

getModelIdentifier

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

canToggleLineBreakpoints

public boolean canToggleLineBreakpoints(org.eclipse.ui.texteditor.ITextEditor editor,
                                        org.eclipse.jface.text.ITextSelection selection)