Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Q: Uniqueness of model element ids

On Thu, Jan 28, 2010 at 11:25 AM, Brian de Alwis <briandealwis@xxxxxxxxx> wrote:
> It's not clear to me whether ids should be unique or may be the same. Or if the ids are scoped somehow, such as by a perspective — I can see that being useful. But I'm pretty sure given the use of placeholders that they are assumed to be unique.

The id of an MApplicationElement should not have to be unique. However, the 'xmi:id' attribute within the e4xmi file must be unique.

> My suggestion: state that model element ids should be unique, and change the e4 startup to enforce this. I'm happy to put together a patch (I'm certainly going to run with it locally!). This policy can be relaxed at a later point as situations arise.

I have opened bug 301155 to provide a warning/regenerate one.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=301155

Regards,
Remy

----------
Remy Suen
Eclipse Platform/UI Committer
IBM Ottawa
613-356-5162


Back to the top