Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.jdevimpl.esdk.migration
Class MigrationContextMenuListener

java.lang.Object
  extended by oracle.jdevimpl.esdk.migration.MigrationContextMenuListener
All Implemented Interfaces:
ContextMenuListener

public final class MigrationContextMenuListener
extends java.lang.Object
implements ContextMenuListener

Context menu listener for migration tools.


Constructor Summary
MigrationContextMenuListener()
           
 
Method Summary
 boolean handleDefaultAction(Context context)
          Called when the user double clicks on an item that has a context menu.
 void menuWillHide(ContextMenu contextMenu)
          This method is called just before a showing context menu is dismissed.
 void menuWillShow(ContextMenu popup)
          Called just before the context menu is shown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationContextMenuListener

public MigrationContextMenuListener()
Method Detail

menuWillShow

public void menuWillShow(ContextMenu popup)
Description copied from interface: ContextMenuListener
Called just before the context menu is shown. Implementations should add their items to the context menu here.

Specified by:
menuWillShow in interface ContextMenuListener
Parameters:
popup - the context menu being shown

menuWillHide

public void menuWillHide(ContextMenu contextMenu)
Description copied from interface: ContextMenuListener
This method is called just before a showing context menu is dismissed. Most implementations should not do anything in this method. In particular, it is not necessary to clean out menu items or submenus that were added during ContextMenuListener.menuWillShow(oracle.ide.controller.ContextMenu), since the IDE takes care of that automatically.

Specified by:
menuWillHide in interface ContextMenuListener
Parameters:
contextMenu - the context menu being hidden

handleDefaultAction

public boolean handleDefaultAction(Context context)
Description copied from interface: ContextMenuListener
Called when the user double clicks on an item that has a context menu. If the listener handles the action, then it must return true; otherwise it must return false. Processing of handleDefaultAction stops on the first return of true.

Specified by:
handleDefaultAction in interface ContextMenuListener
Parameters:
context - the context on which the default action needs to occur.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.