Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369525 - [xtext] xtext editors do not compile for the new version of eclipse (4.2)
Summary: [xtext] xtext editors do not compile for the new version of eclipse (4.2)
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.9.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Vincent Lorenzo CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 09:48 EST by Patrick Tessier CLA
Modified: 2012-03-22 08:40 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Tessier CLA 2012-01-24 09:48:59 EST
xtext editors do not compile for the new version of eclipse (4.2)
Comment 1 Patrick Tessier CLA 2012-01-24 10:33:58 EST
update the plugin xtext linked to property
done in the revision 6969 6970 6971
Comment 2 Patrick Tessier CLA 2012-01-26 04:24:56 EST
update the plugin xtext linked to states
done in the revision 7012, 7013
Comment 3 Patrick Tessier CLA 2012-01-26 04:44:42 EST
update the plugin xtext linked to transitions
done in the revision 7015
Comment 4 Patrick Tessier CLA 2012-01-26 07:16:29 EST
 update the plugin xtext linked to message
done in the revision 7021 and 7022
Comment 5 Patrick Tessier CLA 2012-01-26 10:11:12 EST
I have regenerate the code for parameter that use common. done in the revision7028, 7029


I have had some problems with the generated code so I have add a README:
"
IMPORTANT:

I have renamed the Epackage http://www.eclipse.org/uml2/4.0.0/Types to http://www.eclipse.org/uml2/4.0.0/common/Types in the generated code.

It has been renamed in the:
	/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.genmodel
	/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/types/TypesPackage.java
	/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/types/impl/TypesFactoryImpl.java
	
why?
Several xtext project generates the same epackage. So when xtext tries to lad the type package for common, it don't find the good and generate
 a class cast exception
 
 When you try to reuse this package, maybe you will have a compilation error with the serializer.
 It want the concrete class "UmlCommonSemanticSequencer" that not exist. So replace it by the abstract class AbstractUmlCommonSemanticSequencer.
 
 I don't know how to solve it without modify the generated code
 "
Comment 6 Patrick Tessier CLA 2012-01-26 10:20:29 EST
regenerate for connectionpoint reference xtext editor
done in the revision 7030
Comment 7 Patrick Tessier CLA 2012-01-26 10:28:59 EST
regenerate collaboration use  xtext editior, done in the revision 7031
Comment 8 Camille Letavernier CLA 2012-01-27 07:54:46 EST
Removed the unused dependency to org.eclipse.papyrus.views.properties.runtime from constraintwithessantialocl.xtext

Done in r7049
Comment 9 Camille Letavernier CLA 2012-03-22 08:40:08 EDT
The "TypesPackages" have been removed from all xtext plug-ins.

These packages have been mistakenly generated after the migration to UML 2.4, and were provoking a few errors in the log.
Comment 10 Camille Letavernier CLA 2012-03-22 08:40:49 EDT
> The "TypesPackages" have been removed from all xtext plug-ins.

Done in r7567