Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XWT » XWT Table DataBinding(Table Databinding)
XWT Table DataBinding [message #1387592] Wed, 25 June 2014 05:48 Go to next message
Sascha Hanke is currently offline Sascha Hanke
Messages: 15
Registered: April 2014
Location: Germany
Junior Member
Hello there,
I have a problem with XWT databinding. I got my XWT table and a list as an input. I got my columns displayed but it wont show me content. The Eclipse console says:
!ENTRY org.eclipse.core.databinding 2 0 2014-06-25 11:39:22.228
!MESSAGE elementType cannot be null

What can I do to fix this?

My classes :

<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" x:Class="de.datec.kassenbuch.ui.xwt.DetailPartXwt" xmlns:p1="clr-namespace:org.eclipse.jface.viewers"
xmlns:p2="clr-namespace:de.datec.kassenbuch.ui.table">
<Composite.layout>
<FillLayout/>
</Composite.layout>
<TableViewer x:Style="BORDER | FULL_SELECTION" input="{Binding path=buchungen}">
<TableViewer.table headerVisible="true" linesVisible="true"/>
<TableViewer.columns headerVisible="true">
<TableViewerColumn width="50" text="ID" bindingPath="id">
<TableViewerColumn.labelProvider>
<p2:IdColumnLabelProvider/>
</TableViewerColumn.labelProvider>
</TableViewerColumn>
<TableViewerColumn width="440" text="Datum" bindingPath="datum">
<TableViewerColumn.labelProvider>
<p2:DateColumnLabelProvider/>
</TableViewerColumn.labelProvider>
</TableViewerColumn>
<TableViewerColumn width="440" text="Betrag" bindingPath="betrag">
<TableViewerColumn.labelProvider>
<p2:AmountColumnLabelProvider/>
</TableViewerColumn.labelProvider>
</TableViewerColumn>
<TableViewerColumn width="400" text="Einnahme / Ausgabe" bindingPath="ausgabe">
<TableViewerColumn.labelProvider>
<p2:TakeGiveColumnLabelProvider/>
</TableViewerColumn.labelProvider>
</TableViewerColumn>
</TableViewer.columns>
</TableViewer>
</Composite>


public DetailPartXwt(Composite parent, int style, Object object) {
super(parent, style);
setLayout(new FillLayout());
// load XWT
String name = DetailPartXwt.class.getSimpleName()
+ IConstants.XWT_EXTENSION_SUFFIX;
try {

URL url = DetailPartXwt.class.getResource(name);
Map<String, Object> options = new HashMap<String, Object>();

TableModel model = new TableModel();
options.put(IXWTLoader.DATACONTEXT_PROPERTY, model);
options.put(IXWTLoader.CLASS_PROPERTY, this);
options.put(IXWTLoader.CONTAINER_PROPERTY, this);
XWT.setLoadingContext(new DefaultLoadingContext(this.getClass()
.getClassLoader()));
XWT.loadWithOptions(url, options);

} catch (Throwable e) {
throw new Error("Unable to load " + name, e);
}
}


public class TableModel {

@Inject IDataService dataService;


List<KassenBuchungReduced> buchungen = new ArrayList<KassenBuchungReduced>(); {
KassenBuchungReduced test = new KassenBuchungReduced(1, new Date(120,2,2), 350, false);
}



public List<KassenBuchungReduced> getBuchungen() {
return buchungen;
}

public void setBuchungen(List<KassenBuchungReduced> buchungen) {
this.buchungen = buchungen;
}
}
Re: XWT Table DataBinding [message #1387888 is a reply to message #1387592] Wed, 25 June 2014 14:43 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 736
Registered: July 2009
Senior Member
Could you please provide the full stack trace?
Re: XWT Table DataBinding [message #1388226 is a reply to message #1387888] Thu, 26 June 2014 02:25 Go to previous messageGo to next message
Sascha Hanke is currently offline Sascha Hanke
Messages: 15
Registered: April 2014
Location: Germany
Junior Member
Here:

!SESSION 2014-06-26 08:24:55.014 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product de.datec.kassenbuch.ui.product -clearPersistedState
Command-line arguments: -product de.datec.kassenbuch.ui.product -data C:\Users\sascha.DATEC-SCHMIDT\workspace\EclipseXWT/../runtime-de.datec.kassenbuch.ui.product -dev file:C:/Users/sascha.DATEC-SCHMIDT/workspace/EclipseXWT/.metadata/.plugins/org.eclipse.pde.core/de.datec.kassenbuch.ui.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -clearPersistedState

!ENTRY org.eclipse.core.databinding 2 0 2014-06-26 08:25:04.089
!MESSAGE elementType cannot be null
Re: XWT Table DataBinding [message #1388617 is a reply to message #1388226] Thu, 26 June 2014 14:15 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 736
Registered: July 2009
Senior Member
Unfortunately, that is just the internal exception message thrown by the databinding framework.
Instead of this (or additionally):

throw new Error("Unable to load " + name, e);


Do the following and provide the output of it (that is the stack trace):

e.printStackTrace()



Sascha Hanke wrote on Thu, 26 June 2014 08:25
Here:

!SESSION 2014-06-26 08:24:55.014 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product de.datec.kassenbuch.ui.product -clearPersistedState
Command-line arguments: -product de.datec.kassenbuch.ui.product -data C:\Users\sascha.DATEC-SCHMIDT\workspace\EclipseXWT/../runtime-de.datec.kassenbuch.ui.product -dev file:C:/Users/sascha.DATEC-SCHMIDT/workspace/EclipseXWT/.metadata/.plugins/org.eclipse.pde.core/de.datec.kassenbuch.ui.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -clearPersistedState

!ENTRY org.eclipse.core.databinding 2 0 2014-06-26 08:25:04.089
!MESSAGE elementType cannot be null

Re: XWT Table DataBinding [message #1389102 is a reply to message #1388617] Fri, 27 June 2014 06:42 Go to previous messageGo to next message
Sascha Hanke is currently offline Sascha Hanke
Messages: 15
Registered: April 2014
Location: Germany
Junior Member
The problem is that there is no difference.
I don't get any output from
e.printStackTrace()



Edit: I just get the same message I posted before.

[Updated on: Fri, 27 June 2014 06:43]

Report message to a moderator

Re: XWT Table DataBinding [message #1389301 is a reply to message #1389102] Fri, 27 June 2014 11:59 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 736
Registered: July 2009
Senior Member
Maybe, you could extract a standalone sample that reproduces the error message?
And did you check your POJO KassenBuchungReduced? Mabye, it returns null in one of its getters?


Sascha Hanke wrote on Fri, 27 June 2014 12:42
The problem is that there is no difference.
I don't get any output from
e.printStackTrace()



Edit: I just get the same message I posted before.

Re: XWT Table DataBinding [message #1392395 is a reply to message #1389301] Wed, 02 July 2014 05:08 Go to previous messageGo to next message
Sascha Hanke is currently offline Sascha Hanke
Messages: 15
Registered: April 2014
Location: Germany
Junior Member
Hey there,
it was all my fault. I don't know how but I got the wrong Databinding Plugin(wrong Version). I deleted it from my plugin.xml and everything was fine.

Oh yes and my TableModel class had a typo.. shame on me...

Much love for XWT!


Greeting Sascha
Re: XWT Table DataBinding [message #1393292 is a reply to message #1392395] Thu, 03 July 2014 11:06 Go to previous messageGo to next message
Sascha Hanke is currently offline Sascha Hanke
Messages: 15
Registered: April 2014
Location: Germany
Junior Member
Hello,

now I got a new problem. I've read http://erdalkaracade.blogspot.de/2013/07/eclipse-e4-emf-and-xwt-in-action.htmland I want to export the selection from my table I made with xwt and use it in another part, just like you did.

When I use
<Composite.Resources>
		<Var x:Name="booking" varName="selectedBuchung"/>
	</Composite.Resources>


I get the following error :

!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-07-03 17:02:02.612
!MESSAGE Unable to create class 'de.datec.kassenbuch.ui.view.MoreDetailView' from bundle '126'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.Error: Unable to load MoreDetailPartXwt.xwt
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:65)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:101)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:581)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1038)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:162)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.Error: Unable to load MoreDetailPartXwt.xwt
at de.datec.kassenbuch.ui.xwt.MoreDetailPartXwt.<init>(MoreDetailPartXwt.java:45)
at de.datec.kassenbuch.ui.view.MoreDetailView.postConstruct(MoreDetailView.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 82 more
Caused by: org.eclipse.xwt.XWTException: Type Var is not found.
at org.eclipse.xwt.XWTLoader.getMetaclass(XWTLoader.java:1151)
at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:434)
at org.eclipse.xwt.javabean.ResourceLoader.applyStyles(ResourceLoader.java:872)
at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:654)
at org.eclipse.xwt.javabean.ResourceLoader.createUIElement(ResourceLoader.java:366)
at org.eclipse.xwt.internal.core.Core.createCLRElement(Core.java:625)
at org.eclipse.xwt.internal.core.Core.load(Core.java:754)
at org.eclipse.xwt.internal.core.Core.load(Core.java:655)
at org.eclipse.xwt.XWTLoader.loadWithOptions(XWTLoader.java:1072)
at org.eclipse.xwt.XWT.loadWithOptions(XWT.java:623)
at de.datec.kassenbuch.ui.xwt.MoreDetailPartXwt.<init>(MoreDetailPartXwt.java:39)
... 88 more




Has the name changed? Or the whole way to do this?

When I do the e4 Inject/Optional/Named("selectedBuchung") thing, the object i get is null.
@Inject @Optional @Named("selectedBuchung")
	private Object modelElement;



Greeting Sascha

[Updated on: Thu, 03 July 2014 11:06]

Report message to a moderator

Re: XWT Table DataBinding [message #1395275 is a reply to message #1393292] Sun, 06 July 2014 13:30 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 736
Registered: July 2009
Senior Member
Hi Sascha,
The E4 integration using the Var/Export mechanism was a proposal.
Up to now, no feedback from the community, so it did not make into the final release.

You can check out the sources into your workspace and build it yourself, for now:

git: http://git.eclipse.org/c/xwt/org.eclipse.xwt.git/tree/org.eclipse.xwt.e4

If you want this feature to be integrated into XWT itself, please file a new enhancement request.
And please do not hijack existing forum posts for different issues Smile


Sascha Hanke wrote on Thu, 03 July 2014 17:06
Hello,

now I got a new problem. I've read http://erdalkaracade.blogspot.de/2013/07/eclipse-e4-emf-and-xwt-in-action.htmland I want to export the selection from my table I made with xwt and use it in another part, just like you did.

When I use
<Composite.Resources>
		<Var x:Name="booking" varName="selectedBuchung"/>
	</Composite.Resources>


I get the following error :

!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-07-03 17:02:02.612
!MESSAGE Unable to create class 'de.datec.kassenbuch.ui.view.MoreDetailView' from bundle '126'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.Error: Unable to load MoreDetailPartXwt.xwt
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:65)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:101)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:581)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1038)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:162)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.Error: Unable to load MoreDetailPartXwt.xwt
at de.datec.kassenbuch.ui.xwt.MoreDetailPartXwt.<init>(MoreDetailPartXwt.java:45)
at de.datec.kassenbuch.ui.view.MoreDetailView.postConstruct(MoreDetailView.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 82 more
Caused by: org.eclipse.xwt.XWTException: Type Var is not found.
at org.eclipse.xwt.XWTLoader.getMetaclass(XWTLoader.java:1151)
at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:434)
at org.eclipse.xwt.javabean.ResourceLoader.applyStyles(ResourceLoader.java:872)
at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:654)
at org.eclipse.xwt.javabean.ResourceLoader.createUIElement(ResourceLoader.java:366)
at org.eclipse.xwt.internal.core.Core.createCLRElement(Core.java:625)
at org.eclipse.xwt.internal.core.Core.load(Core.java:754)
at org.eclipse.xwt.internal.core.Core.load(Core.java:655)
at org.eclipse.xwt.XWTLoader.loadWithOptions(XWTLoader.java:1072)
at org.eclipse.xwt.XWT.loadWithOptions(XWT.java:623)
at de.datec.kassenbuch.ui.xwt.MoreDetailPartXwt.<init>(MoreDetailPartXwt.java:39)
... 88 more




Has the name changed? Or the whole way to do this?

When I do the e4 Inject/Optional/Named("selectedBuchung") thing, the object i get is null.
@Inject @Optional @Named("selectedBuchung")
	private Object modelElement;



Greeting Sascha

Re: XWT Table DataBinding [message #1396505 is a reply to message #1395275] Tue, 08 July 2014 07:46 Go to previous message
Sascha Hanke is currently offline Sascha Hanke
Messages: 15
Registered: April 2014
Location: Germany
Junior Member
Hi Erdal,

thanks again for your help!
I'm learning Java/Eclipse since 3 months and I think XWT would make UI development so much faster. The problem is I don't know how to implement this feature myself but I got a different solution. Enhancement request this evening.

Greetings Sascha
Previous Topic:Download and Install XWT
Next Topic:XWT set Datetime/Combo
Goto Forum:
  


Current Time: Sat Aug 23 15:57:15 EDT 2014

Powered by FUDForum. Page generated in 0.02145 seconds