source: josm/trunk/src/org/openstreetmap/josm/plugins/PluginPreferenceFactory.java@ 13165

Last change on this file since 13165 was 11344, checked in by Don-vip, 7 years ago

javadoc

  • Property svn:eol-style set to native
File size: 736 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.plugins;
3
4import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
5import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
6
7/**
8 * Preference settings factory for plugins.
9 * @since 1742
10 */
11public class PluginPreferenceFactory implements PreferenceSettingFactory {
12
13 private final PluginProxy plugin;
14
15 /**
16 * Constructs a new {@code PluginPreferenceFactory}.
17 * @param plugin plugin proxy
18 */
19 public PluginPreferenceFactory(PluginProxy plugin) {
20 this.plugin = plugin;
21 }
22
23 @Override
24 public PreferenceSetting createPreferenceSetting() {
25 return plugin.getPreferenceSetting();
26 }
27
28}
Note: See TracBrowser for help on using the repository browser.