001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.plugins;
003
004import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
005import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
006
007public class PluginPreferenceFactory implements PreferenceSettingFactory {
008
009    private final PluginProxy plugin;
010
011    public PluginPreferenceFactory(PluginProxy plugin) {
012        this.plugin = plugin;
013    }
014
015    @Override
016    public PreferenceSetting createPreferenceSetting() {
017        return plugin.getPreferenceSetting();
018    }
019
020}