Revision as of 21:46, 3 May 2013 by Markiewb (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

How do I make a checkable action that represents a preference option?

See org-openide-awt/org.openide.awt.Actions.checkbox(...)

Here an example for a checkable action which represents the state of the "ignoreCase" property within the property file "org/netbeans/modules/"

   <folder name="Actions">
       <folder name="Diff">
           <file name="toggle-ignore-case-diff-option.instance">
               <attr bundlevalue="org.netbeans.modules.diff.Bundle#CTL_IgnoreCaseOptionAction" name="displayName"/>
               <attr name="Name" stringvalue="toggle-ignore-case-diff-option"/>
               <attr name="preferencesNode" stringvalue="/org/netbeans/modules/diff" />
               <attr name="preferencesKey" stringvalue="ignoreCase"/>
               <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.checkbox"/>

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo