Re: Disable area description in property window
Benno Markiewicz <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAA_aP4hCLG7OhUe9NA6bPRaOJJm+7UZxAGbxJu9KDhCnRP-6kA@mail.gmail.com> |
Thanks Jean-Marc, I created FAQ entries from your response at http://wiki.netbeans.org/NetBeansDeveloperFAQ#Properties_and_PropertySheet With kind regards, markiewb 2016-03-24 15:18 GMT+01:00 Jean-Marc Borer <[email protected]>: > Yes, but by tweaking the preferences of the "showDescriptionArea". In any > layer.xml file (for example the one of branding) add > > <folder name="Preferences"> > <folder name="org"> > <folder name="openide"> > <file name="explorer.properties" > url="explorer.properties"/> > </folder> > </folder> > </folder> > > and then next to your layer.xml file create the explorer.properties that > contains: > > showDescriptionArea=false > sortOrder=0 > > I found this by looking at the PropUtils class in the NBP sources. > > > Additionaly, you can customize your properties by using the setValue > method. > > > http://bits.netbeans.org/dev/javadoc/org-openide-explorer/org/openide/explorer/doc-files/propertyViewCustomization.html > > Example: > > PropertySupport.ReadOnly<String> javaVersionProperty = new > PropertySupport.ReadOnly<String>(RuntimeProxyBean.PROP_VMVERSION, > String.class, "JVM version", "Java VM version") { > > @Override > public String getValue() throws IllegalAccessException, > InvocationTargetException { > return runtimeProxyBean.getVmVersion(); > } > }; > > javaVersionProperty.setValue("suppressCustomEditor", true); > > > On Mon, Mar 21, 2016 at 12:34 PM, rsobies <[email protected]> wrote: > >> hi >> >> is it possible to disable area description in properties window? >> and how to get reference to this window? i cant find doc for this class, >> i guess it is derived from topcomponent? >> >> >> >> >> >