|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Toolbar size - Recompiling of org-netbeans-core-windows.jarHi All
Reposting - Sorry as i did not get any reply for my previous mail, i'm resending my query. I need to change the file windowmanager.wswmgr to set the size of toolbar to small(16) on RCP application startup. I'm using NetbeansIDE 5.5 and the default value there is 24. Following are the different approaches to achieve this and is provided in netbeans forums. We tried all these and the first three approaches failed. 4 option are listed below. 1. Modifying the branding - As mentioned in http://thread.gmane.org/gmane.comp.java.netbeans.modules.openide.devel/14929/focus=15058 Result :- On running the application the toolbar size was large(24). Sometime changes to 16 2. Modifying the windowmanager.wswmgr and registering in the layer.xml Result :- On running the application the toolbar size was large(24). Sometime changes to 16 3. Setting the ToolbarPool.getDefault()
.setPreferredIconSize(16)
Result :- On running the application the toolbar size was large(24) where as the icons showed was small(16). 4. Modifying the org.netbeans.core.windows .resources.windowmanager.windowmanager.wswmgr and recompiling the org-netbeans-core-windows.jar. Result :- Works perfectly Recompiling of org-netbeans-core-windows.jar So(based on Option 4) modified the org.netbeans.core.windows.resources.windowmanager.windowmanager.wswmgr in the "Core - Windows" module of the Netbeans source code. And recompiled the jar(org-netbeans-core-windows.jar) which result in consistent behavior of showing small toolbar on deleting(of netbeans.user folder) and running. Original statement in org.netbeans.core.windows.resources.windowmanager.windowmanager.wswmgr file - line number:24 :- <toolbar configuration="Standard" preferred-icon-size="24" /> was changed to <toolbar configuration="Standard" preferred-icon-size="16" /> Is this modification acceptable according to NetBeans CDDL licence agreement? What are all the steps i need to ensure for this? Can i bundle the recompiled/modified jar in my commercial application? Modified file is uploaded with this email. Thanks, Sarjay |
|
|
Re: Toolbar size - Recompiling of org-netbeans-core-windows.jarSarjay CS wrote:
> Hi All > > Reposting - Sorry as i did not get any reply for my previous mail, i'm resending my query. > > I need to change the file windowmanager.wswmgr to set the size of > toolbar to small(16) on RCP application startup. > I'm using NetbeansIDE 5.5 and the default value there is 24. > > Following are the different approaches to achieve this and is provided > in netbeans forums. We tried all these and the first three approaches > failed. > 4 option are listed below. > > 1. Modifying the branding - > As mentioned in > http://thread.gmane.org/gmane.comp.java.netbeans.modules.openide.devel/14929/focus=15058 > Result :- On running the application the toolbar size was large(24). > Sometime changes to 16 > > 2. Modifying the windowmanager.wswmgr and registering in the layer.xml > Result :- On running the application the toolbar size was large(24). > Sometime changes to 16 (core.window i think) to ensure that layer files are loaded in correct order. stan > > 3. Setting the ToolbarPool.getDefault() > .setPreferredIconSize(16) > Result :- On running the application the toolbar size was large(24) > where as the icons showed was small(16). > > 4. Modifying the org.netbeans.core.windows > .resources.windowmanager.windowmanager.wswmgr and recompiling the > org-netbeans-core-windows.jar. > Result :- Works perfectly > > *Recompiling of org-netbeans-core-windows.jar* > > So(based on Option 4) modified the > org.netbeans.core.windows.resources.windowmanager.windowmanager.wswmgr > in the "Core - Windows" module of the Netbeans source code. And > recompiled the jar(org-netbeans-core-windows.jar) which result in > consistent behavior of showing small toolbar on deleting(of > netbeans.user folder) and running. > > Original statement in > org.netbeans.core.windows.resources.windowmanager.windowmanager.wswmgr > file - line number:24 :- > <toolbar configuration="Standard" preferred-icon-size="24" /> > > was changed to > > <toolbar configuration="Standard" preferred-icon-size="16" /> > > Is this modification acceptable according to NetBeans CDDL licence > agreement? > What are all the steps i need to ensure for this? Can i bundle the > recompiled/modified jar in my commercial application? > > Modified file is uploaded with this email. > > Thanks, > Sarjay |
| Free Forum Powered by Nabble | Forum Help |