|
Last change
on this file was 17314, checked in by Don-vip, 6 years ago |
|
see #7548 - make clear which preferences settings allow new tabs from plugins. Make color preferences extensible. Hide tab area if a single tab is defined.
|
-
Property svn:eol-style
set to
native
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | // License: GPL. For details, see LICENSE file.
|
|---|
| 2 | package org.openstreetmap.josm.gui.preferences.display;
|
|---|
| 3 |
|
|---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
|---|
| 5 | import static org.openstreetmap.josm.tools.I18n.trc;
|
|---|
| 6 |
|
|---|
| 7 | import org.openstreetmap.josm.gui.help.HelpUtil;
|
|---|
| 8 | import org.openstreetmap.josm.gui.preferences.ExtensibleTabPreferenceSetting;
|
|---|
| 9 | import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
|
|---|
| 10 | import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
|
|---|
| 11 |
|
|---|
| 12 | /**
|
|---|
| 13 | * Display preferences (various settings that influence the visual representation of the whole program).
|
|---|
| 14 | * @since 4969
|
|---|
| 15 | */
|
|---|
| 16 | public final class DisplayPreference extends ExtensibleTabPreferenceSetting {
|
|---|
| 17 |
|
|---|
| 18 | /**
|
|---|
| 19 | * Factory used to create a new {@code DisplayPreference}.
|
|---|
| 20 | */
|
|---|
| 21 | public static class Factory implements PreferenceSettingFactory {
|
|---|
| 22 | @Override
|
|---|
| 23 | public PreferenceSetting createPreferenceSetting() {
|
|---|
| 24 | return new DisplayPreference();
|
|---|
| 25 | }
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | private DisplayPreference() {
|
|---|
| 29 | super(/* ICON(preferences/) */ "display", trc("gui", "Display"),
|
|---|
| 30 | tr("Various settings that influence the visual representation of the whole program."), false);
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | @Override
|
|---|
| 34 | public boolean ok() {
|
|---|
| 35 | return false;
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | @Override
|
|---|
| 39 | public String getHelpContext() {
|
|---|
| 40 | return HelpUtil.ht("/Preferences/Display");
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 | @Override
|
|---|
| 44 | protected boolean canBeHidden() {
|
|---|
| 45 | return true;
|
|---|
| 46 | }
|
|---|
| 47 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.