Bug 281093

Summary: interface classes don't support attributes
Product: [Applications] umbrello Reporter: greatbunzinni
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version: 1.1   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description greatbunzinni 2011-08-31 09:11:03 UTC
Version:           1.1 (using KDE 4.6.2) 
OS:                Linux

Umbrello's interface classes don't support attributes.  This is a major shortcoming, as it means that a user is forbidden from designing abstract base classes which provide member variables, a common technique to replace public pairs of set/get methods.

Reproducible: Didn't try

Steps to Reproduce:
1) try to add an attribute to a class

Actual Results:  
there is no option

Expected Results:  
there was an option to add attributes to interface classes

OS: Linux (x86_64) release 2.6.38-11-generic
Compiler: cc
Comment 1 Ralf Habacker 2016-08-31 13:59:08 UTC
> a user is forbidden from designing abstract base classes which provide member variables
This is not true and could be performed by adding a regular class with property "Abstract Class" set or by converting an interface to a class by using the context menu entry "convert to class."

If this is required often umbrello can be extended in two ways:
1. Add an additional entry in the toolbar and the class diagram context menu "new"  named "Abstract class".
2. Add a global option to umbrello to generate interfaces by using a class and "abstract class" property set by default.