org.eclipse.emf.mwe.internal.ui.debug.breakpoint.actions
Class BreakpointActionGroup

java.lang.Object
  extended by org.eclipse.ui.actions.ActionGroup
      extended by org.eclipse.emf.mwe.internal.ui.debug.breakpoint.actions.BreakpointActionGroup

public class BreakpointActionGroup
extends org.eclipse.ui.actions.ActionGroup

Action group with 2 actions: "Toggle Breakpoints" and "Enable/Disable Breakpoints".
Despite of usual breakpoint actions these actions can be used not only for vertical ruler context menu (incl. double click), but also for editor context menu. That way "in line" breakpoints can be handled.


Constructor Summary
BreakpointActionGroup(org.eclipse.ui.editors.text.TextEditor editor)
           
 
Method Summary
 void dispose()
           
 void fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
           
 int getLastSelectedLine()
           
 int getLastSelectedOffset()
           
 int getOffsetAtLine(int line)
           
 boolean isRulerSelected()
           
 
Methods inherited from class org.eclipse.ui.actions.ActionGroup
fillActionBars, getContext, setContext, updateActionBars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreakpointActionGroup

public BreakpointActionGroup(org.eclipse.ui.editors.text.TextEditor editor)
Method Detail

isRulerSelected

public boolean isRulerSelected()

getLastSelectedLine

public int getLastSelectedLine()

getLastSelectedOffset

public int getLastSelectedOffset()

getOffsetAtLine

public int getOffsetAtLine(int line)

fillContextMenu

public void fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
Overrides:
fillContextMenu in class org.eclipse.ui.actions.ActionGroup

dispose

public void dispose()
Overrides:
dispose in class org.eclipse.ui.actions.ActionGroup