Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » @Derived service that is editable
@Derived service that is editable [message #1131168] Thu, 10 October 2013 08:56 Go to next message
stephen lynch is currently offline stephen lynchFriend
Messages: 2
Registered: October 2013
Junior Member
Is there a way to make a Derived text field editable?

i.e.
@InitialValue(text = "Sample")
ValueProperty PROP_APP_NAME = new ValueProperty(TYPE, "AppName");

@Derived ( text = "${AppName}Bundle")
ValueProperty PROP_BUNDLE_NAME = new ValueProperty(TYPE, "BundleName");
Re: @Derived service that is editable [message #1131532 is a reply to message #1131168] Thu, 10 October 2013 16:12 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 952
Registered: July 2009
Senior Member
It sounds like you want a regular value property with either @DefaultValue or @InitialValue.
Re: @Derived service that is editable [message #1133013 is a reply to message #1131532] Fri, 11 October 2013 14:50 Go to previous messageGo to next message
stephen lynch is currently offline stephen lynchFriend
Messages: 2
Registered: October 2013
Junior Member
Yes sort of, if AppName is changed i would like BundleName to reflect the changes. If BundleName is changed i would expect the dependency to be broken.

I could use @InitialValue if i could override the default behavior to allow the value to change dynamically after instantiation.

Re: @Derived service that is editable [message #1133188 is a reply to message #1133013] Fri, 11 October 2013 17:24 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 952
Registered: July 2009
Senior Member
@InitialValue is applied only once when element is created. @DefaultValue on the other hand is constantly updating.
Previous Topic:Respond to carriage return in text box
Next Topic:Confirmation on Sapphire.Delete
Goto Forum:
  


Current Time: Fri Nov 28 21:04:37 GMT 2014

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

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