[udig-devel] Re: new tools category bar

Jesse Eichar jeichar.w at gmail.com
Thu May 15 06:09:24 PDT 2008


You can actually.  We want to eventually be able to do it via the  
standard menu bar way.  But for now what you need to do is:
1. Define a net.refractions.udig.project.ui.toolManagers extension  
point.  You can extend the default one and in the constructor you can  
sort the categories as you desire.  The default constructor of the  
super class will load them all.
2.  In your application's config file define a property:  
toolManager=<your extension id goes here>

The Extension id does NOT need to include the plugin id.

Jesse

On 15-May-08, at 2:18 PM, andrea antonello wrote:

>> You need to create a new category.  The ActionSet stuff I think is  
>> going to
>> take place in the future so that for certain perspectives only the  
>> tools
>> that are in the enabled action set will be visible.  But I think  
>> for now all
>> the tool categories are visible.
>
> Alright, so I can't define where to put my tools, i.e. in a different
> bar and/or in a particular position in the bar?
>
> Just to be sure,
> Andrea
>
>
>>
>> Jesse
>>
>> On 15-May-08, at 1:27 PM, andrea antonello wrote:
>>
>>> In the docs I read under "ActionSet convention for Tool Category":
>>>
>>> "We will check for an ActionSet with the same name as the  
>>> ToolCategory
>>> - you can use this facility to turn off actions that don't make  
>>> sense
>>> for your perspective."
>>>
>>> How exactly would that be done?
>>> I can create a toolcategory, then an actionset with the same ID and
>>> that would override it? Is there some code in udig that can be of
>>> example?
>>>
>>> Thanks,
>>> Andrea
>>>
>>>
>>>
>>> On Thu, May 15, 2008 at 1:02 PM, andrea antonello
>>> <andrea.antonello at gmail.com> wrote:
>>>>
>>>> Hi, I have a problem with some particular JGrass tools appearing
>>>> inside the editing toolbar, while I would not want them mixed in
>>>> there, since it makes no real sense.
>>>>
>>>> How can I make my own toolbar?
>>>> I thought it would be enough to create a category. But even if the
>>>> tools are all in a bunch, they are together with the editing and
>>>> create tools.
>>>>
>>>> Is there a way to create a toolbar apart with udig tools or would I
>>>> have to create an actionset and reference there those tools?
>>>>
>>>> Andrea
>>>>
>>> _______________________________________________
>>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20080515/ffa078ff/attachment.html


More information about the udig-devel mailing list