Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Model refactoring and data Binding
Model refactoring and data Binding [message #515432] Thu, 18 February 2010 13:20 Go to next message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 397
Registered: September 2009
Senior Member
Hi,
I wanted to refactor my model:
several nodes have a bunch of fields that are equivalent:

public interface Book extends EObject {
World getWorld();
Project getProject();
EList<Actor> getActor();
EList<Chapter> getChapter();
EList<Location> getLocation();
EList<Item> getItem();
String getTitle();
boolean isUnused();
TimeEvent getTime();
String getDesc();
String getContent();
Chronology getChronology();
Image getImage();
}
public interface Chapter extends EObject {
Book getBook();
EList<Actor> getActor();
EList<Scene> getScene();
boolean isSectionStart();
String getTitle();
boolean isUnused();
String getDesc();
String getContent();
Chronology getChronology();
Image getImage();
}
public interface Item extends EObject {
Actor getOwner();
String getTitle();
boolean isUnused();
String getDesc();
String getContent();
Chronology getChronology();
Image getImage();
}
.... etc. etc.

I wanted to refactor like this:

public interface IBase extends EObject {
String getTitle();
boolean isUnused();
String getDesc();
String getContent();
Chronology getChronology();
Image getImage();
}
public interface Book extends IBase {
World getWorld();
Project getProject();
EList<Actor> getActor();
EList<Chapter> getChapter();
EList<Location> getLocation();
EList<Item> getItem();
}
public interface Chapter extends IBase {
Book getBook();
EList<Actor> getActor();
EList<Scene> getScene();
boolean isSectionStart();
}
public interface Item extends IBase {
Actor getOwner();
}

EMF is happy and generates the right code, but Databinding isn't!

I had things like:

protected DataBindingContext initDataBindings() {
DataBindingContext bindingContext = new DataBindingContext();
//
IObservableValue txtTitleObserveTextObserveWidget =
SWTObservables.observeText(txtTitle, SWT.Modify);
IObservableValue bookTitleObserveValue =
EMFObservables.observeDetailValue(Realm.getDefault(), observableChapter,
Literals.CHAPTER__TITLE);
bindingContext.bindValue(txtTitleObserveTextObserveWidget,
bookTitleObserveValue, null, null);
//
IObservableValue txtDescObserveTextObserveWidget =
SWTObservables.observeText(txtDesc, SWT.Modify);
IObservableValue bookDescObserveValue =
EMFObservables.observeDetailValue(Realm.getDefault(), observableChapter,
Literals.CHAPTER__DESC);
bindingContext.bindValue(txtDescObserveTextObserveWidget,
bookDescObserveValue, null, null);
//
ObservableListContentProvider listContentProvider = new
ObservableListContentProvider();
tViewer.setContentProvider(listContentProvider);
//
IObservableMap[] observeMaps =
EMFObservables.observeMaps(listContentProvider.getKnownEleme nts(), new
EStructuralFeature[]{Literals.SCENE__TITLE, Literals.SCENE__GOAL,
Literals.SCENE__DESC});
tViewer.setLabelProvider(new
ObservableMapLabelProvider(observeMaps));
//
IObservableList bookChapterObserveList =
EMFObservables.observeDetailList(Realm.getDefault(), observableChapter,
Literals.CHAPTER__SCENE);
tViewer.setInput(bookChapterObserveList);
//
return bindingContext;
}

This has errors because Literals.CHAPTER__TITLE, Literals.CHAPTER__DESC,
Literals.SCENE__TITLE, Literals.SCENE__DESC do not exist anymore.

I tried changing the above to:

protected DataBindingContext initDataBindings() {
DataBindingContext bindingContext = new DataBindingContext();
//
IObservableValue txtTitleObserveTextObserveWidget =
SWTObservables.observeText(txtTitle, SWT.Modify);
IObservableValue bookTitleObserveValue =
EMFObservables.observeDetailValue(Realm.getDefault(), observableChapter,
Literals.IBASE__TITLE);
bindingContext.bindValue(txtTitleObserveTextObserveWidget,
bookTitleObserveValue, null, null);
//
IObservableValue txtDescObserveTextObserveWidget =
SWTObservables.observeText(txtDesc, SWT.Modify);
IObservableValue bookDescObserveValue =
EMFObservables.observeDetailValue(Realm.getDefault(), observableChapter,
Literals.IBASE__DESC);
bindingContext.bindValue(txtDescObserveTextObserveWidget,
bookDescObserveValue, null, null);
//
ObservableListContentProvider listContentProvider = new
ObservableListContentProvider();
tViewer.setContentProvider(listContentProvider);
//
IObservableMap[] observeMaps =
EMFObservables.observeMaps(listContentProvider.getKnownEleme nts(), new
EStructuralFeature[]{Literals.IBASE__TITLE, Literals.SCENE__GOAL,
Literals.IBASE__DESC});
tViewer.setLabelProvider(new
ObservableMapLabelProvider(observeMaps));
//
IObservableList bookChapterObserveList =
EMFObservables.observeDetailList(Realm.getDefault(), observableChapter,
Literals.CHAPTER__SCENE);
tViewer.setInput(bookChapterObserveList);
//
return bindingContext;
}

It compiles, but it does not run:

org.eclipse.core.runtime.AssertionFailedException: unknown saveable:
org.eclipse.ui.internal.DefaultSaveable@1a73d30 from part:
org.eclipse.ui.internal.ErrorEditorPart@1a73d30
at org.eclipse.ui.internal.SaveablesList.logWarning(SaveablesLi st.java:187)
at org.eclipse.ui.internal.SaveablesList.addModel(SaveablesList .java:117)
at org.eclipse.ui.internal.SaveablesList.addModels(SaveablesLis t.java:289)
at org.eclipse.ui.internal.SaveablesList.postOpen(SaveablesList .java:684)
at org.eclipse.ui.internal.PartList.partOpened(PartList.java:23 4)
at org.eclipse.ui.internal.PartList.access$0(PartList.java:210)
....

I'm not surprised it doesn't run. Some information is lost in the
translation (.e.g.: the oserveMaps() cannot know if it should observe a
BOOK__TITLE or a SCENE_TITLE), but I can' see how add it back.

Any suggestion is VERY welcome.

Regards
Mauro

P.S.: which is the right group for this kind of questions? Should I keep
cross-posting?

Cheers!
Mauro
Re: Model refactoring and data Binding [message #515433 is a reply to message #515432] Thu, 18 February 2010 13:33 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5013
Registered: July 2009
Senior Member
Sorry but the exception you show doesn't has any Databinding in it.

Tom

Am 18.02.10 19:20, schrieb Mauro Condarelli:
> Hi,
> I wanted to refactor my model:
> several nodes have a bunch of fields that are equivalent:
>
> public interface Book extends EObject {
> World getWorld();
> Project getProject();
> EList<Actor> getActor();
> EList<Chapter> getChapter();
> EList<Location> getLocation();
> EList<Item> getItem();
> String getTitle();
> boolean isUnused();
> TimeEvent getTime();
> String getDesc();
> String getContent();
> Chronology getChronology();
> Image getImage();
> }
> public interface Chapter extends EObject {
> Book getBook();
> EList<Actor> getActor();
> EList<Scene> getScene();
> boolean isSectionStart();
> String getTitle();
> boolean isUnused();
> String getDesc();
> String getContent();
> Chronology getChronology();
> Image getImage();
> }
> public interface Item extends EObject {
> Actor getOwner();
> String getTitle();
> boolean isUnused();
> String getDesc();
> String getContent();
> Chronology getChronology();
> Image getImage();
> }
> ... etc. etc.
>
> I wanted to refactor like this:
>
> public interface IBase extends EObject {
> String getTitle();
> boolean isUnused();
> String getDesc();
> String getContent();
> Chronology getChronology();
> Image getImage();
> }
> public interface Book extends IBase {
> World getWorld();
> Project getProject();
> EList<Actor> getActor();
> EList<Chapter> getChapter();
> EList<Location> getLocation();
> EList<Item> getItem();
> }
> public interface Chapter extends IBase {
> Book getBook();
> EList<Actor> getActor();
> EList<Scene> getScene();
> boolean isSectionStart();
> }
> public interface Item extends IBase {
> Actor getOwner();
> }
>
> EMF is happy and generates the right code, but Databinding isn't!
>
> I had things like:
>
> protected DataBindingContext initDataBindings() {
> DataBindingContext bindingContext = new DataBindingContext();
> //
> IObservableValue txtTitleObserveTextObserveWidget =
> SWTObservables.observeText(txtTitle, SWT.Modify);
> IObservableValue bookTitleObserveValue =
> EMFObservables.observeDetailValue(Realm.getDefault(), observableChapter,
> Literals.CHAPTER__TITLE);
> bindingContext.bindValue(txtTitleObserveTextObserveWidget,
> bookTitleObserveValue, null, null);
> //
> IObservableValue txtDescObserveTextObserveWidget =
> SWTObservables.observeText(txtDesc, SWT.Modify);
> IObservableValue bookDescObserveValue =
> EMFObservables.observeDetailValue(Realm.getDefault(), observableChapter,
> Literals.CHAPTER__DESC);
> bindingContext.bindValue(txtDescObserveTextObserveWidget,
> bookDescObserveValue, null, null);
> //
> ObservableListContentProvider listContentProvider = new
> ObservableListContentProvider();
> tViewer.setContentProvider(listContentProvider);
> //
> IObservableMap[] observeMaps =
> EMFObservables.observeMaps(listContentProvider.getKnownEleme nts(), new
> EStructuralFeature[]{Literals.SCENE__TITLE, Literals.SCENE__GOAL,
> Literals.SCENE__DESC});
> tViewer.setLabelProvider(new
> ObservableMapLabelProvider(observeMaps));
> //
> IObservableList bookChapterObserveList =
> EMFObservables.observeDetailList(Realm.getDefault(), observableChapter,
> Literals.CHAPTER__SCENE);
> tViewer.setInput(bookChapterObserveList);
> //
> return bindingContext;
> }
>
> This has errors because Literals.CHAPTER__TITLE, Literals.CHAPTER__DESC,
> Literals.SCENE__TITLE, Literals.SCENE__DESC do not exist anymore.
>
> I tried changing the above to:
>
> protected DataBindingContext initDataBindings() {
> DataBindingContext bindingContext = new DataBindingContext();
> //
> IObservableValue txtTitleObserveTextObserveWidget =
> SWTObservables.observeText(txtTitle, SWT.Modify);
> IObservableValue bookTitleObserveValue =
> EMFObservables.observeDetailValue(Realm.getDefault(), observableChapter,
> Literals.IBASE__TITLE);
> bindingContext.bindValue(txtTitleObserveTextObserveWidget,
> bookTitleObserveValue, null, null);
> //
> IObservableValue txtDescObserveTextObserveWidget =
> SWTObservables.observeText(txtDesc, SWT.Modify);
> IObservableValue bookDescObserveValue =
> EMFObservables.observeDetailValue(Realm.getDefault(), observableChapter,
> Literals.IBASE__DESC);
> bindingContext.bindValue(txtDescObserveTextObserveWidget,
> bookDescObserveValue, null, null);
> //
> ObservableListContentProvider listContentProvider = new
> ObservableListContentProvider();
> tViewer.setContentProvider(listContentProvider);
> //
> IObservableMap[] observeMaps =
> EMFObservables.observeMaps(listContentProvider.getKnownEleme nts(), new
> EStructuralFeature[]{Literals.IBASE__TITLE, Literals.SCENE__GOAL,
> Literals.IBASE__DESC});
> tViewer.setLabelProvider(new
> ObservableMapLabelProvider(observeMaps));
> //
> IObservableList bookChapterObserveList =
> EMFObservables.observeDetailList(Realm.getDefault(), observableChapter,
> Literals.CHAPTER__SCENE);
> tViewer.setInput(bookChapterObserveList);
> //
> return bindingContext;
> }
>
> It compiles, but it does not run:
>
> org.eclipse.core.runtime.AssertionFailedException: unknown saveable:
> org.eclipse.ui.internal.DefaultSaveable@1a73d30 from part:
> org.eclipse.ui.internal.ErrorEditorPart@1a73d30
> at
> org.eclipse.ui.internal.SaveablesList.logWarning(SaveablesLi st.java:187)
> at
> org.eclipse.ui.internal.SaveablesList.addModel(SaveablesList .java:117)
> at
> org.eclipse.ui.internal.SaveablesList.addModels(SaveablesLis t.java:289)
> at
> org.eclipse.ui.internal.SaveablesList.postOpen(SaveablesList .java:684)
> at org.eclipse.ui.internal.PartList.partOpened(PartList.java:23 4)
> at org.eclipse.ui.internal.PartList.access$0(PartList.java:210)
> ...
>
> I'm not surprised it doesn't run. Some information is lost in the
> translation (.e.g.: the oserveMaps() cannot know if it should observe a
> BOOK__TITLE or a SCENE_TITLE), but I can' see how add it back.
>
> Any suggestion is VERY welcome.
>
> Regards
> Mauro
>
> P.S.: which is the right group for this kind of questions? Should I keep
> cross-posting?
>
> Cheers!
> Mauro
Re: Model refactoring and data Binding [message #515447 is a reply to message #515433] Thu, 18 February 2010 14:13 Go to previous messageGo to next message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 397
Registered: September 2009
Senior Member
Tom Schindl wrote:
> Sorry but the exception you show doesn't has any Databinding in it.
>
> Tom
Doubly sorry.
I sent the wrong part of the log.
This is complete.


!SESSION 2010-02-18 20:09:49.353
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Framework arguments: -product Writer.product
Command-line arguments: -product Writer.product -data
C:\Users\mauro\workspace/../runtime-Writer.product -dev
file:C:/Users/mauro/workspace/.metadata/.plugins/org.eclipse .pde.core/Writer.product/dev.properties
-os win32 -ws win32 -arch x86 -consoleLog

!ENTRY org.eclipse.ui 4 4 2010-02-18 20:09:52.712
!MESSAGE Reference item additions not found for action null
Problem loading file:/C:/TEMP/test/La%20Missione.world
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'http:///it/condarelli/wbtest/model.ecore' not found.
(file:/C:/TEMP/test/La%20Missione.world, 2, 274)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
at it.condarelli.writer.model.Model.load(Model.java:50)
at it.condarelli.writer.model.Model.<init>(Model.java:33)
at it.condarelli.writer.editors.WorldEditor.init(WorldEditor.ja va:200)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:644)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
at
org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at
org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at it.condarelli.writer.Writer.start(Writer.java:20)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
with uri 'http:///it/condarelli/wbtest/model.ecore' not found.
(file:/C:/TEMP/test/La%20Missione.world, 2, 274)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2590)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2421)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1299)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1468)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:1019)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:1001)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:712)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:169)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator. startElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$ContentDriver.scanRootElementHook(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$PrologDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
... 43 more

!ENTRY org.eclipse.ui 4 0 2010-02-18 20:09:53.067
!MESSAGE An unexpected exception was thrown.
!STACK 0
java.lang.NullPointerException
at it.condarelli.writer.editors.WorldEditor.dispose(WorldEditor .java:152)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:697)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
at
org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at
org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at it.condarelli.writer.Writer.start(Writer.java:20)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

!ENTRY org.eclipse.ui 4 0 2010-02-18 20:09:53.069
!MESSAGE Unable to create editor ID
it.condarelli.writer.editors.WorldEditor: An exception was thrown during
initialization
!STACK 0
java.lang.NullPointerException
at it.condarelli.writer.editors.WorldEditor.init(WorldEditor.ja va:201)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:644)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
at
org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at
org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at it.condarelli.writer.Writer.start(Writer.java:20)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


Regards
Mauro
Re: Model refactoring and data Binding [message #515449 is a reply to message #515447] Thu, 18 February 2010 14:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5013
Registered: July 2009
Senior Member
Your problem is as said NOT databinding but the serialized model can't
be loaded.

Tom

Am 18.02.10 20:13, schrieb Mauro Condarelli:
> Tom Schindl wrote:
>> Sorry but the exception you show doesn't has any Databinding in it.
>>
>> Tom
> Doubly sorry.
> I sent the wrong part of the log.
> This is complete.
>
>
> !SESSION 2010-02-18 20:09:49.353
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_17
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
> Framework arguments: -product Writer.product
> Command-line arguments: -product Writer.product -data
> C:\Users\mauro\workspace/../runtime-Writer.product -dev
> file:C:/Users/mauro/workspace/.metadata/.plugins/org.eclipse .pde.core/Writer.product/dev.properties
> -os win32 -ws win32 -arch x86 -consoleLog
>
> !ENTRY org.eclipse.ui 4 4 2010-02-18 20:09:52.712
> !MESSAGE Reference item additions not found for action null
> Problem loading file:/C:/TEMP/test/La%20Missione.world
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http:///it/condarelli/wbtest/model.ecore' not found.
> (file:/C:/TEMP/test/La%20Missione.world, 2, 274)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
>
> at it.condarelli.writer.model.Model.load(Model.java:50)
> at it.condarelli.writer.model.Model.<init>(Model.java:33)
> at it.condarelli.writer.editors.WorldEditor.init(WorldEditor.ja va:200)
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:644)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
>
> at
> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
>
> at
> org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
>
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
>
> at
> org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at it.condarelli.writer.Writer.start(Writer.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>
> 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(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
> Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
> with uri 'http:///it/condarelli/wbtest/model.ecore' not found.
> (file:/C:/TEMP/test/La%20Missione.world, 2, 274)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2590)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2421)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1299)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1468)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:1019)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:1001)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:712)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:169)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator. startElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$ContentDriver.scanRootElementHook(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$PrologDriver.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
>
> ... 43 more
>
> !ENTRY org.eclipse.ui 4 0 2010-02-18 20:09:53.067
> !MESSAGE An unexpected exception was thrown.
> !STACK 0
> java.lang.NullPointerException
> at
> it.condarelli.writer.editors.WorldEditor.dispose(WorldEditor .java:152)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:697)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
>
> at
> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
>
> at
> org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
>
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
>
> at
> org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at it.condarelli.writer.Writer.start(Writer.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>
> 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(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>
> !ENTRY org.eclipse.ui 4 0 2010-02-18 20:09:53.069
> !MESSAGE Unable to create editor ID
> it.condarelli.writer.editors.WorldEditor: An exception was thrown during
> initialization
> !STACK 0
> java.lang.NullPointerException
> at it.condarelli.writer.editors.WorldEditor.init(WorldEditor.ja va:201)
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:644)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
>
> at
> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
>
> at
> org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
>
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
>
> at
> org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at it.condarelli.writer.Writer.start(Writer.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>
> 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(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>
>
> Regards
> Mauro
Re: Model refactoring and data Binding [message #515450 is a reply to message #515449] Thu, 18 February 2010 14:29 Go to previous message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 397
Registered: September 2009
Senior Member
Tom Schindl wrote:
> Your problem is as said NOT databinding but the serialized model can't
> be loaded.
>
> Tom
>

You are *SO* right.

I was trying to load the old model with the new code.
Shame on me.
Loading the right file cured the problem.

Thanks
Mauro
Previous Topic:Snippet 21 and WizardPage
Next Topic:ControlDecoration on table items
Goto Forum:
  


Current Time: Thu Apr 17 23:32:07 EDT 2014

Powered by FUDForum. Page generated in 0.07014 seconds