On Sunday, November 24, 2002, at 03:47 PM, Bart Jourquin wrote:
> Hmm,
>
> The ToolPanel is present (removing it or using setVisible(true/false)
> works. I've no output from the debug mechanism (although I'm not
> confident with it : I suppose I just have to pass -Ddebug.xxx as a
> param to the jvm ?),
That's right. If you are using your own application, you have to call
Debug.init() at some point, first.
> but the drawingTool (and other components as the mouseModePanel, etc)
> are present (using an Iterator through the components of the
> MapHandler ...). The problem is that I cannot remove/setVisible(false)
> these components...
That's probably because the components themselves are not being added
to the ToolPanel, a separate button is that, as a callback, makes the
actual component visible.... Ahhh, that's why you are having a problem,
there's a bug in the ToolPanel.remove method. In addition to removing
the tool from the internal hashtable, it has to remove the face for
that tool from the ToolPanel GUI interface.
I'll fix that for the next release.
- Don
> Don Dietrick wrote:
>
>> Hi Bart,
>>
>> Is the ToolPanel in the MapHandler? If you run with the
>> -Ddebug.toolpanel flag set, do you see the ToolPanel recognizing your
>> MyDrawingToolLauncher getting removed?
>>
>> - Don
>>
>> On Friday, November 22, 2002, at 09:51 AM, Bart Jourquin wrote:
>>
>>> Hi all,
>>>
>>> My app has to open "project files". When opening a project, I can
>>> easily add layers and a DrawingToolLauncher.
>>> Closing a project has to remove the layers and the
>>> DrawingToolLauncher. I have problems with the latest as
>>> MapHanlder.remove(MyDrawingToolLauncher) doesn't remove the tool
>>> from the toolbar.
>>>
>>> What did I miss?
>>>
>>> --
>>> Prof Dr Bart Jourquin
>>> F.U.Ca.M. - G.T.M.
>>> Chaussée de Binche, 151a
>>> B7000 Belgium
>>> Tel. : +32 65 323293
>>> Fax. : +32 65 315691
>>> http://message.fucam.ac.be/~jourquin
>>>
>>>
>>> --
>>> [To unsubscribe to this list send an email to "majdart@bbn.com"
>>> with the following text in the BODY of the message "unsubscribe
>>> openmap-users"]
>>>
>>>
>>
>>
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> Don Dietrick, BBN Technologies, dietrick@bbn.com
>> 10 Moulton Street, Cambridge, MA 02138
>> 617-873-3031 [fax]-2794
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>
>
> --
> Prof Dr Bart Jourquin
> F.U.Ca.M. - G.T.M.
> Chaussée de Binche, 151a
> B7000 Belgium
> Tel. : +32 65 323293
> Fax. : +32 65 315691
> http://message.fucam.ac.be/~jourquin
>
>
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Sun Nov 24 15:17:13 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT