More than one CUSTOM view (SDK)

Are you missing a feature? Request its implementation here.
nithril
Posts: 12
Joined: Sun Feb 27, 2011 10:30 am

More than one CUSTOM view (SDK)

Post by nithril »

Hello,

I want to create more than one custom view which will contains differents domains of the same business logic.

I'm not able with the current SDK to add more than one custom view.

Do you plan to add this type of feature ?

Regards,

Nicolas
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: More than one CUSTOM view (SDK)

Post by Radu »

Hi Nicolas,

For now there is a single custom view to which you can provide custom content. We plan to increase the number of custom views and toolbars to which you can contribute.

But what you can do for now:
From the ViewComponentCustomizer you can contribute to an already existing Oxygen view by overwriting its content (and title, icon) with your own content. So you can choose an Oxygen view which is not usually used and replace its content with your own.
Example:

Code: Select all


      pluginWorkspaceAccess.addViewComponentCustomizer(new ViewComponentCustomizer() {
/**
* @see ro.sync.exml.workspace.api.standalone.ViewComponentCustomizer#customizeView(ro.sync.exml.workspace.api.standalone.ViewInfo)
*/
public void customizeView(ViewInfo viewInfo) {
if("Dynamic_Help".equals(viewInfo.getViewID())) {
viewInfo.setTitle("MY VIEW");
viewInfo.setComponent(new JLabel("My content"));
}
}
});
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
nithril
Posts: 12
Joined: Sun Feb 27, 2011 10:30 am

Re: More than one CUSTOM view (SDK)

Post by nithril »

Hi Radu,

Thanks for your answer. I will test it. :)

Regards,

Nicolas
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: More than one CUSTOM view (SDK)

Post by Radu »

Hi,

Oxygen 12.2 which will be available in a couple of weeks will allow you to contribute multiple views and toolbars from a Workspace Access plugin by registering extensions in the plugin.xml descriptor.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
nithril
Posts: 12
Joined: Sun Feb 27, 2011 10:30 am

Re: More than one CUSTOM view (SDK)

Post by nithril »

Great news! It will simplify development.

Regards,

Nicolas
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: More than one CUSTOM view (SDK)

Post by Radu »

Hi Nicolas,

My post was quite old, Oxygen 12.2 (+ SDK) is already available, we are getting close to releasing Oxygen 13 so you can test the new functionality right away.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
nithril
Posts: 12
Joined: Sun Feb 27, 2011 10:30 am

Re: More than one CUSTOM view (SDK)

Post by nithril »

Radu wrote:Hi Nicolas,

My post was quite old, Oxygen 12.2 (+ SDK) is already available, we are getting close to releasing Oxygen 13 so you can test the new functionality right away.

Regards,
Radu
Sorry for the delay I forgot to enable email notification.

Ironically I open this post to past it to a colleague in order to show him that Oxygen cannot handle more than one custom view.

But I'm wrong, Oyxgen 12.2 now handles this feature. I will read more cautiously the release notes. :D

Great works!

Nicolas
Post Reply