Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » overriding @Required in subclass
overriding @Required in subclass [message #839670] Mon, 09 April 2012 03:22 Go to next message
Greg Amerson is currently offline Greg Amerson
Messages: 116
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 16:07 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 941
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 16:16 Go to previous message
Greg Amerson is currently offline Greg Amerson
Messages: 116
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: Fri Oct 24 15:01:34 GMT 2014

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

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