Jody, In regards to the warning, it would be nice if it weren't a popup. The user can't actually change the tool in a category in which all tools are disabled because clicking on the disabled tools doesn't do anything. It's only clicking on the category icon that sets off the disabled tool and the warning. Is it possible to disable the ModalToolCategory as a toolbar item when the modalTools are checked against the Properties listed in plugin.xml to see whether they're enabled? That would beat the current way of trying to use a disabled tool. Perhaps the category could just check for the tool being disabled before trying to call runCurrentTool();
I only tried to create a category-free Modal Tools as a workaround for this issue. Normally, a one-tool category works just fine. Thanks for your help. - Andrew On Thu, Apr 9, 2009 at 8:18 PM, Jody Garnett <[email protected]> wrote: > Hi Andrea: > > Two responses: > - It looks like you found a bug in the category ui (what to do when the > entire category is disabled?). I wonder if we could save the warning until > the user clicks? or otherwise make it not a pop up. The actual warning comes > from the tool you have selected not being able to work on the provided > layer; can you think of a way for us not to let the user change the tool? > - As for splitting modal tools out; the idea of categories is due to the > large number of modal tools we expect an application to have over time; I > would actually like to organize the tools into an SWT palette; but even > there they have the concept of folders to allow for scalability. Up until > very recently there was only one PAN tool; does a category with one tool in > it meet your needs? > > Jody > > Andrew Jennings wrote: > >> Good afternoon. I'm working on a UDIG 1.1.0 plugin with Eclipse 3.3.3 >> RCP. We're implementing a group of ModalTools within five categories. We'd >> like to disable the tools according to an "enablement" on the tools in >> plugin.xml. >> The good news is that the disabling of tools works great and happens when >> I want. The bad news is that the category icons can still be clicked - this >> causes a warning box to pop up from UDig that says the tool won't work on >> the selected layer so I should pick another layer. I'd really like that >> warning to not appear. Any suggestions for how to get my category to behave >> the way I'd like? Or how to split ModalTools out so they don't need to be >> in a category? >> >> Thanks for your help. >> >> - Andrew >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
