diff options
author | Tor Norbye <tnorbye@google.com> | 2014-07-25 13:10:36 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2014-07-25 13:10:36 -0700 |
commit | e5266e2343c8d275d79fa0be725180d0fe3a993c (patch) | |
tree | 0ba72f5de1949e0527874a799baa224cbe1537e0 /platform/util/src/com/intellij/openapi/util/registry/ui/RegistryCheckBox.java | |
parent | b03a5855292feb8c331815f883fe64372aacd872 (diff) | |
parent | 2e5965e996aad62ab1338b09d54caaf99ff3dd6a (diff) | |
download | idea-e5266e2343c8d275d79fa0be725180d0fe3a993c.tar.gz |
Merge remote-tracking branch 'aosp/upstream-master' into merge
Conflicts:
.idea/modules.xml
Change-Id: I5e3d04bc83cdc26b2b56fca66b44b1dd8941b143
Diffstat (limited to 'platform/util/src/com/intellij/openapi/util/registry/ui/RegistryCheckBox.java')
-rw-r--r-- | platform/util/src/com/intellij/openapi/util/registry/ui/RegistryCheckBox.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/platform/util/src/com/intellij/openapi/util/registry/ui/RegistryCheckBox.java b/platform/util/src/com/intellij/openapi/util/registry/ui/RegistryCheckBox.java index 657f8dd85a38..ffc664eacab1 100644 --- a/platform/util/src/com/intellij/openapi/util/registry/ui/RegistryCheckBox.java +++ b/platform/util/src/com/intellij/openapi/util/registry/ui/RegistryCheckBox.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,7 @@ import org.jetbrains.annotations.Nullable; import javax.swing.*; public class RegistryCheckBox extends CheckBoxWithDescription { - - private RegistryValue myValue; + private final RegistryValue myValue; public RegistryCheckBox(RegistryValue value) { this(value, value.getDescription(), null); @@ -31,6 +30,7 @@ public class RegistryCheckBox extends CheckBoxWithDescription { public RegistryCheckBox(RegistryValue value, String text, @Nullable String longDescription) { super(new JCheckBox(text), longDescription); + myValue = value; getCheckBox().setSelected(myValue.asBoolean()); } @@ -42,5 +42,4 @@ public class RegistryCheckBox extends CheckBoxWithDescription { public void save() { myValue.setValue(Boolean.valueOf(getCheckBox().isSelected()).toString()); } - }
\ No newline at end of file |