Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » Dynamic @OslcDialog property editing?(Dynamic @OslcDialog property editing?)
Dynamic @OslcDialog property editing? [message #1765028] Mon, 05 June 2017 19:52 Go to next message
Eclipse UserFriend
The Bugzilla example defines its Delegated UI using the @OslcDialog annotation defined within the services. Is there a way to access those dialogs at run time in order to change a property? For example, the title is hard coded. What If I wanted the title to be based on a Locale? There are other properties I'd like to touch as well.
Re: Dynamic @OslcDialog property editing? [message #1765130 is a reply to message #1765028] Tue, 06 June 2017 21:26 Go to previous messageGo to next message
Eclipse UserFriend
It should to be very possible.
Have a look at the class BugzillaServiceProviderFactory (in package org.eclipse.lyo.oslc4j.bugzilla.servlet), in particular the method createServiceProvider() .
That's where the ServiceProvider is being instantiated based on the annotations.

Once you have this serviceProvider, you can then call serviceProvider.setTitle() to do what you need.

When is that method called? See the ServiceProviderCatalogSingleton class in the same package.
Re: Dynamic @OslcDialog property editing? [message #1765456 is a reply to message #1765130] Fri, 09 June 2017 17:15 Go to previous message
Eclipse UserFriend
Great! Thank you!
Previous Topic:Simple OSLC spec?
Next Topic:OSLC resource type generator?
Goto Forum:
  


Current Time: Fri Feb 14 16:07:11 GMT 2025

Powered by FUDForum. Page generated in 0.03210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top