Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » errors while exporting to Repository
errors while exporting to Repository [message #782357] Mon, 23 January 2012 15:16
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
I have a DSL working ok when I test with
I want to incorporate int main eclipse.
I go into "Deployable plug-ins and fragments", select all plug-ins (rpc, rpc.tests & rpc.ui) and then "Install into host,
Repository."

Operation fails:

=========================================
Problem during export
Errors occurred during the export operation. The ant tasks generated log files
which can e found at /srv/devel/install/logs.zip
=========================================

I do attach the complete zip file, but errors are all the same:
=========================================
1. ERROR in /srv/devel/parser.WS/com.softin.rpc/src/com/softin/rpc/MyIntegerConverterImplementation.java (at line 10)
public Integer toValue(String string, INode node)
throws ValueConverterException {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method toValue(String, INode) of type MyIntegerConverterImplementation must override a superclass method
=========================================

Which is strange.
MyIntegerConverterImplementation.java is trivial:

=========================================
package com.softin.rpc;

import org.eclipse.xtext.conversion.IValueConverter;
import org.eclipse.xtext.conversion.ValueConverterException;
import org.eclipse.xtext.nodemodel.INode;

public class MyIntegerConverterImplementation implements IValueConverter<Integer> {

@Override
public Integer toValue(String string, INode node)
throws ValueConverterException {
return Integer.decode(string);
}

@Override
public String toString(Integer value) throws ValueConverterException {
return value.toString();
}

}
=========================================

I also tried commenting out the offending "@Override" and the export seems to succeed, but the same errors pops up again when the editor is actually instantiated.

What am I doing wrong?

TiA
Mauro
  • Attachment: logs.zip
    (Size: 1.44KB, Downloaded 169 times)
Previous Topic:errors while exporting to Repository
Next Topic:ProposalProvider for DomainModel example
Goto Forum:
  


Current Time: Fri Apr 26 05:25:01 GMT 2024

Powered by FUDForum. Page generated in 0.02510 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top