| Forum: TMF (Xtext) |
|---|
| Topic: xtext project creation programmatically |
|---|
| xtext project creation programmatically [message #1060872] |
Tue, 28 May 2013 15:06 |
Vincent De Bry Messages: 5 Registered: May 2013 |
Junior Member |
|
|
Hello,
I would like to create Xtext projects (base + ui) programmatically.
I took a look at xtext project wizard but I cannot figure out which methods of which classes have to be used.
Do someone already had the same need and could provide me with an implementation example ?
Thanks
|
|
|
| Topic: Update of resource description |
|---|
| Update of resource description [message #1060667] |
Mon, 27 May 2013 11:49 |
Phil H Messages: 70 Registered: November 2012 |
Member |
|
|
Is there a way to update the resource description manually? At the moment only when I save the computeExportedObjects() method is called. So unsaved elements are not covered by xtext then.
Which method is necessary to call to update the resource description?
|
|
|
| Topic: Create Automatically Field in Xtext Editor |
|---|
|
| Topic: Save Action Error |
|---|
| Save Action Error [message #1060615] |
Mon, 27 May 2013 06:35 |
junior developer Messages: 159 Registered: January 2013 |
Senior Member |
|
|
Hi all ,
I wrote code in the NatureAddingEditorCallback class.I override afterSave(XtextEditor editor) method but When I save the editor,open one dialog window .I upload screenshot.I do not this dialog window.How can I remove it?
public class EditorCallback extends NatureAddingEditorCallback {
public class EditorCallback extends NatureAddingEditorCallback {
@Override
public void afterSave(XtextEditor editor) {
System.out.println("here we go");
editor.getDocument().modify(new IUnitOfWork<Void, XtextResource>() {
@Override
public java.lang.Void exec(XtextResource state) throws Exception {
ContentModel mymodel = ((ContentModel) state.getContents().get(0));
System.out.println(mymodel);
mymodel.setName(mymodel.getDisplayName().toString());
return null;
}
});
if (isDirty()) {
editor.doSave(new NullProgressMonitor());
}
super.afterSave(editor);
}
best regards.
|
|
|
| Topic: Using a File located in workspace during Validation process |
|---|
| Using a File located in workspace during Validation process [message #1060591] |
Mon, 27 May 2013 04:17 |
Christophe g Messages: 4 Registered: March 2013 |
Junior Member |
|
|
Hello
I have a little question I couldn't solve so far.
I'm using ETL and EVL to perform a transformation on my generated model from Xtext. I use them as standalone through a call in the validation process from the embedded Eclipse workspace.
In order to work, both ETL and EVL needs to be provided a "File" instance of a file located on a folder of the "Xtext Eclipse".
I use the "platform:" URI code to access file from the embedded Eclipse workspace.
How can I create a File instance of a file in my xtext.base folder, without having to provide the full path to the file ?
I know the issue might sound Epsilon-related rather then Xtext-related, but the problem is just about loading a file, from Xtext validation process, so I thought here would be a better place to get some help.
Thanks for your help.
Best reguards,
Christophe
[Updated on: Mon, 27 May 2013 04:23] Report message to a moderator
|
|
|
| Topic: generated launch configuration |
|---|
| generated launch configuration [message #1060497] |
Sat, 25 May 2013 08:24 |
Lorenzo Bettini Messages: 1128 Registered: July 2009 |
Senior Member |
|
|
Hi
when running the mwe2 for the first time, Xtext also generates a launch
configuration with proper MaxPergGen arguments (to avoid out of memory
errors), in the (hidden by default) directory .launch, called "Launch
Runtime Eclipse.launch"
right-clicking on the project, Run As... shows "Eclipse Application" but
selecting this will NOT use the generated launch configuration (it
creates a new launch configuration, alas, without MaxPermGen
arguments)... one has to open the Run Configurations dialog in order to
use the generated launch configuration (and to know about that, since by
default .launch is hidden)...
is that the intended behavior?
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
|
|
|
| Topic: Blog post about Ecore EPackage import as reference |
|---|
|
| Topic: Creating xtext file as model from GMF |
|---|
| Creating xtext file as model from GMF [message #1060415] |
Fri, 24 May 2013 10:24 |
serhat gezgin Messages: 136 Registered: January 2013 Location: Izmir |
Senior Member |
|
|
Hi,
I need to create xtext resource on 'XXXDiagramEditorUtil' class createDiagram() method
cause i synchronized GMF and xtext but create diagram action give me error because it
want to create emf resourse but i need xtext resource
so i think i need to change createDiagram() method. But i cant do this.
(now i can do create xtext resource by hand than generate diagram but i cant start from diagram)
Do anyone have tried it before ?
Regards.
|
|
|
| Topic: Error resolving cross references on resource |
|---|
| Error resolving cross references on resource [message #1060272] |
Thu, 23 May 2013 14:57 |
Phil H Messages: 70 Registered: November 2012 |
Member |
|
|
Hello,
I integrated an Xtext in a GMF editor and unfortunately get the following error when I save my diagram:
1397 [Worker-0] ERROR org.eclipse.xtext.builder.clustering.ClusteringBuilderState - Error resolving cross references on resource 'platform:/resource/hg/default.pld'
java.lang.NullPointerException
at org.eclipse.xtext.builder.builderState.BuilderStateUtil.create(BuilderStateUtil.java:33)
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:212)
at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:104)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:168)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:146)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:95)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
What is causing this?
|
|
|
| Topic: Applying (uml) stereotypes? |
|---|
| Applying (uml) stereotypes? [message #1059990] |
Wed, 22 May 2013 09:07 |
Dennis D. Messages: 9 Registered: April 2013 |
Junior Member |
|
|
Hi,
as a more recent follow up of http://www.eclipse.org/forums/index.php/mv/msg/18749/60087/#msg_60087 I am interested in applying a stereotype to an xtext element.
Is there any progress here or any suggestions to do it with current versions?
I'd like to define elements in my dsl and use them from uml:
xtext:
MyElem returns my::mystereotype: 'MyElem' name=ID;
... and use/reference it in uml wherever my::mystereotype is expected. I can get it all working with "returns uml::class" instead of the stereotype, however I need to have stereotypes applied.
The link cited above is not of much help to me as further references there are broken urls.
thanks
dennis
|
|
|
| Topic: reload all elements from the XMFResource |
|---|
|
| Topic: add a field Automatically |
|---|
| add a field Automatically [message #1059891] |
Wed, 22 May 2013 02:42 |
junior developer Messages: 159 Registered: January 2013 |
Senior Member |
|
|
Hi all ,
When I create an element in the editor,default element must be added in the different element.I want to do this case.How can I do it in the Xtext.Which class is used for it
Best regrads,
|
|
|
| Topic: add a field Automatically |
|---|
| add a field Automatically [message #1059889] |
Wed, 22 May 2013 02:42 |
junior developer Messages: 159 Registered: January 2013 |
Senior Member |
|
|
Hi all ,
When I create an element in the editor,default element must be added in the different element.I want to do this case.How can I do it in the Xtext.Which class is used for it
Best regrads,
|
|
|
Powered by
FUDForum. Page generated in 0.03806 seconds