If developers can work on a model in parallel, IDs have to be globally 
unique.

Morning: DeveloperA and DeveloperB check out code from source control 
system
DeveloperA adds a command, it is Command1 with Handler1
DeveloperB adds a command, it is Command1 with Handler1
Evening: DeveloperA checks in his changes, DeveloperB .... hmm.... 

- Oleg



From:
Boris Bokowski/Ottawa/i...@ibmca
To:
E4 Project developer mailing list <[email protected]>
Date:
03/11/2010 08:22 AM
Subject:
Re: [e4-dev] Unique Id generation Proposal
Sent by:
[email protected]



Also I don't think the IDs have to be globally unique, they just have to 
be unique within the resource. Which means we could also have:

Command-1
Command-2
Handler-1
Handler-2
Handler-3

Remy, please correct me if I'm wrong.

Boris

Remy Suen---03/11/2010 07:55:17 AM---On Thu, Mar 11, 2010 at 6:01 AM, Tom 
Schindl <[email protected]> wrote:


From:

Remy Suen/Ottawa/i...@ibmca

To:

E4 Project developer mailing list <[email protected]>

Date:

03/11/2010 07:55 AM

Subject:

Re: [e4-dev] Unique Id generation Proposal

Sent by:

[email protected]



On Thu, Mar 11, 2010 at 6:01 AM, Tom Schindl <[email protected]> 
wrote:
> The currently generated Id are IMHO not 100% ideal. My proposal would be 
to
> use $EClassname-$UUID. I also prefer Java-UUID but that probably just 
me.

I don't really care how the string looks or is generated as long as 
someone can guarantee to me that they are unique. If you want to look at 
the code, it's just in org.eclipse.e4.workbench.ui.internal.E4XMIResource.

Regards,
Remy

----------
Remy Suen
Eclipse Platform/UI Committer
IBM Ottawa
613-356-5162_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev


<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to