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


|------------>
| 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

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

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

Reply via email to