Bug 131591 - Java enum association fails
Summary: Java enum association fails
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.5.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-31 16:22 UTC by Drew
Modified: 2017-03-13 13:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.21.80 (KDE Applications 17.03.80)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Drew 2006-07-31 16:22:32 UTC
Version:           1.5.1 (using KDE KDE 3.5.3)
Installed from:    Fedora RPMs
Compiler:          gcc version 4.0.2 20051125 (Red Hat 4.0.2-8) 
OS:                Linux

When Java is selected as the main language, it is impossible to make an association between enums. This is something that is possible to do with Java 5, yet not with the modelling tool.
Comment 1 Oliver Kellogg 2006-08-15 13:17:28 UTC
I confirm (but dont hold your breath for the implementation - it entails earth shaking changes!)
Comment 2 brundibar 2009-10-08 12:29:43 UTC
not yet? :(  I'm using win version of KDE, v4.3.2, Umbrello v2.3.2. When I try to import Java enum source files then it fails..
Comment 3 Ralf Habacker 2017-01-13 01:28:19 UTC
Does it make sense to allow associations between enum's also for c++ and other languages ? If not a language specific AssocRules::m_AssocRules array containing this dedicated rule is required.
Comment 4 Oliver Kellogg 2017-01-13 06:24:36 UTC
(In reply to Ralf Habacker from comment #3)
> Does it make sense to allow associations between enum's also for c++ and
> other languages ? If not a language specific AssocRules::m_AssocRules array
> containing this dedicated rule is required.

AFAICT other languages do not support this; a language specific rule is in order.
Comment 5 Ralf Habacker 2017-01-15 12:35:21 UTC
What kind of associations should be possible between enums: association, uniassociation and dependency ?
Comment 6 Ralf Habacker 2017-01-16 02:24:00 UTC
Git commit e3a7cce6ec6906c361aa8ce91dd73f67af1e790a by Ralf Habacker.
Committed on 16/01/2017 at 02:23.
Pushed by habacker into branch 'master'.

Add support for language specific association rules.

The class Assoc_Rule (former struct) now have an attribute 'language'
with which 'all' or a dedicated language can be specified. This attribute
is checked in the related AssocRule class methods.

Java specific rules will be added in a separate commit.

M  +172  -145  umbrello/assocrules.cpp
M  +5    -2    umbrello/assocrules.h

https://commits.kde.org/umbrello/e3a7cce6ec6906c361aa8ce91dd73f67af1e790a
Comment 7 Ralf Habacker 2017-01-16 19:16:56 UTC
Git commit 92e1e9ab1861afe5c0b80e14daa08e6f2498b8b5 by Ralf Habacker.
Committed on 16/01/2017 at 19:16.
Pushed by habacker into branch 'master'.

Fixup of AssocRules language support.

M  +1    -3    umbrello/assocrules.cpp
M  +2    -1    umbrello/assocrules.h

https://commits.kde.org/umbrello/92e1e9ab1861afe5c0b80e14daa08e6f2498b8b5
Comment 8 Ralf Habacker 2017-01-18 21:51:47 UTC
Git commit 6826e84a63c4a45cbf2612c4fd434c31746e59db by Ralf Habacker.
Committed on 15/01/2017 at 20:12.
Pushed by habacker into branch 'Applications/16.12'.

Add support for language specific association rules.

The class Assoc_Rule (former struct) now have an attribute 'language'
with which all languages or a dedicated language can be specified.
This attribute is now checked in the related AssocRule class methods.

M  +172  -145  umbrello/assocrules.cpp
M  +5    -2    umbrello/assocrules.h
M  +1    -0    umbrello/toolbarstate.cpp

https://commits.kde.org/umbrello/6826e84a63c4a45cbf2612c4fd434c31746e59db
Comment 9 Ralf Habacker 2017-03-13 13:37:39 UTC
Git commit 1e48acba53a0fc1760788d395edaca0b90e28cec by Ralf Habacker.
Committed on 13/03/2017 at 13:37.
Pushed by habacker into branch 'master'.

Fix 'Java enum association fails'.

To fix this issue an associaton rule to allow associations between
enums for java language has been added.
FIXED-IN: 2.21.80 (KDE Applications 17.03.80)

M  +3    -0    umbrello/assocrules.cpp
M  +1    -1    umbrello/assocrules.h

https://commits.kde.org/umbrello/1e48acba53a0fc1760788d395edaca0b90e28cec