[udig-devel] Re:
Maps and LayerViews across multiple WorkbenchWindows
Monika Wnuk
Monika.Wnuk at dlr.de
Wed Apr 2 08:21:43 PDT 2008
> An idea for you to consider:
> - based on your earlier description it sounds like you have specific
> activities planned for the different windows; you may want to define a
> perspective for each activity (as per the custom application tutorial).
> - we could associate a perspective with a Map; and switch the
> perspective to match the Map when it is opened - but only if the idea is
> help for you.
I think I'm on the right way - I opened a map in the first window and a second
one in the second window. All I did was to extend OpenProjectElementCommand by
a constructor where the workbenchWindow can be specified, in which the Map
shall be opened:
OpenProjectElementCommand( IProjectElement element, IWorkbenchWindow window )
So, if there is a need for assigning maps to certain perspectives, maybe this
is a simple way...
Now, I'll now try to get the second action item managed: the duplication of the
LayersView.
Moni
More information about the udig-devel
mailing list