Bug 281093 - interface classes don't support attributes
Summary: interface classes don't support attributes
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.1
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 09:11 UTC by greatbunzinni
Modified: 2016-08-31 13:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.