Crossfire JXClient, Trunk
com.realtime.crossfire.jxclient.window.ShortcutsLoader Class Reference

Manages shortcuts. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.window.ShortcutsLoader:

Static Public Member Functions

static void loadShortcuts (@NotNull final Shortcuts shortcuts, @NotNull final CharSequence hostname, @NotNull final CharSequence character)
 Load shortcut info from the backing file. More...
 
static void saveShortcuts (@NotNull final Path file, @NotNull final Iterable< Shortcut > shortcuts)
 Save all shortcut info to the backing file. More...
 

Private Member Functions

 ShortcutsLoader ()
 Private constructor to prevent instantiation. More...
 

Detailed Description

Manages shortcuts.

Author
Andreas Kirschbaum

Definition at line 42 of file ShortcutsLoader.java.

Constructor & Destructor Documentation

◆ ShortcutsLoader()

com.realtime.crossfire.jxclient.window.ShortcutsLoader.ShortcutsLoader ( )
private

Private constructor to prevent instantiation.

Definition at line 47 of file ShortcutsLoader.java.

Member Function Documentation

◆ loadShortcuts()

static void com.realtime.crossfire.jxclient.window.ShortcutsLoader.loadShortcuts ( @NotNull final Shortcuts  shortcuts,
@NotNull final CharSequence  hostname,
@NotNull final CharSequence  character 
)
static

Load shortcut info from the backing file.

Parameters
shortcutsthe shortcuts instance to update
hostnamethe current hostname
characterthe current character name

Definition at line 56 of file ShortcutsLoader.java.

References com.realtime.crossfire.jxclient.settings.Filenames.getShortcutsFile().

Referenced by com.realtime.crossfire.jxclient.window.JXCConnection.setCharacter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveShortcuts()

static void com.realtime.crossfire.jxclient.window.ShortcutsLoader.saveShortcuts ( @NotNull final Path  file,
@NotNull final Iterable< Shortcut shortcuts 
)
static

Save all shortcut info to the backing file.

Parameters
filethe backing file
shortcutsthe shortcuts instance to save

Definition at line 90 of file ShortcutsLoader.java.

Referenced by com.realtime.crossfire.jxclient.shortcuts.Shortcuts.setShortcutString().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: