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
Matt Stone is currently offline Matt StoneFriend
Messages: 46
Registered: August 2014
Member
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
Jad El-khoury is currently offline Jad El-khouryFriend
Messages: 31
Registered: August 2015
Member
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
Matt Stone is currently offline Matt StoneFriend
Messages: 46
Registered: August 2014
Member
Great! Thank you!
Previous Topic:Simple OSLC spec?
Next Topic:OSLC resource type generator?
Goto Forum:
  


Current Time: Sun Sep 23 06:31:39 GMT 2018

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

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

Back to the top