Justin Deoliveira wrote:

Jesse Eichar wrote:

You are going to have some problems because the ActionSet extension
point is considered the "correct" way to add menu items and toolbar
items.  That's how the Open Project menu item was added.  However
perspectives allow you to declare what action sets you want to
include/exclude so you can at least turn off the action sets you don't
want.

Being able to turn on/off actions sets would be helpful. How does this work. I looked at the perspective and perspectiveExtension extension points and couldn't figure it out.


I don't know how to remove action sets but when you define a perspective there is a layout.addActionSet() method. And perspective Extension has a ActionSet definition as well. So you can add them so that must mean that there is a way to ignore them. Maybe if the action set's Visible is set to false then you can add it where ever you want. If that's the case then we can set the visible to false and only add them via the perspective Extension extension point.

Jesse
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to