Question on installJideExtension method

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Question on installJideExtension method

Postby kirillcool » Sat Jul 26, 2008 11:55 pm

To prevent JIDE from overriding the menu UI delegates, i use the LookAndFeelFactory.installJideExtension(LookAndFeelFactory.XERTO_STYLE_WITHOUT_MENU) call. However, i see that the JIDE components have the following check in their updateUI method:

if (UIDefaultsLookup.get(uiClassID) == null) {
LookAndFeelFactory.installJideExtension();
}

This means that if i run under a custom LAF that doesn't provide the UI delegates for *all* JIDE components used in the application, the component which is not painted by that LAF will effectively result in JIDE installing its own menu UI delegates.

Is this a correct conclusion, and if so, what can i do to make sure that applications can use early drops of Substance plugin and still have the menus painted by Substance?

Thanks
Kirill
kirillcool
 
Posts: 19
Joined: Wed Sep 21, 2005 12:45 am

Postby JIDE Support » Sun Jul 27, 2008 8:09 am

You can fix it by calling LookAndFeelFactory.setDefaultStyle(LookAndFeelFactory.XERTO_STYLE_WITHOUT_MENU). With this call, installJideExtension(no parameter) will use this style.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Postby kirillcool » Sun Jul 27, 2008 10:37 am

Thanks, David
kirillcool
 
Posts: 19
Joined: Wed Sep 21, 2005 12:45 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 77 guests