I seem to have figured out how to fix this.   In the Project tree, I 
right-clicked on <this layer> in my branding module and searched for 
"clipboard".  One file was found called Standard.xml. Interestingly, I couldn't 
find a physical file named Standard.xml anywhere in the project folders using 
Windows search.   I right-clicked on the file and selected Edit.  That opened 
an editor tab that had the following:

<!DOCTYPE Configuration PUBLIC "-//NetBeans IDE//DTD toolbar//EN" 
http://www.netbeans.org/dtds/toolbar.dtd>
<Configuration>
  <Row>
    <Toolbar name="File" />
    <Toolbar name="Clipboard" visible="false"/>
    <Toolbar name="UndoRedo" />
    <Toolbar name="Memory" />
  </Row>

</Configuration>

I modified that file to be:

<Configuration>
  <Row>
    <Toolbar name="File" />
    <Toolbar name="Clipboard" />
    <Toolbar name="UndoRedo" />
    <Toolbar name="Memory" visible="false"/>
  </Row>

And now, after Clean and Build, the Performance tool bar is unchecked, and the 
Clipboard toolbar is checked!  I also noticed that this process created a 
physical file called Standard.xml in the source tree under my branding module 
in the folder where layer.xml and Bundle.properties are located.  I verified 
from my daily computer backup that this file did not exist previously.  So, 
apparently Standard.xml is some kind of default or autogenerated pseudo-file, 
and once the build system determines that it has been modified, a real physical 
file is created.  At least that seems to be what is going on.

Thank You!

Joe Huber
Standard Refrigeration LLC
2005 Reverchon Dr
Arlington, TX  76017
Desk: 608-855-5808
Mobile: 682-777-8374
Email: jhu...@stanref.com

From: Eirik Bakke <eba...@ultorg.com>
Sent: Friday, December 23, 2022 5:49 AM
To: Joseph Huber <jhu...@stanref.com.INVALID>; users@netbeans.apache.org
Subject: RE: Setting default toolbar appearance in Platform App

>From the branding module's layer.xml file, you should be able to do something 
>like this:

<filesystem>
  <!-- To hide the entire toolbar. -->
  <file name="Toolbars_hidden"/>
  <!-- To hide individual toolbar groups. -->
  <folder name="Toolbars">
    <file name="Build_hidden"/>
    <file name="Clipboard_hidden"/>
    <file name="File_hidden"/>
    <file name="UndoRedo_hidden"/>
    <file name="QuickSearch_hidden"/>
    <file name="Memory_hidden"/>
  </folder>
</filesystem>

-- Eirik

From: Joseph Huber 
<jhu...@stanref.com.INVALID<mailto:jhu...@stanref.com.INVALID>>
Sent: Thursday, December 22, 2022 5:46 PM
To: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
Subject: Setting default toolbar appearance in Platform App

Hello!

In the branding module for my Netbeans Platform application, under <this layer 
in context>|Toolbars, I have:  File, Clipboard, Undo/Redo, Performance, and 
Standard.  After a Clean and Build of my app, Clipboard will be turned off in 
the application, and all the others will be on, as shown below.

How can I turn Clipboard on and Performance off as "default", so that after 
Clean and Build, Clipboard will be on, and Performance well be off?  One can 
make this adjustment after the app runs, and the app will remember the Toolbar 
settings upon subsequent restarts, but I would like to set the default 
appearance.  Probably something simple, but I can't seem to find it.

[cid:image001.png@01D916B4.AC098650]

Thank You!

Joe Huber
Standard Refrigeration LLC

Reply via email to