Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generating edit/editor project
Generating edit/editor project [message #1858337] Wed, 29 March 2023 12:31 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior Member
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 15:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14687
Registered: July 2009
Senior Member
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 29 March 2023 16:46]

Report message to a moderator

Re: Generating edit/editor project [message #1858354 is a reply to message #1858341] Thu, 30 March 2023 07:00 Go to previous message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior Member
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: Mon Jun 24 15:32:06 GMT 2024

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

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

Back to the top