Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318787

Summary: [Preferences] No control are made on command execution on PreferenceInitializerForElementHelper.java
Product: [Modeling] Papyrus Reporter: Thibault Landré <thibault.landre>
Component: CoreAssignee: Patrick Tessier <Patrick.Tessier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 318788, 318962    
Attachments:
Description Flags
mylyn/context/zip none

Description Thibault Landré CLA 2010-07-03 11:08:37 EDT
ShadowCommand, nameLabelIconCommand and qualifiedNameCommand are always executed which may cause errors on creating element. 

Moreover, this file doesn't have a copyright nor a licence. 

Patrick, I think it is one of your class, so I assign you this bug.
However I have already fixed the control part.
Comment 1 Thibault Landré CLA 2010-07-06 04:45:57 EDT
Seems to have still some error at the initialisation of the preference. Do you have an idea Patrick ? 
(see 318962)
Comment 2 Patrick Tessier CLA 2010-07-06 05:49:46 EDT
Created attachment 173519 [details]
mylyn/context/zip

commented classes
Comment 3 Patrick Tessier CLA 2010-07-06 05:58:09 EDT
I have added a copyright.

It seems peculiar normally name label icon and qualified name commands  create only eannotation. if there is no editpolicy attached to the editpart to understand them, theses eannotation has no influence on your code.

Can you send me the errors, in order to solve it.
Comment 4 Thibault Landré CLA 2010-07-06 06:10:51 EDT
see 318962
Comment 5 Patrick Tessier CLA 2010-07-06 06:19:33 EDT
It seem that the bug comes from a NPE about the transactionalDomain. It will try to follow it.
Comment 6 Patrick Tessier CLA 2010-07-06 08:47:21 EDT
This bug comes from  EditorUtils.getTransactionalEditingDomain() . It access to papyrus by looking for the active editor.
So EditorUtils.getTransactionalEditingDomain() return null and cannot execute command during the creation of the editor with this diagram
So I have open a test in order to test it.
the no anymore null pointer exception.
I have already discuss with Cedric because I have the same problem in the model explorer . I will add a new task about that.
Comment 7 Thibault Landré CLA 2010-07-06 09:25:22 EDT
Ok, thanks