Last change
on this file since 3734 was 3730, checked in by bastiK, 13 years ago |
improve migration when remotecontrol plugin is removed (set remotecontol.enabled=yes) (see also #5748)
|
-
Property svn:eol-style
set to
native
|
File size:
474 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.preferences;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.Main;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * captures the common functionality of preference properties
|
---|
8 | */
|
---|
9 | public class AbstractProperty {
|
---|
10 | protected final String key;
|
---|
11 |
|
---|
12 | public AbstractProperty(String key) {
|
---|
13 | this.key = key;
|
---|
14 | }
|
---|
15 |
|
---|
16 | public String getKey() {
|
---|
17 | return key;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public boolean isSet() {
|
---|
21 | return Main.pref.hasKey(key);
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.