Re: Disable area description in property window

Jean-Marc Borer <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CADAUzb=ay1wBP4yH52d8z8HjhVt_imLs3Fzr63Snm98YqfnMbg@mail.gmail.com>
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?
>
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.