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

E13403-03

oracle.jdeveloper.vcs.changelist
Class ChangeListContextMenuListener

java.lang.Object
  extended by oracle.jdeveloper.vcs.changelist.ChangeListContextMenuListener
All Implemented Interfaces:
ContextMenuListener
Direct Known Subclasses:
ChangeSetChangeList.ChangeSetContextMenuListener

public class ChangeListContextMenuListener
extends java.lang.Object
implements ContextMenuListener

Context menu listener class for a ChangeList.


Constructor Summary
ChangeListContextMenuListener(ChangeList changeList)
           
 
Method Summary
protected  void addCategoryMenuItems(ContextMenu popup)
           
protected  void addMenuItemCompare(ContextMenu popup)
           
protected  void addMenuItemCopyFileList(ContextMenu popup)
           
protected  void addMenuItemPreferences(ContextMenu popup)
           
protected  void addMenuItemRefresh(ContextMenu popup)
           
protected  void addMenuItemSelectInNavigator(ContextMenu popup)
           
 ChangeList getChangeList()
           
protected  IdeAction getDefaultAction()
           
protected  IdeAction getDefaultAction(Context context)
           
protected  IdeAction getLocalAction(Context context, int cmdId)
           
protected  IdeAction getLocalAction(ContextMenu popup, int cmdId)
           
protected  Locatable[] getLocatableSelection(Context context)
           
 boolean handleDefaultAction(Context context)
          Called when the user double clicks on an item that has a context menu.
protected  boolean handleDefaultActionImpl(Context context)
           
 void menuWillHide(ContextMenu popup)
          This method is called just before a showing context menu is dismissed.
 void menuWillShow(ContextMenu popup)
          Called just before the context menu is shown.
protected  void menuWillShowImpl(ContextMenu popup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeListContextMenuListener

public ChangeListContextMenuListener(ChangeList changeList)
Method Detail

getChangeList

public ChangeList getChangeList()

handleDefaultAction

public boolean handleDefaultAction(Context context)
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.

handleDefaultActionImpl

protected boolean handleDefaultActionImpl(Context context)

getDefaultAction

protected IdeAction getDefaultAction(Context context)

getDefaultAction

protected IdeAction getDefaultAction()

menuWillHide

public void menuWillHide(ContextMenu popup)
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:
popup - the context menu being hidden

menuWillShow

public void menuWillShow(ContextMenu popup)
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

addCategoryMenuItems

protected void addCategoryMenuItems(ContextMenu popup)

menuWillShowImpl

protected void menuWillShowImpl(ContextMenu popup)

addMenuItemCopyFileList

protected final void addMenuItemCopyFileList(ContextMenu popup)

addMenuItemSelectInNavigator

protected final void addMenuItemSelectInNavigator(ContextMenu popup)

addMenuItemRefresh

protected final void addMenuItemRefresh(ContextMenu popup)

addMenuItemCompare

protected final void addMenuItemCompare(ContextMenu popup)

addMenuItemPreferences

protected final void addMenuItemPreferences(ContextMenu popup)

getLocalAction

protected IdeAction getLocalAction(ContextMenu popup,
                                   int cmdId)

getLocalAction

protected IdeAction getLocalAction(Context context,
                                   int cmdId)

getLocatableSelection

protected final Locatable[] getLocatableSelection(Context context)

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.