[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Menu Contributions
|
Ha! I spoke too soon....
The locationURI is
"popup:net.refractions.udig.project.ui.projectExplorer". You can then
add menus and commands etc. with appropriate visibleWhen clauses to
show/hide the item based on the selection. For example, I only wanted a
menu to be visible in the Map context menu, so the visibleWhen details
are....
<visibleWhen>
<iterate ifEmpty="false" operator="or">
<instanceof value="net.refractions.udig.project.IMap"/>
</iterate>
</visibleWhen>
(you have to do the <iterate> because the object it's testing is the
IStructuredSelection in the project view)
Dave S-B wrote:
Hi,
Is it possible to add to the project/map/layer context menus using the
org.eclipse.ui.menus extension point? (i.e. using commands and handlers).
I can't seem to find the right locationURI....
Many thanks
Dave S-B
Lledr Solutions
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel