projectviewer.vpt
Class VPTContextMenu

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended byprojectviewer.vpt.VPTContextMenu
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener

public class VPTContextMenu
extends java.awt.event.MouseAdapter

A handler for context menu requests on the tree, providing node-sensitive functionality.

Version:
$Id: VPTContextMenu.java 7186 2006-10-07 19:39:14Z ezust $
Author:
Marcelo Vanzin

Constructor Summary
VPTContextMenu(ProjectViewer viewer)
          Constructs a listener that will ask the provided viewer instance for information about the nodes clicked.
 
Method Summary
 void mousePressed(java.awt.event.MouseEvent me)
          Context-menus are shown on the "pressed" event.
 void mouseReleased(java.awt.event.MouseEvent me)
          Context-menus are shown on the "pressed" event.
static void registerAction(Action action)
          Deprecated. Use the property system to add context menu actions.
static void registerActions(org.gjt.sp.jedit.PluginJAR jar)
          Registers actions from the given plugin.
static void unregisterAction(Action action)
          Deprecated. Use the property system to add context menu actions.
static void unregisterActions(org.gjt.sp.jedit.PluginJAR jar)
          Removes all actions from the given plugin.
static void userMenuChanged()
          Updates "lastMod" so that the menu is rebuilt at the next invocation.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VPTContextMenu

public VPTContextMenu(ProjectViewer viewer)
Constructs a listener that will ask the provided viewer instance for information about the nodes clicked.

Method Detail

registerAction

public static void registerAction(Action action)
Deprecated. Use the property system to add context menu actions.

Adds an action to be shown on the context menu. Actions are shown in the same order as they are registered.


unregisterAction

public static void unregisterAction(Action action)
Deprecated. Use the property system to add context menu actions.

Removes an action from the context menu.


unregisterActions

public static void unregisterActions(org.gjt.sp.jedit.PluginJAR jar)
Removes all actions from the given plugin.


registerActions

public static void registerActions(org.gjt.sp.jedit.PluginJAR jar)
Registers actions from the given plugin.


userMenuChanged

public static void userMenuChanged()
Updates "lastMod" so that the menu is rebuilt at the next invocation.


mousePressed

public void mousePressed(java.awt.event.MouseEvent me)
Context-menus are shown on the "pressed" event.


mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Context-menus are shown on the "pressed" event.