| Errors Creating Addons [message #1126248] |
Sat, 05 October 2013 06:20  |
Ghislain Mustermann Messages: 7 Registered: April 2013 |
Junior Member |
|
|
Hello Everyone,
im building a E4 Application with e(fx)clipse. I tried to create a Addon for my Trimmed Window like this :
package de.demo.app.handlers;
import javax.annotation.PostConstruct;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow;
public class InitWindowAddon {
@PostConstruct
void init(MApplication application) {
/*
* Preconditions.checkArgument(application != null,
* "Application dont exist!");
*
* Preconditions.checkArgument(!application.getChildren().isEmpty(),
* "Application has no Children!");
*/
if (application.getChildren().get(0) instanceof MTrimmedWindow) {
MTrimmedWindow window = (MTrimmedWindow) application.getChildren()
.get(0);
window.setLabel("Es ist perfekt!!!");
}
}
}
I also tried to used Guava Librairies without success. But after a while when i run my product i see those Errors :
Quote:!ENTRY org.eclipse.emf.ecore 2 0 2013-10-05 11:56:12.455
!MESSAGE Both 'org.eclipse.e4.tools.css.editor.ui' and 'org.eclipse.fx.ide.css.ui' register an extension parser for 'css'
Invalid type stored in transient data with the key binding
Invalid type stored in transient data with the key binding
Quote:!ENTRY org.eclipse.equinox.event 4 0 2013-10-05 11:56:13.216
!MESSAGE Exception while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/UIElement/widget/SET] to handler org.eclipse.e4.ui.services.internal.events.UIEventHandler@6d9ef75f
!STACK 0
java.lang.ClassCastException: org.eclipse.fx.ui.workbench.renderers.fx.DefWindowRenderer$WWindowImpl cannot be cast to org.eclipse.swt.widgets.Widget
I has already such Errors in the past, and i removed from my run configurations all SWT Plugins. But this Errors suddenly come again.
Why and How can i solve this?
|
|
|
|
| Re: Errors Creating Addons [message #1127155 is a reply to message #1127070] |
Sun, 06 October 2013 06:23   |
Ghislain Mustermann Messages: 7 Registered: April 2013 |
Junior Member |
|
|
Hallo Tom,
i just want to use a pure e4 JavaFX. I follow your tipps and tried to set a new Target Platform for my Project like this : wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4.
Im using Eclipse Kepler and after set the Target Platform i see an Error saying that Quote:You have selected a target with a newer version than your current Eclipse Installation. This can cause unexpected behaviour in PDE. Please use a newer version of eclipse.
And when im running the product.launch : Quote:"org.eclipse.fx.ui.workbench.fx" was unable to instantiate class "org.eclipse.fx.ui.workbench.fx.E4Application".
By the way my Project is build like i already wrote on Google Groups : groups.google.com/forum/#!topic/efxclipse/olNlqcbkhe8.
Thanks
[Updated on: Sun, 06 October 2013 07:07] Report message to a moderator
|
|
|
|
| Re: Errors Creating Addons [message #1127215 is a reply to message #1127190] |
Sun, 06 October 2013 07:51   |
Ghislain Mustermann Messages: 7 Registered: April 2013 |
Junior Member |
|
|
Hi Tom,
Yes the Project itself compile (mvn clean install). But when i run it (right click -> run as.. ), it dont show my application anymore and show this error message. Thats happend since i touched the Target Platform in Eclipse Preferences.
Here the Whole Error :
Quote:!ENTRY org.eclipse.equinox.app 4 0 2013-10-06 14:20:51.421
!MESSAGE Plug-in "org.eclipse.fx.ui.workbench.fx" was unable to instantiate class "org.eclipse.fx.ui.workbench.fx.E4Application".
!STACK 0
org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.fx.ui.workbench.fx" was unable to instantiate class "org.eclipse.fx.ui.workbench.fx.E4Application".
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:186)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NullPointerException: A null service reference is not allowed.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:586)
at org.eclipse.fx.osgi.util.LoggerCreator.createLogger(LoggerCreator.java:37)
at org.eclipse.fx.ui.workbench.fx.E4Application.<init>(E4Application.java:94)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
... 6 more
Thanks
[Updated on: Sun, 06 October 2013 08:22] Report message to a moderator
|
|
|
|
|
| Re: Errors Creating Addons [message #1127320 is a reply to message #1127275] |
Sun, 06 October 2013 10:28  |
Thomas Schindl Messages: 4651 Registered: July 2009 |
Senior Member |
|
|
No ours is 10.0.1.v201203051515
Tom
On 06.10.13 15:25, Ghislain Mustermann wrote:
> To Close my Post. I see into the Plugins Librairies that efxclipse use
> Guava is that the same version than this one :
> code.google.com/p/guava-libraries/wiki/Release15 ??
>
> Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02181 seconds