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

Bug 353795

Summary: [Component Diagram] Error messages at initialization
Product: [Modeling] Papyrus Reporter: alanusse Mising name <agnes.lanusse>
Component: CoreAssignee: Amine EL KOUHEN <amine.elkouhen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: yann.tanguy
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
PbInitializationComponentDiagarmScreenView
none
Log File of pb none

Description alanusse Mising name CLA 2011-08-03 12:44:07 EDT
[Component Diagram] Error messages at initialization it seems that there is a gmf error.

What steps will reproduce the problem?
1. Create a papyrus model using papyrus perspective
2. Save and quit Eclipse
3. Restart Eclipse and open your model in Papyrus perspective

You get errors in the error log. This doesn't prevent Papyrus from working but it is not a sane behavior. I experemimented also bugs when trying to work in a component diagram.


-- Error Details --
Date: Wed Aug 03 18:24:49 CEST 2011
Message: Error initializing element type "org.eclipse.papyrus.diagram.component.Dependency_4010": element type with same ID already exists.  It will be ignored.
Severity: Error
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.modeling.product)
Plugin: org.eclipse.gmf.runtime.emf.type.core
Session Data:
eclipse.buildId=I20110613-1736
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product org.eclipse.epp.package.modeling.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.modeling.product
Comment 1 alanusse Mising name CLA 2011-08-03 12:47:46 EDT
Created attachment 200833 [details]
PbInitializationComponentDiagarmScreenView

Initialialization pbs of the component diagram (gmf related problem). 
Remark In this example, I did not create a component diagram.
Comment 2 alanusse Mising name CLA 2011-08-03 12:51:16 EDT
Created attachment 200836 [details]
Log File of pb

Model as been closed and reopened
Comment 3 Amine EL KOUHEN CLA 2011-08-12 11:31:28 EDT
after a regeneration of the component diagram, the errors/warnings messages was disappeared.
Comment 4 Yann Tanguy CLA 2011-08-13 06:58:34 EDT
Does not appear to be fixed (tested on 0.8.1 nightly build 201108122014).

The plugin.xml file does not seem to be correct on 0.8.X branch:
- some svn merge conflict exists

   <!-- optionally, specify keybindings -->
>>>>>>> .r4908
</plugin>

- still duplicated extensions (related to the merge conflicts problem)
- the following warning is not fixed : Conflict for 'org.eclipse.papyrus.diagram.component.LoadResourceAction'
- the following warning is not fixed : Conflict for 'org.eclipse.papyrus.diagram.component.updateDiagram'

Maybe your fix concerned the trunk, in that case is should also be applied to the 0.8.X branch.
Comment 5 Amine EL KOUHEN CLA 2011-08-13 09:42:53 EDT
Actually, the changes I made ​​were on the trunk.
I updated the 0.8.x branch, the problems have disappeared.