source: josm/trunk/src/org/openstreetmap/josm/gui/preferences/ServerAccessPreference.java@ 2535

Last change on this file since 2535 was 2017, checked in by Gubaer, 15 years ago

removed OptionPaneUtil
cleanup of deprecated Layer API
cleanup of deprecated APIs in OsmPrimitive and Way
cleanup of imports

  • Property svn:eol-style set to native
File size: 931 bytes
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
2package org.openstreetmap.josm.gui.preferences;
3
4import org.openstreetmap.josm.io.CredentialsManager;
5import org.openstreetmap.josm.io.OsmConnection;
6
7public class ServerAccessPreference implements PreferenceSetting {
8
9 public static class Factory implements PreferenceSettingFactory {
10 public PreferenceSetting createPreferenceSetting() {
11 return new ServerAccessPreference();
12 }
13 }
14
15 /**
16 * Provide username and password input editfields.
17 * Store the values if user hits OK.
18 */
19 private CredentialsManager.PreferenceAdditions credentialsPA = OsmConnection.credentialsManager.newPreferenceAdditions();
20
21 public void addGui(PreferenceDialog gui) {
22 credentialsPA.addPreferenceOptions(gui.connection);
23 }
24
25 public boolean ok() {
26 credentialsPA.preferencesChanged();
27 return false;
28 }
29}
Note: See TracBrowser for help on using the repository browser.