Archi Forum

Archi => Archi Development => Topic started by: Hervé on October 01, 2016, 00:50:25 AM

Title: FolderType
Post by: Hervé on October 01, 2016, 00:50:25 AM
Hi Phil, Jean-Baptiste,

In Archi 4, you added a new entry in the com.archimatetool.model.FolderType Enumerator called "OTHER" but it has got the same numeric value ( 5 ) as "RELATIONS" :


line 77 : RELATIONS(5, "relations", "relations"), //$NON-NLS-1$ //$NON-NLS-2$

line 87 : OTHER(5, "other", "other"), //$NON-NLS-1$ //$NON-NLS-2$



In my database plugin, I assumed that each entry has got a unique numeric value and misbehave when it is not the case.

So my question is : Is it on purpose ? Do you plan to restore unicity or should I adapt my code ?

Thanks and regards
Hervé
Title: Re: FolderType
Post by: Phil Beauvoir on October 03, 2016, 10:47:17 AM
Hi,

thanks for spotting this. This is a mistake. I've committed a fix to GitHib.

Regards,

Phil
Title: Re: FolderType
Post by: Hervé on October 03, 2016, 13:05:26 PM
Thanks a lot Phil.

Best regards
Hervé