Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Annotation @ConfigPropertyValue
Annotation @ConfigPropertyValue [message #987340] Mon, 26 November 2012 08:44 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 792
Registered: October 2011
Senior Member
On every getConfiguredXxxx() method there is @ConfigPropertyValue annotation...

AbstractForm:
  @ConfigProperty(ConfigProperty.TEXT)
  @Order(90)
  @ConfigPropertyValue("ScoutTexts.get(\"FormSaveChangesQuestion\")")
  protected String getConfiguredCancelVerificationText() {
    return ScoutTexts.get("FormSaveChangesQuestion");
  }


This annotation is defined for methods and is retained at runtime.

Does this annotation always contain the source code of the getConfiguredXxx() method?

What for is this annotation?

Could it be used when source are missing (see this forum post), to compute the default value in the properties view (see comment 10 in bug 394374).
Re: Annotation @ConfigPropertyValue [message #987462 is a reply to message #987340] Mon, 26 November 2012 17:22 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 81
Registered: September 2011
Member
The @ConfigPropertyValue annotation is not used by the Scout SDK. Afaik this annotation is obsolete and will be marked deprecated in the future.
Therefore we will not make use of it for populating the Scout Properties View.

I don't know where this annotation is still in use at the moment.
Re: Annotation @ConfigPropertyValue [message #987566 is a reply to message #987462] Tue, 27 November 2012 08:01 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 792
Registered: October 2011
Senior Member
Matthias Villiger wrote on Mon, 26 November 2012 18:22
The @ConfigPropertyValue annotation is not used by the Scout SDK. Afaik this annotation is obsolete and will be marked deprecated in the future.

I opened Bug 395132 to keep trace of this modification.


Matthias Villiger wrote on Mon, 26 November 2012 18:22

I don't know where this annotation is still in use at the moment.

If someone uses this annotation, he can comment on the bug. Otherwise marking the annotation as deprecated makes sense.
Previous Topic:Page and form lifecycles
Next Topic:[SDK] Discussion: Proposed text entries and order
Goto Forum:
  


Current Time: Mon Nov 24 16:46:20 GMT 2014

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

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