Dynamic @OslcDialog property editing? [message #1765028] |
Mon, 05 June 2017 19:52  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03210 seconds