Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Changing name of default projects
Changing name of default projects [message #1722141] Wed, 03 February 2016 04:25 Go to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
Hi ,

I have used the default names .I wish to change the name of the sub-project from "abc.ide" to "abc-ide".

When I do this,
I get an exception in mwe2

java.lang.RuntimeException: Problems running workflow org.xtext.example.mydsl.GenerateEinDsl:

abc.ide' does not exist

I understand that there is a place where the workflow looks for ".ide" . However, I am unable to find it.

Please suggest.
Re: Changing name of default projects [message #1722146 is a reply to message #1722141] Wed, 03 February 2016 05:32 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14076
Registered: July 2009
Senior Member
web = {
					enabled = true
					name = "xxxx"
				}


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Changing name of default projects [message #1722149 is a reply to message #1722146] Wed, 03 February 2016 06:26 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member


currently my config looks like this

runtimeTest = {
enabled = true
}
ideaPlugin = {
enabled = false
}
web = {
enabled = true
}
mavenLayout = true
}


Is the default project with extention ".ide" used . I only wish to use the web based editor.
As I understand ideaPlugin is different from project with ".ide" extention.

Also , should the name be full name or just the extension like .web or -web.
Re: Changing name of default projects [message #1722151 is a reply to message #1722149] Wed, 03 February 2016 06:31 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14076
Registered: July 2009
Senior Member
just give it a try ?!? it is fullname

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Changing name of default projects [message #1722155 is a reply to message #1722151] Wed, 03 February 2016 06:58 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
https://github.com/eclipse/xtext/blob/master/plugins/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/model/project/StandardProjectConfig.java

BundleProjectConfig _genericIde = this.getGenericIde();
if (Objects.equal(project, _genericIde)) {
_matched=true;
_switchResult = (this.baseName + ".ide");
}

I saw that .ide is added here.

Could you tell me what is the name of this configuration.? Its not the web project.
Re: Changing name of default projects [message #1722156 is a reply to message #1722155] Wed, 03 February 2016 07:01 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
I got it it is called.
genericIde = {
enabled = true
name = "org.eclipse.xtend.ide.common"
}

I wish to understand if it is really used when I am using only the web editor.
Re: Changing name of default projects [message #1722157 is a reply to message #1722155] Wed, 03 February 2016 07:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14076
Registered: July 2009
Senior Member
hi, first of all: do you know you can use Content assist in the workflow? (at least in eclipse this works fine - if in your enviroment, then file a bug

i asume (not tested) something like

				genericIde = {
					name ="not-ide"
				}


will work fine (not tested so far - you may have to rename the root Folder manually)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Changing name of default projects [message #1722159 is a reply to message #1722157] Wed, 03 February 2016 07:19 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
Yes Thank You. writing the full name worked. I don't know about content assist in workflow. Please share some doc or resources.
Re: Changing name of default projects [message #1722162 is a reply to message #1722159] Wed, 03 February 2016 07:31 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14076
Registered: July 2009
Senior Member
in eclipse i can hit crtl+space e.g. at

			project = StandardProjectConfig {
				baseName = "org.xtext.example.mydsl3"
				rootPath = rootPath
				web = {
					enabled = true
				}
				| //HERE
				mavenLayout = true
			}


and i get genericIde proposed


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Loading XMI fails due to unresolved references that are provided by the LazyLinker when using DSL
Next Topic:Understand Build
Goto Forum:
  


Current Time: Sat Oct 23 02:10:25 GMT 2021

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

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

Back to the top