public class PreferencesAction extends JosmAction implements Runnable
JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter| Modifier and Type | Field and Description |
|---|---|
private Class<? extends SubPreferenceSetting> |
subTab |
private Class<? extends TabPreferenceSetting> |
tab |
scchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Modifier | Constructor and Description |
|---|---|
|
PreferencesAction()
Create the preference action with "Preferences" as label.
|
private |
PreferencesAction(String name,
String icon,
String tooltip,
Class<? extends TabPreferenceSetting> tab,
Class<? extends SubPreferenceSetting> subTab) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Launch the preferences dialog.
|
static PreferencesAction |
forPreferenceSubTab(String name,
String tooltip,
Class<? extends SubPreferenceSetting> subTab)
Returns a new
PreferenceAction opening preferences dialog directly to the given subtab, with default icon. |
static PreferencesAction |
forPreferenceSubTab(String name,
String tooltip,
Class<? extends SubPreferenceSetting> subTab,
String icon)
Returns a new
PreferenceAction opening preferences dialog directly to the given subtab, with custom icon. |
static PreferencesAction |
forPreferenceTab(String name,
String tooltip,
Class<? extends TabPreferenceSetting> tab)
Returns a new
PreferenceAction opening preferences dialog directly to the given tab, with default icon. |
static PreferencesAction |
forPreferenceTab(String name,
String tooltip,
Class<? extends TabPreferenceSetting> tab,
String icon)
Returns a new
PreferenceAction opening preferences dialog directly to the given tab, with custom icon. |
void |
run() |
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprivate final Class<? extends TabPreferenceSetting> tab
private final Class<? extends SubPreferenceSetting> subTab
private PreferencesAction(String name, String icon, String tooltip, Class<? extends TabPreferenceSetting> tab, Class<? extends SubPreferenceSetting> subTab)
public PreferencesAction()
public static PreferencesAction forPreferenceTab(String name, String tooltip, Class<? extends TabPreferenceSetting> tab)
PreferenceAction opening preferences dialog directly to the given tab, with default icon.name - The action nametooltip - The action tooltiptab - The preferences tab to selectpublic static PreferencesAction forPreferenceTab(String name, String tooltip, Class<? extends TabPreferenceSetting> tab, String icon)
PreferenceAction opening preferences dialog directly to the given tab, with custom icon.name - The action nametooltip - The action tooltiptab - The preferences tab to selecticon - The action iconpublic static PreferencesAction forPreferenceSubTab(String name, String tooltip, Class<? extends SubPreferenceSetting> subTab)
PreferenceAction opening preferences dialog directly to the given subtab, with default icon.name - The action nametooltip - The action tooltipsubTab - The preferences subtab to selectpublic static PreferencesAction forPreferenceSubTab(String name, String tooltip, Class<? extends SubPreferenceSetting> subTab, String icon)
PreferenceAction opening preferences dialog directly to the given subtab, with custom icon.name - The action nametooltip - The action tooltipsubTab - The preferences subtab to selecticon - The action iconpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListener