Last change
on this file since 11995 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.
|
---|
2 | package org.openstreetmap.josm.plugins;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
|
---|
5 | import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Preference settings factory for plugins.
|
---|
9 | * @since 1742
|
---|
10 | */
|
---|
11 | public 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.