|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dsto.dfc.swt.commands.CommandRegistry
public final class CommandRegistry
Registry of view to group mappings for commands.
Constructor Summary | |
---|---|
CommandRegistry()
|
Method Summary | |
---|---|
static String |
getDisplayName(Command command)
|
static String |
getDisplayName(Command command,
boolean compact)
Return the name that should be displayed for a command, taking into account whether the command is interactive. |
static String |
getGroupInView(String view,
Command command)
|
static char |
getMenuMnemonic(String menuName)
Get the default mnemonic that should be used for menu titles. |
static String |
getShortName(Command command)
Get the short version of a command name eg 'file.Open' becomes 'Open'. |
static String[] |
splitGroup(String group)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandRegistry()
Method Detail |
---|
public static String getGroupInView(String view, Command command)
public static String[] splitGroup(String group)
public static String getDisplayName(Command command)
public static String getDisplayName(Command command, boolean compact)
command
- The command.compact
- If true, the display name is made more compact by omitting
the "..." for interactive commands.
public static String getShortName(Command command)
public static char getMenuMnemonic(String menuName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |