Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Generating edit/editor project
Generating edit/editor project [message #1858337] Wed, 29 March 2023 08:31 Go to next message
Eclipse UserFriend
Hi,

I'm trying to define a language in xtext where I also want the corresponding .edit and .editor project being generated.

I found an old post form Marc Hamilton where he also tries to achieve this. There the solution is to generate the edit/editor plugins once manuallay after the genmodel has been generted (by xtext).

Unfortunately I don't succeed. Starting from the example that is created by the 'New Xtext Project' wizard in eclipse, I generated the language and using the generated genmodel, I generated the org.xtext.example.mydsl.edit plugin once.

Then I adapt/add the following snippet to the mwe2 file:
language = StandardLanguage {
	...			
	fragment = ecore.EMFGeneratorFragment2 {
		generateEdit= true
	}
}


Executing the mwe2 file leads to:
org.eclipse.emf.common.util.WrappedException: java.io.IOException: The path '/org.xtext.example.mydsl.edit/src/org/xtext/example/mydsl/myDsl/provider/MyDslEditPlugin.java' is unmapped

I assume that xtext tries to generate gthe edit plutin into an non-existing directory. Adding editDirectory = "foo" does not change the error message. It seems to ignore the editDirectory directive.

Any ideas how to solve this e.g. what am I doing wrong?

Regards,
Wilbert
Re: Generating edit/editor project [message #1858341 is a reply to message #1858337] Wed, 29 March 2023 11:27 Go to previous messageGo to next message
Eclipse UserFriend
Can you try the workaround in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=519690
or something similar to https://www.eclipse.org/forums/index.php?t=msg&th=1077432&goto=1732263&#msg_1732263

[Updated on: Wed, 29 March 2023 12:46] by Moderator

Re: Generating edit/editor project [message #1858354 is a reply to message #1858341] Thu, 30 March 2023 03:00 Go to previous message
Eclipse UserFriend
Hi Christian,

Thanks for your reply. Indeed, adding a bean like below did the trick:
    bean = StandaloneSetup {
            scanClassPath = true
            platformUri = ".."
        }


Regards,
Wilbert
Previous Topic:Load Resources
Next Topic:The annotation CheckType.NORMAL does not work
Goto Forum:
  


Current Time: Thu May 15 06:45:26 EDT 2025

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

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

Back to the top