HiberObjects

Download

Order

Forum

Vote for this plugin

It is currently Fri Sep 10, 2010 3:11 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Show Attributes not working
PostPosted: Sun Jun 27, 2010 4:45 pm 
Offline

Joined: Sun Jun 27, 2010 4:19 pm
Posts: 3
When hiding attributes in the model I am not able to unhide them again.

It works fine for operations though.

Right Click on the class and select Show and can see Attributes is ticked however attributes dont want to show so I am unable to edit attributes in the model.


Report this post
 
 Profile  
Reply with quote  
 Post subject: Re: Show Attributes not working
PostPosted: Wed Jul 14, 2010 7:14 pm 
Offline

Joined: Tue Apr 10, 2007 4:42 pm
Posts: 562
Location: Uppsala, Sweden
Hi Chris,

Sorry, but I am not able to reproduce this. It works for me.

But I got a hack you can try:
Open the objectdesign.odx file (the HiberObjects icon) in a text editor.
Find the <classSymbol> element with the correct <class ...>
If there is no <attributes> element below <class>, insert this:
"<attributes autoDisplay="289" accessVisible="true"/>"
Then close and open your project again.

Or just send me the objectdesign.odx file (to eclipse@objectgeneration.com) and I can try to do it for you.

Regards,
Lars


Report this post
 
 Profile  
Reply with quote  
 Post subject: Re: Show Attributes not working
PostPosted: Thu Jul 15, 2010 9:47 am 
Offline

Joined: Sun Jun 27, 2010 4:19 pm
Posts: 3
Hi Lars,

I attach the .odx file in a zip for your perusal.

Thanks,
Chris


Attachments:
objectdesign.zip [9.61 KB]
Downloaded 6 times
Report this post
 
 Profile  
Reply with quote  
 Post subject: Re: Show Attributes not working
PostPosted: Tue Jul 20, 2010 3:55 am 
Offline

Joined: Tue Apr 10, 2007 4:42 pm
Posts: 562
Location: Uppsala, Sweden
Hi Chris,

I found the bug. You had changed the attributes to default access by removing the "+" before the them. For instance to "String userName" instead of "+String userName". The + means public. And if you hide and show attributes again, HiberObjects will only draw public attributes.

I fixed your project file by changing all attributes to public (with <access>1</access> in all <variable> elements). This only means that the get- and set-methods will be generated public, the fields will be private. I will fix the error in HiberObjects when I get a chance.

PS: The attached file may be called "download.php" when you download it. You may have to rename it to download.zip and unzip it to get objectdesign.odx.

Regards,
Lars


Attachments:
objectdesign.odx.zip [8.99 KB]
Downloaded 6 times
Report this post
 
 Profile  
Reply with quote  
 Post subject: Re: Show Attributes not working
PostPosted: Tue Jul 20, 2010 8:37 am 
Offline

Joined: Sun Jun 27, 2010 4:19 pm
Posts: 3
Hi Lars,

Appreciate your effort in resolving the issue.
Thanks for the feedback.

Regards,
Chris


Report this post
 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2002, 2006 phpBB Group