Last change
on this file since 6084 was 6084, checked in by bastiK, 11 years ago |
see #8902 - add missing @Override annotations (patch by shinigami)
|
File size:
1.2 KB
|
Line | |
---|
1 | //License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
2 | package org.openstreetmap.josm.gui.preferences.map;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import javax.swing.JTabbedPane;
|
---|
7 |
|
---|
8 | import org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting;
|
---|
9 | import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
|
---|
10 | import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
|
---|
11 | import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
|
---|
12 | import org.openstreetmap.josm.tools.GBC;
|
---|
13 |
|
---|
14 | public class MapPreference extends DefaultTabPreferenceSetting {
|
---|
15 | public static class Factory implements PreferenceSettingFactory {
|
---|
16 | @Override
|
---|
17 | public PreferenceSetting createPreferenceSetting() {
|
---|
18 | return new MapPreference();
|
---|
19 | }
|
---|
20 | }
|
---|
21 |
|
---|
22 | private MapPreference() {
|
---|
23 | super("map", tr("Map Settings"), tr("Settings for the map projection and data interpretation."), false, new JTabbedPane());
|
---|
24 | }
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public boolean ok() {
|
---|
28 | return false;
|
---|
29 | }
|
---|
30 |
|
---|
31 | @Override
|
---|
32 | public void addGui(PreferenceTabbedPane gui) {
|
---|
33 | gui.createPreferenceTab(this).add(getTabPane(), GBC.eol().fill(GBC.BOTH));
|
---|
34 | }
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.