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.
Justin
As for the built in menus a factory class or configuration class can be
used. It makes the most sense to me. The operations and tools will use
the configuration to determine where to place their actions.
One caveat. Tools, like action sets can declare where they want to be
placed so you will have to put an over-ride in the configuration class
so that the ToolManager will ignore the hint provided in the Tool
extension declaration.
Jesse
On Sat, 2005-12-03 at 12:54 -0800, Justin Deoliveira wrote:
Hello all,
I was just looking at how udig sets up menus and actions in the menu. I
must say it is alot cleaner then the last time I looked at it. This
appears to be a result of Cole, nice work Cole!!
I am trying to set up a custom application (instead of
net.refractions.udig.application) that changes the default udig menu
structure.
However there are a few stray menu items that install themselves via
extensions so I cant realy control where they end up. For instance Open
Project and close Close Project in net.refractions.udig.project.ui.
I still need these menu actions, I just want to move them. I can think
of two ways to do this.
1. The core udig menu actions/contributions could be available via a
UdigActionFactory/UdigContributionFactory class instead of via extension
points, similar to the eclipse ActionFactory class. This way the
application has the control of where to place them.
2. Totally create my own custom menu, however this isn't ideal as it is
alot more work, i would like to use the eclipse menu infrastructure that
is already in place.
My goal is to make it appear that my application has udig running inside
of it, not the other way around.
I could be missing an easier way to do this. Does anyone have any
suggestions?
Justin
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel