|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.vcs.util.VCSMenuUtils
Utility class for initializing and manipulating version control menus.
Constructor Summary | |
VCSMenuUtils()
|
Method Summary | |
static javax.swing.JMenuItem |
addDynamicMenuItem(javax.swing.JMenu menu,
int cmdId,
float section,
Context context)
Create and add a dynamic menu item for the specified command. |
static javax.swing.JMenuItem |
addMenuItem(javax.swing.JMenu menu,
int cmdId,
float section)
Create and add a menu item for the specified command. |
static javax.swing.JMenuItem |
createMenuItem(int cmdId)
Create a menu item for the specified command. |
static javax.swing.JMenuItem |
createMenuItem(int cmdId,
float weight)
Create a menu item for the specified command, with the specified weight. |
static javax.swing.JMenu |
createVersioningSubmenu()
Create the Versioning submenu for the editor or navigator. |
static javax.swing.JMenu |
getMainVersioningMenu()
Get the main, top-level Versioning menu. |
static void |
installCompareMenuItem(int cmdId)
Install a menu item into the Compare With menu. |
static void |
installContextMenuListener(ContextMenuListener listener)
Install the specified context menu listener. |
static void |
installSelectExtensionMenuItem()
Install the standard "Select Extension" menu item at the end of the Versioning menu |
static KeyStrokeContext |
registerKeyStrokes(java.util.Collection actions,
java.lang.String keyStrokeContextName)
Register a key stroke context for the specified collection of actions so that the user can define accelerators from Tools->Preferences. |
static void |
uninstallCompareMenuItem(int cmdId)
Uninstall a menu item into the Compare With menu. |
static void |
uninstallContextMenuListener(ContextMenuListener listener)
Uninstalls the specified context menu listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VCSMenuUtils()
Method Detail |
public static javax.swing.JMenu getMainVersioningMenu()
public static void installSelectExtensionMenuItem()
public static javax.swing.JMenu createVersioningSubmenu()
public static void installContextMenuListener(ContextMenuListener listener)
listener
- the listener to install.public static void uninstallContextMenuListener(ContextMenuListener listener)
listener
- the listener to uninstall.public static KeyStrokeContext registerKeyStrokes(java.util.Collection actions, java.lang.String keyStrokeContextName)
actions
- the key stroke actions to registerkeyStrokeContextName
- the context name for the key stroke.
public static javax.swing.JMenuItem addMenuItem(javax.swing.JMenu menu, int cmdId, float section)
cmdId
- the command identifier for the menu action to add.menu
- the menu to which the item will be added.section
- the section value.
public static javax.swing.JMenuItem addDynamicMenuItem(javax.swing.JMenu menu, int cmdId, float section, Context context)
menu
- the menu to which the item will be added.cmdId
- the command identifier for the menu action to add.section
- the section value.context
- the current context.
public static javax.swing.JMenuItem createMenuItem(int cmdId)
cmdId
- the command identifier for the menu action to add.
public static javax.swing.JMenuItem createMenuItem(int cmdId, float weight)
cmdId
- the command identifier for the menu action to add.weight
- the weight for the menu item.
public static void installCompareMenuItem(int cmdId)
cmdId
- the command identifier for the compare with menu action.public static void uninstallCompareMenuItem(int cmdId)
cmdId
- the command identifier for the compare with menu action.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.