Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » eFactory does not create the right boolean
eFactory does not create the right boolean [message #853700] Mon, 23 April 2012 08:55 Go to next message
jps90 Mising name is currently offline jps90 Mising nameFriend
Messages: 13
Registered: December 2011
Junior Member
Hi,
I'm using eFactory files and try to create boolean values with it. But if I write value = false it writes true into the value. If I don't write anything into it the value is false. I tried the normal boolean and java.lang.Boolean in the model.
Does anybody have an idea what I am making wrong?

Thanks in advance
Re: eFactory does not create the right boolean [message #853739 is a reply to message #853700] Mon, 23 April 2012 09:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Comments below.

On 23/04/2012 10:55 AM, jps90 Mising name wrote:
> Hi,
> I'm using eFactory files and try to create boolean values with it. But
> if I write value = false it writes true into the value. If I don't
> write anything into it the value is false. I tried the normal boolean
> and java.lang.Boolean in the model.
It's impossible to answer this question with the information you've
provided. It's not even clear how a factory is involved nor is it clear
what you mean by value = false, given that normally setters are called
to modify the state of a model.
> Does anybody have an idea what I am making wrong?
It's not even clear what you're doing, let alone what might be wrong
with it.
>
> Thanks in advance


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eFactory does not create the right boolean [message #853757 is a reply to message #853739] Mon, 23 April 2012 09:54 Go to previous messageGo to next message
jps90 Mising name is currently offline jps90 Mising nameFriend
Messages: 13
Registered: December 2011
Junior Member
Oh, ok.
I'll try to explain it better...
I'm using eFactory files to build xmi files from it.
I have a process with a list of elements in it. Then I create an ElementGroup with a boolean value and a name in it.

elements += new  ElementGroup {
		name = "Auswahl"
		showPGroup = false
}


But if I look into my xmi file the showPGroup value is still true...
Re: eFactory does not create the right boolean [message #853777 is a reply to message #853757] Mon, 23 April 2012 10:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Oh, by eFactory you mean:

http://code.google.com/a/eclipselabs.org/p/efactory/

That's not a project hosted at Eclipse.org so this forum isn't the place
to ask questions about it. Perhaps open an issue about this...


On 23/04/2012 11:54 AM, jps90 Mising name wrote:
> Oh, ok.
> I'll try to explain it better...
> I'm using eFactory files to build xmi files from it.
> I have a process with a list of elements in it. Then I create an
> ElementGroup with a boolean value and a name in it.
>
> elements += new ElementGroup {
> name = "Auswahl"
> showPGroup = false
> }
>
>
> But if I look into my xmi file the showPGroup value is still true...
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eFactory does not create the right boolean [message #853789 is a reply to message #853777] Mon, 23 April 2012 10:33 Go to previous message
jps90 Mising name is currently offline jps90 Mising nameFriend
Messages: 13
Registered: December 2011
Junior Member
Yes, thanks for the advice.
I thought maybe anybody here would know something about it...
Previous Topic:Workspace Resource with EMF Objects
Next Topic:[SOLVED] Notifications
Goto Forum:
  


Current Time: Tue Apr 30 00:54:59 GMT 2024

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

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

Back to the top