|
Re: Converting the MyDSL project to an non-PlugIn Project [message #1032139 is a reply to message #1027639] |
Tue, 02 April 2013 16:00 |
Sebastian Zarnekow Messages: 3118 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
|
|
|
Powered by
FUDForum. Page generated in 0.02920 seconds