Today's Messages (on)
| Unanswered Messages (off)
| Forum: Jubula |
|---|
| Topic: Coordinates on GEF Canvas |
|---|
| Coordinates on GEF Canvas [message #1059462] |
Sun, 19 May 2013 00:11 |
latha n Messages: 2 Registered: May 2013 |
Junior Member |
|
|
I am trying Jubula for an Eclipse RCP project. It has a GEF canvas and I need to choose a tool and drag on the canvas to make a rectangle. Every time I run the test, it has to draw exactly at the same location. I am using the canvas drag and drop with coordinates. But how do I find the coordinates on the canvas? Is there a way in jubula to do that or is there any other tool I can use to do that?
Thank you
|
|
| | Forum: Buckminster |
|---|
| Topic: problems when running emma in Jenkins |
|---|
| problems when running emma in Jenkins [message #1059464] |
Sun, 19 May 2013 05:05 |
Lorenzo Bettini Messages: 1117 Registered: July 2009 |
Senior Member |
|
|
Hi
I've just started using emma in my buckminster builds in Jenkins.
First of all, I run emma as follows
emma -l "mylaunch.launch" --output
"${buckminster.output.root}/test.results/mylaunch.launch.xml" --xml
"${buckminster.output.root}/test.results/coverage.mylaunch.launch.xml"
--flatXML --stdout --stderr
and I run buckminster from ant (I tested this both with Buckminster
headless 4.2 and 4.3).
When I run the ant script locally on my machine, everything works file
and coverage.mylaunch.launch.xml is created.
When I run the same ant script in Jenkins, I get this error when the
junit test suite ends
[java] INFO: Starting test session TraitJTypingUtilTest
[java] INFO: Running test...
....
[java] INFO: ...OK [0.201s]
[java] INFO: Tests finished.
[java] INFO: Elapsed time: 1.556 seconds.
[java] INFO: Total number of tests executed: 2
[java] INFO: Successful tests: 2
[java] INFO: Failed tests: 0
[java] INFO: Errors: 0
[java] INFO: Ignored tests: 0
[java] INFO: Overall status: OK
[java] ERROR: No coverage has been collected during coverage launch
(code 5101).
the strange thing is that most of the time the
coverage.mylaunch.launch.xml is actually created (in spite of the ERROR
above)...
when the job executes the postbuild action of the Emma plugin in Jenkins
"Record Emma coverage report", the coverage.mylaunch.launch.xml is
found, but I always get this error
hudson.util.IOException2: Failed to read
/usr/share/tomcat6/.jenkins/workspace/my.project/buildroot/buckminster.output/test.results/coverage.mylaunch.launch.xml
at hudson.tasks.junit.TestResult.parse(TestResult.java:284)
at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:223)
....
Caused by: org.dom4j.DocumentException:
/usr/share/tomcat6/.jenkins/workspace/my.project/buildroot/buckminster.output/test.results/report.dtd
(No such file or directory) Nested exception:
/usr/share/tomcat6/.jenkins/workspace/xtext-traitj-gerrit-ant/buildroot/buckminster.output/test.results/report.dtd
(No such file or directory)
....
which seems to imply that it's trying to read the report.dtd...
anyone else experiencing this?
thanks in advance
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
|
|
| | Forum: M2T (model-to-text transformation) |
|---|
| Topic: XML2XML |
|---|
| XML2XML [message #1059469] |
Sun, 19 May 2013 06:21 |
samar sousou Messages: 42 Registered: March 2013 |
Member |
|
|
Hi every body,
I have a problem when i want to transform an XML to another XML in ATL.
When i want to translate a root vers the other root, i have this error "Cannot set feature children to value [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@106c28e (eClass: org.eclipse.emf.ecore.impl.EClassImpl@45a13b (name: Attribute) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@22610b (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@cf16e8 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1112380 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@122d2ad (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@31d83c (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1a71ca6 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@6b5372 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false))], inter-model references are forbidden. Configure launching options to allow them."
I didn't understand this error.
So, i need your help and this is my Root rule.
rule ROOT {
from
i : XMLS!Root
to
o: XMLC!Root (
name <- 'donneesMUDU',
startLine <- i.startLine,
startColumn <- i.startColumn,
endLine <- i.endLine,
endColumn <- i.endColumn,
children <- i.children
)
}
what should i do!
Thank you,
Samar
|
|
| | Forum: Newcomers |
|---|
| Topic: Eclipse wont run my class |
|---|
| Re: Eclipse wont run my class [message #1059463 is a reply to message #1059267] |
Sun, 19 May 2013 05:01 |
Roger Wolfendale Messages: 2 Registered: May 2013 |
Junior Member |
|
|
Ed, apologies for the delayed reply but many thanks, it worked fine. Just to clarify for any other newbies...
1. I right clicked the package that the 'Printer' class was contained in,
2. Selected Run As / Java Application,
3. Selected the 'Printer' class,
4. From there the normal Run command worked as normal.
I think item 3 re-compiled the class which still leaves me wondering what's going on as, quite separately, I had previously not only tested the class in NetBeans but also from the command line using javac Printer.java which created both the Printer.class and SubPrinter.class. From there invoking java SubPrinter ran the class successfully.
Sorry to be a pest, Ed's suggestion worked fine and that should be enough but I don't exactly understand what Ed's suggestion achieved. Am I right in thinking that it basically compiled Printer.java and SubPrinter.java?
Thanks again for your interest.
|
|
|
| Re: Eclipse wont run my class [message #1059471 is a reply to message #1059463] |
Sun, 19 May 2013 06:23 |
Ed Merks Messages: 24530 Registered: July 2009 |
Senior Member |
|
|
Roger,
Generally (at least when Auto Build is true), Eclipse compiles things as
soon as you save them, so generally the .class files are always up to
date with respect to the files in your workspace. More comments below.
On 19/05/2013 11:01 AM, Roger Wolfendale wrote:
> Ed, apologies for the delayed reply but many thanks, it worked fine.
> Just to clarify for any other newbies...
>
> 1. I right clicked the package that the 'Printer' class was contained
> in, 2. Selected Run As / Java Application,
> 3. Selected the 'Printer' class,
You could click directly on the Printer.java file...
> 4. From there the normal Run command worked as normal.
>
> I think item 3 re-compiled the class which still leaves me wondering
> what's going on as, quite separately, I had previously not only tested
> the class in NetBeans but also from the command line using javac
> Printer.java which created both the Printer.class and
> SubPrinter.class. From there invoking java SubPrinter ran the class
> successfully.
If there are multiple possible mains or the main isn't in the outermost
class, there's room for confusion; I think Eclipse will generally prompt
for such cases.
> Sorry to be a pest, Ed's suggestion worked fine and that should be
> enough but I don't exactly understand what Ed's suggestion achieved.
> Am I right in thinking that it basically compiled Printer.java and
> SubPrinter.java?
As I said above, that generally happens on save anyway. If you try to
run when there are unsaved changes, Eclipse generally asks if you want
to save such files and then it will compile them before trying to run
anything.
>
> Thanks again for your interest.
|
|
| | Forum: PDT |
|---|
| Topic: Step back in debugger |
|---|
Step back in debugger [message #1059472] |
Sun, 19 May 2013 06:30 |
|
Hi,
i'm currently working on a PHP project using eclipse and i would like to know if during debugging session, i can do a step back to previous instruction(s) ?
there are some case where i step over and later on i discover that error is located in the instructions i stepped over...so i need to go back to it and step into it.
in some IDE this is possible but as i'm new to PDT and debugger in eclipse, i don't know if such thing is possible.
thx.
what does not kill you, makes you stronger
http://www.rogtek.com
http://www.facebook.com/rogtek
|
|
| | Forum: GEF |
|---|
| Topic: Wrap nodes with others |
|---|
| Wrap nodes with others [message #1059473] |
Sun, 19 May 2013 06:55 |
Mokhtar Abdu Messages: 100 Registered: November 2011 |
Senior Member |
|
|
Hi all,
i have done a nice graph, Gridlayout of boxes-like nodes. I want to wrap every column of nodes with one box, container, frame, parent node, wtvr you name it. Do you have an idea how can I do that??
Thanks in advance,
Mok
|
|
| | Forum: BIRT |
|---|
| Topic: Date parameter not Working |
|---|
| Re: Date parameter not Working [message #1059466 is a reply to message #1059146] |
Sun, 19 May 2013 05:38 |
Imran Khan Messages: 4 Registered: May 2013 |
Junior Member |
|
|
Hi,
Thanks a lot.It worked. Now i have only one issue. When i am passing fiscal parameter into report in preview from report administration. When i am passing fiscal year parameter from list 2012/2013 it selects =2012/2013 and report is bringing nothing but when i select without = that is 2012/2013 it brings results. Any idea how to resolve this my fiscal year parameter is string and query is as follows in which parameter is being passed from outsite
sqlText =" select pmnum,SITEID,(select description from locations where pm.location = locations.location) "
+ "as site, "
+" (select description from commodities where commodities.commodity= "
+" pm.commoditygroup) as workcategory,description, "
+ "(select wonum from workorder where "
+ "workorder.pmnum = pm.pmnum and targstartdate > '" + startYear + "-01-01' and targstartdate "
+ "< '" + startYear + "-02-01') as jan "
|
|
|
| Re: Date parameter not Working [message #1059475 is a reply to message #1059146] |
Sun, 19 May 2013 07:07 |
Imran Khan Messages: 4 Registered: May 2013 |
Junior Member |
|
|
Hi,
Thanks for your reply. This report is working fine at BIRT level. But when i am trying to run the same report from BIRT report administration it is taking value as
=2012/2013 when value is passed with =2012/2013 it brings no results but when i passed it without = that is 2012/2013 it works well. Any idea how to resolve this issue of = at BIRT administration level
var sqlText = new String();
var yearParam = new String();
var startYear = new String();
var endYear = new String();
yearParam = params["FiscalYear"].value;
yearParam = yearParam.split("/");
startYear = yearParam[0];
endYear = yearParam[1];
// Add query to sqlText variable.
sqlText =" select pmnum,SITEID,(select description from locations where pm.location = locations.location) "
+ "as site, "
+" (select description from commodities where commodities.commodity= "
+" pm.commoditygroup) as workcategory,description, "
+ "(select wonum from workorder where "
+ "workorder.pmnum = pm.pmnum and targstartdate > '" + startYear + "-01-01' and targstartdate "
+ "< '" + startYear + "-02-01') as jan "
|
|
| | Forum: CDT |
|---|
| Topic: multiple definitions of main issue |
|---|
| Re: multiple definitions of main issue [message #1059467 is a reply to message #1059440] |
Sun, 19 May 2013 05:44 |
Joost Kraaijeveld Messages: 147 Registered: July 2009 |
Senior Member |
|
|
On 18-05-13 16:03, James Mising name wrote:
> Eclipse is giving me the error " multiple definitions of main".
> when I make my own makefile or use cmake, I do not get these errors. I
> have a test project where I create multiple source files each with it's
> own main() function. The goal is to have the compiler create a separate
> and distinct binary executable for each of these. my make files have no
> problems doing this, how do I get Eclipse to do it? Or is Eclipse
> inferior in this regard?
You cannot create an Eclipse "managed build" executable project with
multiple main functions. You could use a central main function that,
depending e.g. on command line arguments, runs the real separate main
functions.
Whether that is inferior is up to you, but as far as I know the C++
standard (3.6.1) requires exactly 1 main function per program (although
it is implementation defined for a freestanding environment). And an
Eclipse "managed build" executable project is for 1 executable ;-).
Joost
|
|
| | | Topic: Photran/Fortran .exe will not run |
|---|
| Re: Photran/Fortran .exe will not run [message #1059477 is a reply to message #1059145] |
Sun, 19 May 2013 08:07 |
Axel Mueller Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Quote:"The application was unable to start correctly (0x000007b). Click OK to close the application."
I guess your application needs some DLLs and it cannot find them.
Quote:I noticed that next to the "HelloFortran.exe" binaries in the Project Explorer it reads "HelloFortran.exe - [amd64/le]", but I have an Intel processor running 64bit Windows 7, so I think this may be the problem.
amd64 is the name of the 64Bit x86 platform that was originally developed by AMD (thus the name). Intel licensed it later and dropped their own 64Bit platform IA64 that nobody wanted. Google or use Wikipedia if you need more details. But there is no problem for you here.
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
| | Topic: Eclipse include folder not working |
|---|
| Re: Eclipse include folder not working [message #1059478 is a reply to message #1059442] |
Sun, 19 May 2013 08:09 |
Axel Mueller Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
James Mising name wrote on Sat, 18 May 2013 17:12Ok, I am done with Eclipse. It is clearly broken is several key areas and no one can ever convince me otherwise. I refer, of course, to the attached image. I dare someone to explain that one.
That's rather easy. You entered a path where the linker wants a library name.
BTW, you should be less hostile if you want more helpful answers.
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
| | Forum: Papyrus |
|---|
| Topic: Where are the Tabbed Property View extensions are defined? |
|---|
| | Forum: GMF (Graphical Modeling Framework) |
|---|
| Topic: Remove bottom padding from rectangle |
|---|
| Remove bottom padding from rectangle [message #1059479] |
Sun, 19 May 2013 08:47 |
jack reacher Messages: 3 Registered: May 2013 |
Junior Member |
|
|
Hi
I am trying to create visuals like EClass and EAttribute in my model. I can create compartments and add attributes inside classes. But I can't get rid of the extra bottom padding from the attributes. I am attaching a screenshot of the visual and graph definition.
Also since the EMF book is dated 2009, it doesn't include new graph, tool and map element definitions. Is there a reference document where I can get information on these new elements?
Thank you in advance.
Attachment: comp.png
(Size: 17.24KB, Downloaded 2 times)
|
|
| | Topic: Error creating gmfgen file and editor code (GMF Tutorial Cheat Sheet) |
|---|
| | Topic: Calling method |
|---|
| Calling method [message #1059485] |
Sun, 19 May 2013 12:49 |
bradai hazem Messages: 16 Registered: March 2013 |
Junior Member |
|
|
Hi,
I want to calling methode located in CreateCommendxxx from xxx.EditPart
I want to call it when i delete a childNode
when i write this code in the xxx.EditPart :
CreateCommendxxx SS=new CreateCommendxxx(null)
SS.name_methode
I have an error and the methode didn't called
Any help ?
|
|
| | Forum: COBOL |
|---|
| Topic: toString helper |
|---|
| | Forum: ATL |
|---|
| Topic: ATL |
|---|
| Re: ATL [message #1059468 is a reply to message #1059353] |
Sun, 19 May 2013 05:58 |
ransou RMG Messages: 6 Registered: February 2013 |
Junior Member |
|
|
Hi,
Ok Federico I saw the link and what I need to do is the part of "ATL Plugins".I create a new ATL Plugin based on an ATL project Families2Persons.I had the same hiƩrarchie as the figure http://wiki.eclipse.org/Image:ATL_plugin_wizard_result.png.The java class generated by the plugin is like this:
package org.eclipse.m2m.atl.Families2Persons.files;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.Map.Entry;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl;
import org.eclipse.m2m.atl.common.ATLExecutionException;
import org.eclipse.m2m.atl.core.ATLCoreException;
import org.eclipse.m2m.atl.core.IExtractor;
import org.eclipse.m2m.atl.core.IInjector;
import org.eclipse.m2m.atl.core.IModel;
import org.eclipse.m2m.atl.core.IReferenceModel;
import org.eclipse.m2m.atl.core.ModelFactory;
import org.eclipse.m2m.atl.core.emf.EMFExtractor;
import org.eclipse.m2m.atl.core.emf.EMFInjector;
import org.eclipse.m2m.atl.core.emf.EMFModelFactory;
import org.eclipse.m2m.atl.core.launch.ILauncher;
import org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher;
/**
* Entry point of the 'Families2Persons' transformation module.
*/
public class Families2Persons {
/**
* The property file. Stores module list, the metamodel and library locations.
* @generated
*/
private Properties properties;
/**
* The IN model.
* @generated
*/
protected IModel inModel;
/**
* The OUT model.
* @generated
*/
protected IModel outModel;
/**
* The main method.
*
* @param args
* are the arguments
* @generated
*/
public static void main(String[] args) {
try {
if (args.length < 2) {
System.out.println("Arguments not valid : {IN_model_path, OUT_model_path}.");
} else {
Families2Persons runner = new Families2Persons();
runner.loadModels(args[0]);
runner.doFamilies2Persons(new NullProgressMonitor());
runner.saveModels(args[1]);
}
} catch (ATLCoreException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (ATLExecutionException e) {
e.printStackTrace();
}
}
/**
* Constructor.
*
* @generated
*/
public Families2Persons() throws IOException {
properties = new Properties();
properties.load(getFileURL("Families2Persons.properties").openStream());
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("ecore", new EcoreResourceFactoryImpl());
}
/**
* Load the input and input/output models, initialize output models.
*
* @param inModelPath
* the IN model path
* @throws ATLCoreException
* if a problem occurs while loading models
*
* @generated
*/
public void loadModels(String inModelPath) throws ATLCoreException {
ModelFactory factory = new EMFModelFactory();
IInjector injector = new EMFInjector();
IReferenceModel familiesMetamodel = factory.newReferenceModel();
injector.inject(familiesMetamodel, getMetamodelUri("Families"));
IReferenceModel personsMetamodel = factory.newReferenceModel();
injector.inject(personsMetamodel, getMetamodelUri("Persons"));
this.inModel = factory.newModel(familiesMetamodel);
injector.inject(inModel, inModelPath);
this.outModel = factory.newModel(personsMetamodel);
}
/**
* Save the output and input/output models.
*
* @param outModelPath
* the OUT model path
* @throws ATLCoreException
* if a problem occurs while saving models
*
* @generated
*/
public void saveModels(String outModelPath) throws ATLCoreException {
IExtractor extractor = new EMFExtractor();
extractor.extract(outModel, outModelPath);
}
/**
* Transform the models.
*
* @param monitor
* the progress monitor
* @throws ATLCoreException
* if an error occurs during models handling
* @throws IOException
* if a module cannot be read
* @throws ATLExecutionException
* if an error occurs during the execution
*
* @generated
*/
public Object doFamilies2Persons(IProgressMonitor monitor) throws ATLCoreException, IOException, ATLExecutionException {
ILauncher launcher = new EMFVMLauncher();
Map<String, Object> launcherOptions = getOptions();
launcher.initialize(launcherOptions);
launcher.addInModel(inModel, "IN", "Families");
launcher.addOutModel(outModel, "OUT", "Persons");
return launcher.launch("run", monitor, launcherOptions, (Object[]) getModulesList());
}
/**
* Returns an Array of the module input streams, parameterized by the
* property file.
*
* @return an Array of the module input streams
* @throws IOException
* if a module cannot be read
*
* @generated
*/
protected InputStream[] getModulesList() throws IOException {
InputStream[] modules = null;
String modulesList = properties.getProperty("Families2Persons.modules");
if (modulesList != null) {
String[] moduleNames = modulesList.split(",");
modules = new InputStream[moduleNames.length];
for (int i = 0; i < moduleNames.length; i++) {
String asmModulePath = new Path(moduleNames[i].trim()).removeFileExtension().addFileExtension("asm").toString();
modules[i] = getFileURL(asmModulePath).openStream();
}
}
return modules;
}
/**
* Returns the URI of the given metamodel, parameterized from the property file.
*
* @param metamodelName
* the metamodel name
* @return the metamodel URI
*
* @generated
*/
protected String getMetamodelUri(String metamodelName) {
return properties.getProperty("Families2Persons.metamodels." + metamodelName);
}
/**
* Returns the file name of the given library, parameterized from the property file.
*
* @param libraryName
* the library name
* @return the library file name
*
* @generated
*/
protected InputStream getLibraryAsStream(String libraryName) throws IOException {
return getFileURL(properties.getProperty("Families2Persons.libraries." + libraryName)).openStream();
}
/**
* Returns the options map, parameterized from the property file.
*
* @return the options map
*
* @generated
*/
protected Map<String, Object> getOptions() {
Map<String, Object> options = new HashMap<String, Object>();
for (Entry<Object, Object> entry : properties.entrySet()) {
if (entry.getKey().toString().startsWith("Families2Persons.options.")) {
options.put(entry.getKey().toString().replaceFirst("Families2Persons.options.", ""),
entry.getValue().toString());
}
}
return options;
}
/**
* Finds the file in the plug-in. Returns the file URL.
*
* @param fileName
* the file name
* @return the file URL
* @throws IOException
* if the file doesn't exist
*
* @generated
*/
protected static URL getFileURL(String fileName) throws IOException {
final URL fileURL;
if (isEclipseRunning()) {
URL resourceURL = Families2Persons.class.getResource(fileName);
if (resourceURL != null) {
fileURL = FileLocator.toFileURL(resourceURL);
} else {
fileURL = null;
}
} else {
fileURL = Families2Persons.class.getResource(fileName);
}
if (fileURL == null) {
throw new IOException("'" + fileName + "' not found");
} else {
return fileURL;
}
}
/**
* Tests if eclipse is running.
*
* @return <code>true</code> if eclipse is running
*
* @generated
*/
public static boolean isEclipseRunning() {
try {
return Platform.isRunning();
} catch (Throwable exception) {
// Assume that we aren't running.
}
return false;
}
}
Now I would like to Know what are the modifications which I should do to run this plugin and how I can run it.
Thank you for your interest.
|
|
| | Topic: XML2XML |
|---|
| XML2XML [message #1059470] |
Sun, 19 May 2013 06:23 |
samar sousou Messages: 42 Registered: March 2013 |
Member |
|
|
Hi every body,
I have a problem when i want to transform an XML to another XML in ATL.
When i want to translate a root vers the other root, i have this error "Cannot set feature children to value [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@106c28e (eClass: org.eclipse.emf.ecore.impl.EClassImpl@45a13b (name: Attribute) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@22610b (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@cf16e8 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1112380 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@122d2ad (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@31d83c (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1a71ca6 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@e25e24 (name: Element) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@6b5372 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15c4245 (name: Text) (instanceClassName: null) (abstract: false, interface: false))], inter-model references are forbidden. Configure launching options to allow them."
I didn't understand this error.
So, i need your help and this is my Root rule.
rule ROOT {
from
i : XMLS!Root
to
o: XMLC!Root (
name <- 'donneesMUDU',
startLine <- i.startLine,
startColumn <- i.startColumn,
endLine <- i.endLine,
endColumn <- i.endColumn,
children <- i.children
)
}
what should i do!
Thank you,
Samar
|
|
| | Topic: toString helper |
|---|
| toString helper [message #1059487] |
Sun, 19 May 2013 13:04 |
Basma Moukhtar Messages: 21 Registered: June 2010 |
Junior Member |
|
|
Dears,
I have a helper that's defined as this:
helper context MyPackage!MyClass def: toString() : String = 'Self To String;'
But I need to set a boolean attribute in self (MyPackage!MyClass) to true when the "toString" function is called.
I can't write self.myAttibute=true because my helper returns string.
How can I do this?
|
|
| | Forum: TMF (Xtext) |
|---|
| Topic: Mixing up XEpressions and my custom expressions |
|---|
| Re: Mixing up XEpressions and my custom expressions [message #1059484 is a reply to message #1059030] |
Sun, 19 May 2013 11:21 |
Lorenzo Bettini Messages: 1117 Registered: July 2009 |
Senior Member |
|
|
On 05/16/2013 12:08 PM, Ian McDevitt wrote:
> I tried something like this once although not mixing the expressions
> quite as closely. I defined my own expression rules, which you can do
> easily enough by looking at how Xbase does it, but I found the biggest
> problem was scoping. I had to subclass the XbaseScopeProvider so that my
> DSL elements could tell what was in scope (and vice versa). This did not
> always work as planned and in fact I believe the Xbase SP is deprecated
> in 2.4 (there is a post from Lorenzo Bettini somewhere on that) and I
> have since decided not to include Xbase in my DSL and enhanced the DSL a
> bit instead.
From what I understand, currently, XbaseScopeProvider is used by the
content assist, while the one that is used by Xbase is
XbaseBatchScopeProvider... what I'm doing is factor out all custom
scoping mechanisms in a common class, e.g., ScopeProviderHelper, and
then have both a custom XbaseScopeProvider and a custom
XbaseBatchScopeProvider which delegate to my ScopeProviderHelper...
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
|
|
| | Topic: A problem with ==, ||, and other |
|---|
|
Current Time: Sun May 19 14:42:03 EDT 2013
Powered by FUDForum. Page generated in 0.09739 seconds
|