Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Converting the MyDSL project to an non-PlugIn Project
Converting the MyDSL project to an non-PlugIn Project [message #1027639] Wed, 27 March 2013 08:02 Go to next message
Felix Feisst is currently offline Felix FeisstFriend
Messages: 20
Registered: February 2012
Location: Germany
Junior Member
I have converted the the base plug-in project of my DSL to a simple java project. The purpose is, that i have easy build support to provide a JAR for the project, because I need my DSL compiler also in a standalone configuration.

The MyDSL.ui plug-in now has the JAR file of the base project on its runtime classpath.

Everything works as expected, except when I shutdown the started IDE, an exception is thrown, telling that the application has not been initialized.

Via debuggin I found, that the framework's stop() method is called before the Ui project's Activator.stop() method leading to this exception.

What do I have to change to get rid of the exception and are there other things I need to change when my base project is no longer a plug-in project?

Regards,
Felix

The strack trace:
org.eclipse.core.runtime.AssertionFailedException: assertion failed: The application has not been initialized.
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
	at org.eclipse.core.internal.runtime.InternalPlatform.assertInitialized(InternalPlatform.java:140)
	at org.eclipse.core.internal.runtime.InternalPlatform.getStateLocation(InternalPlatform.java:611)
	at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java:313)
	at org.eclipse.ui.plugin.AbstractUIPlugin.getStateLocationOrNull(AbstractUIPlugin.java:709)
	at org.eclipse.ui.plugin.AbstractUIPlugin.saveDialogSettings(AbstractUIPlugin.java:501)
	at org.eclipse.ui.plugin.AbstractUIPlugin.stop(AbstractUIPlugin.java:629)
Re: Converting the MyDSL project to an non-PlugIn Project [message #1032139 is a reply to message #1027639] Tue, 02 April 2013 16:00 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 2942
Registered: July 2009
Senior Member
Am 27.03.13 09:02, schrieb Felix Atmanspacher:
> I have converted the the base plug-in project of my DSL to a simple java
> project. The purpose is, that i have easy build support to provide a JAR
> for the project, because I need my DSL compiler also in a standalone
> configuration.
>
> The MyDSL.ui plug-in now has the JAR file of the base project on its
> runtime classpath.
>
> Everything works as expected, except when I shutdown the started IDE, an
> exception is thrown, telling that the application has not been initialized.
>
> Via debuggin I found, that the framework's stop() method is called
> before the Ui project's Activator.stop() method leading to this exception.
>
> What do I have to change to get rid of the exception and are there other
> things I need to change when my base project is no longer a plug-in
> project?
>
> Regards,
> Felix
>
> The strack trace:
>
> org.eclipse.core.runtime.AssertionFailedException: assertion failed: The
> application has not been initialized.
> at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.assertInitialized(InternalPlatform.java:140)
>
> at
> org.eclipse.core.internal.runtime.InternalPlatform.getStateLocation(InternalPlatform.java:611)
>
> at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java:313)
> at
> org.eclipse.ui.plugin.AbstractUIPlugin.getStateLocationOrNull(AbstractUIPlugin.java:709)
>
> at
> org.eclipse.ui.plugin.AbstractUIPlugin.saveDialogSettings(AbstractUIPlugin.java:501)
>
> at
> org.eclipse.ui.plugin.AbstractUIPlugin.stop(AbstractUIPlugin.java:629)
>

You'll have to make sure that the EPackage is registered properly.
Anyway, you can of course create a JAR for a plugin project, too.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:Multiple Validation Classes -- Dynamic
Next Topic:No src_gen code are automatically generated for the ".dmodel" file in the "domain-mod
Goto Forum:
  


Current Time: Thu Nov 27 14:28:37 GMT 2014

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

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