Bug 311631 - private attribute not showing in class
Summary: private attribute not showing in class
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-13 13:55 UTC by Stephen Paden
Modified: 2015-05-11 10:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Paden 2012-12-13 13:55:35 UTC
When labeling an attribute private, it completely disappears from the class. This should not happen as we still need to see what that private attribute is.

Reproducible: Always

Steps to Reproduce:
1. create class
2. add attribute
3. make private
Actual Results:  
Shows no attribute.

Expected Results:  
Attribute should show as:

-varName : String
Comment 1 Alexandre Bonneau 2013-09-06 18:03:56 UTC
This bug is still there in 4.11.
Comment 2 Ralf Habacker 2015-05-07 09:16:01 UTC
Not sure, what you mean with 'disappears from the class'.  

An attribute added to a class is displayed in the tree view regardless of the visibility, also it is displayed in the attribute tab of the class property dialog.

In the diagram by default only public attributes are displayed. Private attributes are shown in the diagram by unselecting "Public only" in the the display tab of the related diagram of the class tab of general umbrello settings.

If  you are mentioning a different behavior, feel free to reopen the bug with more details.
Comment 3 Alexandre Bonneau 2015-05-11 08:50:40 UTC
Well, that was it, thank you.
That option is not easily found, perhaps there could be a way to improve its visibility?
Comment 4 Ralf Habacker 2015-05-11 10:14:22 UTC
(In reply to Alexandre Bonneau from comment #3)
> Well, that was it, thank you.
> That option is not easily found, perhaps there could be a way to improve its visibility?

The are a few shortcuts for accessing attribute and the "public only" property:
1. Change attribute visibility 
   1.1. double-click on a tree view class attribute
   1.2. right-click and select "properties" on a tree view class attribute 

2. Change diagrams "public only" setting: 
  2.1. double-click and select "display" on a tree view diagram entry
  2.2. right-click and select "properties" followed by "display" on a tree view diagram entry

3. Change global "public only" setting 
   3.1.  select menu "settings" and select "properties" followed by "class"

There would be a change to reduce the required steps for the global settings by adding a "Properties" entry in the tree view:
   3.2 double click and select "class" on the tree view "properties" entry