Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Reset perspective causes modal tools to disappear

Thanks for the clear way to reproduce the problem; I run with the debugger showed the problem and the issue is now fixed.

See UDIG-1699.

Summary: setCurrentTool is called to update the widget state to show the correct icon; but when the toolbar is restored (rather then being created for the first time) the currentTool is already correct and the widget state is not updated. Changed the fill method to clear the currentTool before calling the setCurrentTool method.

Jody

On 15/07/2010, at 5:50 PM, andrea antonello wrote:

> Hi Jesse,
> I experienced the same on the 1.2snapshot on lin64 without changing
> perspective. It is enough to maximize the table (or any) view and
> bring it back to normal again. The icons disappear and all that's left
> is the down arrow that shows that there are tools.
> 
> Andrea
> 
> 
> 
> On Thu, Jul 15, 2010 at 1:05 AM, Jody Garnett <jody.garnett@xxxxxxxxx> wrote:
>> Thanks Jesse I think we need to debug MapEditorActionBarContributor.  Maurio may be working on a similar issue.
>> I have seen this problem myself; but you are the first person to sort out what is going wrong.
>> Is there any way we can listen to the perspective change?
>> 
>> I am still a bit confused; the tools are listed but show up blank? Perhaps we could see what that looks like in the debugger and sort out how to respond?
>> 
>> Jody
>> 
>> On 15/07/2010, at 5:30 AM, Jesse Varner wrote:
>> 
>>> Hi,
>>> I noticed this behavior both in the latest win32 uDig 1.2-snapshot, and also in my custom application built on uDig SDK 1.2-RC3:
>>> If you have a map editor open, and you reset your perspective, the modal tool icons disappear, leaving blank buttons in their place. The icons usually come back if you click on one of the blank spots.
>>> I see that the modal tools are added in udig.project.ui.internal.MapEditorActionBarContributor, but this code doesn't get called when you reset the perspective while a map is open.
>>> Can anyone suggest a workaround for this problem? Can I force it to re-add those tools in my CustomPerspectiveFactory.createInitialLayout() method?
>>> 
>>> Thanks,
>>> Jesse Varner
>>> 
>>> _______________________________________________
>>> 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



Back to the top