edu.rice.cs.drjava.ui
Class JUnitPanel.JUnitErrorListPane.PopupAdapter
java.lang.Object
java.awt.event.MouseAdapter
edu.rice.cs.util.swing.RightClickMouseAdapter
edu.rice.cs.drjava.ui.JUnitPanel.JUnitErrorListPane.PopupAdapter
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, MouseWheelListener, EventListener
- Enclosing class:
- JUnitPanel.JUnitErrorListPane
private class JUnitPanel.JUnitErrorListPane.PopupAdapter
- extends RightClickMouseAdapter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitPanel.JUnitErrorListPane.PopupAdapter
private JUnitPanel.JUnitErrorListPane.PopupAdapter()
mousePressed
public void mousePressed(MouseEvent e)
- Show popup if the click is on an error.
- Specified by:
mousePressed in interface MouseListener- Overrides:
mousePressed in class RightClickMouseAdapter
- Parameters:
e - the MouseEvent correponding to this click
mouseReleased
public void mouseReleased(MouseEvent e)
- Show popup if the click is on an error.
- Specified by:
mouseReleased in interface MouseListener- Overrides:
mouseReleased in class RightClickMouseAdapter
- Parameters:
e - the MouseEvent correponding to this click
_selectError
private boolean _selectError(MouseEvent e)
- Select the error at the given mouse event.
- Parameters:
e - the MouseEvent correponding to this click
- Returns:
- true iff the mouse click is over an error
_popupAction
protected void _popupAction(MouseEvent e)
- Shows the popup menu for this mouse adapter.
- Specified by:
_popupAction in class RightClickMouseAdapter
- Parameters:
e - the MouseEvent correponding to this click