public enum GUIMenuCmd extends Enum<GUIMenuCmd> implements GUICommand
Enum Constant and Description |
---|
C_ABOUT
Shows the "about" information.
|
C_CLOSE
Closes the database.
|
C_COLOR
Color schema.
|
C_COMMENT
Adds or removes a comment.
|
C_COMMUNITY
Opens the community web page.
|
C_COPY
Copies the currently marked nodes.
|
C_COPYPATH
Copies the current path to the clipboard.
|
C_CREATE
Opens a dialog to create a new database.
|
C_DELETE
Deletes the currently marked nodes.
|
C_EDIT
Opens a dialog to edit the currently marked nodes.
|
C_EDITCLOSE
Closes the current editor file.
|
C_EDITNEW
Creates a new file in the editor.
|
C_EDITOPEN
Opens a new file in the editor.
|
C_EDITREOPEN
Reverts the current editor file.
|
C_EDITSAVE
Saves the current file in the editor.
|
C_EDITSAVEAS
Saves the current editor file under a new name.
|
C_EXIT
Exits the application.
|
C_EXPORT
Exports a database.
|
C_FILESEARCH
Finds files.
|
C_FILTER
Filters the currently marked nodes.
|
C_FONTS
Changes the fonts.
|
C_FORMAT
Formats text in the editor.
|
C_FULL
Fullscreen mode.
|
C_GOBACK
Goes one step back.
|
C_GOFORWARD
Goes one step forward.
|
C_GOHOME
Goes to the root node.
|
C_GOUP
Goes one level up.
|
C_HELP
Shows the documentation web page.
|
C_HOME
Displays the root node in the text view.
|
C_INFO
Shows database info.
|
C_INSERT
Inserts new nodes.
|
C_JUMPFILE
Jumps to the currently edited file.
|
C_NEXTERROR
Jumps to the next error.
|
C_OPEN_MANAGE
Opens a dialog to manage databases.
|
C_PACKAGES
Repository manager.
|
C_PASTE
Pastes the copied nodes.
|
C_PREFS
Shows a preference dialog.
|
C_RTEXEC
Realtime execution on/off.
|
C_RTFILTER
Realtime filtering on/off.
|
C_SHOWBUTTONS
Shows the buttons.
|
C_SHOWEDITOR
Shows the XQuery view.
|
C_SHOWEXPLORE
Shows the explorer view.
|
C_SHOWFOLDER
Shows the tree view.
|
C_SHOWINFO
Shows info.
|
C_SHOWINPUT
Show Input Field.
|
C_SHOWMAP
Shows the map.
|
C_SHOWPLOT
Shows the plot view.
|
C_SHOWPROJECT
Shows the XQuery project structure.
|
C_SHOWRESULT
Shows the text view.
|
C_SHOWSTATUS
Shows the status bar.
|
C_SHOWTABLE
Shows the table view.
|
C_SHOWTREE
Shows the tree view.
|
C_SORT
Sorts text.
|
C_UPDATES
Opens the update web page.
|
SEPARATOR
Modifier and Type | Method and Description |
---|---|
boolean |
enabled(GUI gui)
Checks if the command is currently enabled.
|
String |
label()
Returns the command label.
|
boolean |
selected(GUI gui)
Checks if the command is currently selected.
|
String |
shortCut()
Returns a shortcut.
|
Object |
shortcuts()
Returns the command shortcuts.
|
boolean |
toggle()
Indicates if this is a command that can be turned on and off.
|
static GUIMenuCmd |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GUIMenuCmd[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
execute
public static final GUIMenuCmd C_CREATE
public static final GUIMenuCmd C_OPEN_MANAGE
public static final GUIMenuCmd C_INFO
public static final GUIMenuCmd C_EXPORT
public static final GUIMenuCmd C_CLOSE
public static final GUIMenuCmd C_EDITNEW
public static final GUIMenuCmd C_EDITOPEN
public static final GUIMenuCmd C_EDITREOPEN
public static final GUIMenuCmd C_EDITSAVE
public static final GUIMenuCmd C_EDITSAVEAS
public static final GUIMenuCmd C_EDITCLOSE
public static final GUIMenuCmd C_NEXTERROR
public static final GUIMenuCmd C_COMMENT
public static final GUIMenuCmd C_FORMAT
public static final GUIMenuCmd C_SORT
public static final GUIMenuCmd C_EXIT
public static final GUIMenuCmd C_COPYPATH
public static final GUIMenuCmd C_COPY
public static final GUIMenuCmd C_PASTE
public static final GUIMenuCmd C_DELETE
public static final GUIMenuCmd C_INSERT
public static final GUIMenuCmd C_EDIT
public static final GUIMenuCmd C_FILTER
public static final GUIMenuCmd C_SHOWEDITOR
public static final GUIMenuCmd C_JUMPFILE
public static final GUIMenuCmd C_FILESEARCH
public static final GUIMenuCmd C_SHOWPROJECT
public static final GUIMenuCmd C_SHOWINFO
public static final GUIMenuCmd C_PACKAGES
public static final GUIMenuCmd C_SHOWBUTTONS
public static final GUIMenuCmd C_SHOWINPUT
public static final GUIMenuCmd C_SHOWSTATUS
public static final GUIMenuCmd C_SHOWRESULT
public static final GUIMenuCmd C_SHOWMAP
public static final GUIMenuCmd C_SHOWTREE
public static final GUIMenuCmd C_SHOWFOLDER
public static final GUIMenuCmd C_SHOWPLOT
public static final GUIMenuCmd C_SHOWTABLE
public static final GUIMenuCmd C_SHOWEXPLORE
public static final GUIMenuCmd C_FULL
public static final GUIMenuCmd C_RTEXEC
public static final GUIMenuCmd C_RTFILTER
public static final GUIMenuCmd C_COLOR
public static final GUIMenuCmd C_FONTS
public static final GUIMenuCmd C_PREFS
public static final GUIMenuCmd C_HELP
public static final GUIMenuCmd C_COMMUNITY
public static final GUIMenuCmd C_UPDATES
public static final GUIMenuCmd C_ABOUT
public static final GUIMenuCmd C_GOBACK
public static final GUIMenuCmd C_GOFORWARD
public static final GUIMenuCmd C_GOUP
public static final GUIMenuCmd C_GOHOME
public static final GUIMenuCmd C_HOME
public static GUIMenuCmd[] values()
for (GUIMenuCmd c : GUIMenuCmd.values()) System.out.println(c);
public static GUIMenuCmd valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean enabled(GUI gui)
GUICommand
enabled
in interface GUICommand
gui
- reference to the main windowpublic boolean selected(GUI gui)
GUICommand
selected
in interface GUICommand
gui
- reference to the main windowpublic final String label()
GUICommand
label
in interface GUICommand
public final boolean toggle()
GUICommand
toggle
in interface GUICommand
public String shortCut()
GUICommand
shortCut
in interface GUICommand
public Object shortcuts()
GUICommand
shortcuts
in interface GUICommand
Copyright © 2005–2015 BaseX Team. All rights reserved.