[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] how to get the visible map reference?
|
> ApplicationGIS.getActiveMap() will return the visible map.
:) What else to say... two weeks of intensive UDig and I got blind.
> But for
> listening for changed map you have to register a part listener with the
> workbench.
>
> From your view:
> getSite().getPage().addPartListener( new IPartListener2() { ... } );
>
> something like that.
Alright, I will explore this. Any example in the udig code doing this, I
could look at?
Andrea
>
> Jesse
>
> On 16-Feb-07, at 7:24 AM, Andrea Antonello wrote:
>
>> Hi, I'm trying to get the reference to the visible map.
>>
>> I am creating a view that should listen to the map that gets visibility
>> focus. So the shown properties change when the visible map changes.
>>
>> I remember I read something about listening to that kind of changes, but
>> I can't find it again. Can someone please link me back to the proper
>> docu page?
>>
>> I'm not able to get the visible map from within a view extention.
>> I'm at the point:
>>
>> ApplicationGIS.getActiveProject()
>>
>> , but how to get further?
>>
>> Thanks,
>> Andrea
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
--
____________________________________________________________________________
HydroloGIS - Environmental Safety Modelling
www.hydrologis.com
Andrea Antonello
Environmental Engineer
mobile: +393288497722
"Let it be as much a great honour to take as to give learning,
if you want to be called wise."
Skuggsja' - The King's mirror - 1240 Reykjavik
____________________________________________________________________________