|Very Important : How to load lazily any element which is there in containment relationship [message #607547]
||Wed, 06 August 2008 07:34
Originally posted by: rmishra.tibco.com|
i have a model which is some thing like this ,
Table and DecisionTable elemens have containment relationship.
i feed this model as input to the tree viewer . This model gets opened in an
editor on double click of table node .
when we released first version of this perticular application we did not
consider of possibility of very larget tables (50 MB size ) and defined
containment relationship between Table element and DecisionTable element .
DecsionTable element is the one which has this large data.
Now because of large data inside DecsionTable node ,tree view population
takes time(it loads whole data from file system) . If there are 2 , 3 such
tables ,application hangs even at the time of population of tree view.
Now we want some how to load <DecisionTable> element lazily on double click
of <Table> node . <DecisionTable> node is not shown in the view only
<Table> node is shown.
We could achieve this by chnaging relationship between <Table> and
<DecisionTable> to Reference from Containment but at this point in time we
can not chnage model because of backward compatibilty issue .We will not be
able to open old models if we do that .
One more option we have to write our own content provider but i would like
to acheive this EMF ways .
So , please help me out if it can be achieved in EMF ways . I just want to
load lazily any element which is there in containment relationship.
Powered by FUDForum
. Page generated in 0.10173 seconds