|
|
|
|
|
|
|
|
|
|
Re: OCLStdLib extension [message #1074173 is a reply to message #1073757] |
Fri, 26 July 2013 08:19 |
ModelGeek Mising name Messages: 550 Registered: June 2011 |
Senior Member |
|
|
thanks!
In my org.eclipse.ocl kepler EGIT repository, i am getting compliation error
"The hierarchy of the type OCLContentProposer is inconsistent" in org.eclipse.ocl.examples.editor.ocl.ui plugin. Same error is there in many classes in same package.
The second compilation error i am facing is (org.eclipse.ocl.examples.editor.ocl.ui.ecore)
The return types are incompatible for the inherited methods ICreationFactory.createNodeLocator(ICSTRootEnvironment<?,?,?,?,?,?,?,?,?,?,?,?>), AbstractCreationFactory.createNodeLocator(ICSTRootEnvironment<?,?,?,?,?,?,?,?,?,?,?,?>)
Third compilation error is in class OCLinEcoreGenModelGeneratorAdapter (org.eclipse.ocl.examples.codegen.oclinecore)
Null type mismatch: required '@NonNull Ecore2Pivot' but the provided value is inferred as @Nullable
at
for (@SuppressWarnings("null")@NonNull EOperation eOperation : eClass.getEOperations()) {
installOperation(ecore2pivot, eOperation, results);}
Can you please help me fixing these compilation errors in repository
Regards,
[Updated on: Fri, 26 July 2013 08:53] Report message to a moderator
|
|
|
Re: OCLStdLib extension [message #1074198 is a reply to message #1074173] |
Fri, 26 July 2013 09:09 |
Ed Willink Messages: 7670 Registered: July 2009 |
Senior Member |
|
|
Hi
Given the <?,?,?,?,?,?,?,?,?,?,?,?> in your example you are clearly
using the Class OCL. These template arguments are very painful and one
of the reasons for the new Pivot-basedc OCL.
The OCL StdLib is very difficult to extend; another reason. The new
approach is defined by a model.
The errors are standardl Java errors so you need to correct your Java
code, though sometimes a Clean and Rebuild All is sufficient.
Regards
Ed Willink
On 26/07/2013 09:19, ModelGeek Mising name wrote:
> thanks!
>
> In my org.eclipse.ocl kepler EGIT repository, i am getting compliation
> error "The hierarchy of the type OCLContentProposer is inconsistent"
> in org.eclipse.ocl.examples.editor.ocl.ui plugin. Same error is there
> in many classes in same package.
>
> The other compilation error i am facing is
> (org.eclipse.ocl.examples.editor.ocl.ui.ecore)
>
> The return types are incompatible for the inherited methods
> ICreationFactory.createNodeLocator(ICSTRootEnvironment<?,?,?,?,?,?,?,?,?,?,?,?>),
> AbstractCreationFactory.createNodeLocator(ICSTRootEnvironment<?,?,?,?,?,?,?,?,?,?,?,?>)
>
>
> Can you please help me fixing these compilation errors in repository
>
> Regards,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: OCLStdLib extension [message #1075860 is a reply to message #1075517] |
Tue, 30 July 2013 08:05 |
ModelGeek Mising name Messages: 550 Registered: June 2011 |
Senior Member |
|
|
I was using Juno's plugin related to ocl and pivot in Indigo and i did not get any problem, but now i am trying to use plugin from kepler's repository and geting the problem.
So it means i have to somehow configure plugins from kepler repository first and then i should export the feature and update it on indigo's build?
I have been googling and i have found that i have to configure complier's null analysis properties. But i am not sure about it.
Can you please give me some hints?
thanks!
Regards,
[Updated on: Tue, 30 July 2013 09:31] Report message to a moderator
|
|
|
|
|
|
Re: OCLStdLib extension [message #1075918 is a reply to message #1075912] |
Tue, 30 July 2013 10:21 |
ModelGeek Mising name Messages: 550 Registered: June 2011 |
Senior Member |
|
|
Hi,
Right now i am just using File->Export....->Deployable Features menu to export feature.
I have checked the build properties for plugins. "src" folder is not included in binary and source build.
In export dialog, export sources check box is also not selected.
Is there any way to mention not to export java files....?
Thanks for your support and help!
Regards,
[Updated on: Tue, 30 July 2013 10:39] Report message to a moderator
|
|
|
Re: OCLStdLib extension [message #1075932 is a reply to message #1075912] |
Tue, 30 July 2013 10:54 |
ModelGeek Mising name Messages: 550 Registered: June 2011 |
Senior Member |
|
|
Thanks!
I found the option to export class files in export dialog. The annotation problem is solved but now i am getting following exception message
Couldn't find resource on classpath. URI was 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'
In my exported feature essentialocl was inluded.
Do you know why i am getting this?
thanks!
Exception trace :
Caused by: org.eclipse.xtext.resource.ClasspathUriResolutionException: java.lang.IllegalStateException: Couldn't find resource on classpath. URI was 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'
at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.resolve(ClassloaderClasspathUriResolver.java:48)
at org.eclipse.xtext.resource.XtextResourceSet.resolveClasspathURI(XtextResourceSet.java:126)
at org.eclipse.xtext.resource.XtextResourceSet.access$0(XtextResourceSet.java:125)
at org.eclipse.xtext.resource.XtextResourceSet$1.normalize(XtextResourceSet.java:182)
at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:144)
at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:26)
at org.eclipse.xtext.parser.BaseEPackageAccess.loadResource(BaseEPackageAccess.java:52)
... 114 more
Caused by: java.lang.IllegalStateException: Couldn't find resource on classpath. URI was 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'
at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.findResourceOnClasspath(ClassloaderClasspathUriResolver.java:60)
at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.resolve(ClassloaderClasspathUriResolver.java:45)
... 120 more
21) Error injecting constructor, org.eclipse.emf.common.util.WrappedException: org.eclipse.xtext.resource.ClasspathUriResolutionException: java.lang.IllegalStateException: Couldn't find resource on classpath. URI was 'classpath:/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xmi'
at org.eclipse.ocl.examples.xtext.essentialocl.services.EssentialOCLGrammarAccess.<init>(Unknown Source)
at org.eclipse.ocl.examples.xtext.essentialocl.services.EssentialOCLGrammarAccess.class(Unknown Source)
while locating org.eclipse.ocl.examples.xtext.essentialocl.services.EssentialOCLGrammarAccess
while locating org.eclipse.xtext.IGrammarAccess
for parameter 0 at org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService.setGrammar(Unknown Source)
while locating org.eclipse.ocl.examples.xtext.essentialocl.services.EssentialOCLValueConverterService
while locating org.eclipse.xtext.conversion.IValueConverterService
for field at org.eclipse.xtext.parsetree.reconstr.impl.ValueSerializer.converter(Unknown Source)
while locating org.eclipse.xtext.parsetree.reconstr.impl.ValueSerializer
while locating org.eclipse.xtext.parsetree.reconstr.ITokenSerializer$IValueSerializer
for field at org.eclipse.xtext.validation.impl.AssignmentQuantityAllocator.valueSerializer(Unknown Source)
while locating org.eclipse.xtext.validation.impl.AssignmentQuantityAllocator
while locating org.eclipse.xtext.validation.IAssignmentQuantityAllocator
for field at org.eclipse.xtext.validation.impl.ConcreteSyntaxValidator.quantityProvider(Unknown Source)
while locating org.eclipse.xtext.validation.impl.ConcreteSyntaxValidator
while locating org.eclipse.xtext.validation.IConcreteSyntaxValidator
for field at org.eclipse.xtext.resource.XtextResource.validator(Unknown Source)
while locating org.eclipse.ocl.examples.xtext.essentialocl.utilities.EssentialOCLCSResource
while locating org.eclipse.xtext.resource.XtextResource
Regards,
[Updated on: Tue, 30 July 2013 10:59] Report message to a moderator
|
|
|
|
|