Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » overriding @Required in subclass
overriding @Required in subclass [message #839670] Sun, 08 April 2012 23:22 Go to next message
Greg Amerson is currently offline Greg Amerson
Messages: 108
Registered: March 2010
Senior Member
Hey Sapphire team,

I have a model where normally a specify property is @Required but in some scenarios I would like the property not be required. So I'm trying to model this with a subclass of the original interface but don't see how to turn off the required property. Is this possible?
Re: overriding @Required in subclass [message #840057 is a reply to message #839670] Mon, 09 April 2012 12:07 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 923
Registered: July 2009
Senior Member
There isn't a way to this today, but I can see supporting an optional @Required( expr = ... ) form.

- Konstantin
Re: overriding @Required in subclass [message #840064 is a reply to message #840057] Mon, 09 April 2012 12:16 Go to previous message
Greg Amerson is currently offline Greg Amerson
Messages: 108
Registered: March 2010
Senior Member
Got it, makes sense. https://bugs.eclipse.org/bugs/show_bug.cgi?id=376330
Previous Topic:Vertical radio buttons with 2 columns
Next Topic:Equals and HashCode in ModelElements
Goto Forum:
  


Current Time: Mon Apr 21 11:52:06 EDT 2014

Powered by FUDForum. Page generated in 0.01595 seconds