Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] refresh a catalog item

Hi Jesse,
at the moment the whole JGrass code is at our local repository:
https://dev.cocos.bz/plugins/scmsvn/viewcvs.php/jgrassudig/?root=jgrass

I could also send you an archive with just the needed plugins...

Thanks,
Andrea


Jesse Eichar probaly wrote:
> Hmmm.  Have you checked in your code.  I can try to help you debug.
> 
> Jesse
> 
> On Jul 24, 2007, at 2:56 AM, Andrea Antonello wrote:
> 
>> I noticed one more thing by comparing the object ids that eclipse shows
>> when debugging. In fact the first time the DecoratingLabelProvider
>> getText is called, the JGrassService is a new one, created by the
>> drag&drop event (let's say id = 5966). Instead when I expand the three,
>> the getText is always (until I do not restart udig) called with a
>> JGrassService object of id = 5885, i.e. an old one.
>> So now I'm sure that the service is cached somewhere (I can imagine that
>> gives nice performance on services with large number of items and/or
>> connections to perform), but the question is: where?
>>
>> Ciao,
>> Andrea
>>
>>
>>
>> Andrea Antonello probaly wrote:
>>>> Hmmm.  I'm afraid I'm not sure what is happening.  There is some
>>>> caching
>>>> of labels in the CatalogUIPlugin I think but I didn't think that would
>>>> affect the structure of the tree.
>>>
>>> I'm also afraid I don't know exactly what happens. I'm just now
>>> debugging the CatalogTreeViewer and I'm getting mad.
>>> When I drag my location (with two mapsets in it, but udig remembers that
>>> it had three, I just removed one) into the view, when it comes to create
>>> the labels for the entry, when it comes to the method:
>>> getText(Object element) of the DecoratingLabelProvide the element is in
>>> fact a JGrassService and has 2 mapsets, which in this case it has to
>>> have. So I'm glad and happy.
>>> I click on the entry to expand the tree and what happens in the
>>> DecoratingLabelProvide? I get also the nonexisting mapset. So I check
>>> for the parent and get the JGrassService which was supposed to have 2
>>> mapsets... but at that point it has 3! And I can't understand where this
>>> happens.
>>> I hope I was able to explain myself a bit...
>>>
>>> Any hint?
>>>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Tom (JDi Solutions) wrote:<br>&gt; but the CPU is maxed out for 15 minutes or so after the layer has been 
<br>&gt; rendered, without me zooming or panning.&nbsp;&nbsp;Why?&nbsp;&nbsp;Presumably uDig only<br>&gt; requests the data it needs to render the area of the layer shown on<br>&gt; screen, so what is the CPU working on for the next 15 minutes while I 
<br>&gt; do nothing?<br>You are correct that sounds wrong :-(<br><br>Sounds like we need to get you to run in a profiler so we can tell what<br>the matter is (sigh). Do you have a profiler available?<br><br>Jody<br>_______________________________________________ 
<br>User-friendly Desktop Internet GIS (uDig)<br><a href="http://udig.refractions.net/"; target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://udig.refractions.net</a><br><a href="http://lists.refractions.net/mailman/listinfo/udig-devel"; target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://lists.refractions.net/mailman/listinfo/udig-devel </a><br></blockquote></div><br></span></div><br></span></div>_______________________________________________<span><br>User-friendly Desktop Internet GIS (uDig)
<br><a href="http://udig.refractions.net/"; target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://udig.refractions.net</a><br><a href="http://lists.refractions.net/mailman/listinfo/udig-devel"; target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://lists.refractions.net/mailman/listinfo/udig-devel </a><br><br></span></blockquote></div><br><br></span></div>_______________________________________________<span class="q"><br>User-friendly Desktop Internet GIS (uDig)
<br><a href="http://udig.refractions.net/"; target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://udig.refractions.net</a><br><a href="http://lists.refractions.net/mailman/listinfo/udig-devel"; target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.refractions.net/mailman/listinfo/udig-devel
</a><br><br></span></blockquote></div><br>
<br>_______________________________________________<br>User-friendly Desktop Internet GIS (uDig)<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://udig.refractions.net"; target="_blank">http://udig.refractions.net
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.refractions.net/mailman/listinfo/udig-devel"; target="_blank">http://lists.refractions.net/mailman/listinfo/udig-devel</a><br><br></blockquote>
</div><br>

------=_Part_2337_17348603.1185524994620--


Back to the top