Pedro,

I think your pointing me in the right direction, and I appreciate the
help. That is indeed the code that I am looking for.

You mentioned that this code was in the ToolboxDialog class, and I
think Larry was talking about the ToolboxStateManager class.

Can you clarify which class you are talking about, and which method
I'll find that source code in?

Thanks again for the help.

The Sunburned Surveyor

On 9/14/06, Pedro Da Ros <[EMAIL PROTECTED]> wrote:
> Hey SS,
>
> sorry for the unexplained code, I thought your initial question was exactly
> like the problem I had an hour ago, but now that I read the thread again I
> saw the code I sent actually was an example/implementation of Larry´s first
> reply :
>
> Larry : "I believe that if a toolbox (like the edit toolbox) is closed, the
> current edit tool is deactivated and the first tool on the toolbar is
> selected by default."
>
> That´s what the code I posted does : selects the first cursortool on the
> toolbar.
>
> I hope that helps you in your problem.
>
> Cya,
> -Pedro Da Ros
>
>
>  On 9/14/06, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> >
>  Thanks for the response Pedro.
>
> But I'm not sure what you're trying to show me in the code. Could I
> get some more explanation?
>
> The Sunburned Surveyor
>
> On 9/14/06, Pedro Da Ros < [EMAIL PROTECTED]> wrote:
> > Hey SS,
> >
> > just in case you didn´t solve/check that class yet, I just ran into this
> > issue right now also and got my solution from the implementation of the
>  > ToolboxDialog class :
> >
> > ((AbstractButton)     context
> >                                          .getWorkbench()
> >                                         .getFrame()
> >                                         .getToolBar()
> >                                         .getButtonGroup()
> >                                         .getElements()
> >                                         .nextElement())
> >                                         .doClick();
> >
> > Cya,
> > -Pedro Da Ros
> >
> >
> >  On 9/13/06, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> > >
> >  Thanks Larry. I'll check that class out.
> >
> > SS
> >
> > On 9/13/06, Larry Becker <[EMAIL PROTECTED]> wrote:
> > > Yes.
> > >
> > > I believe it is
> > >
> >
> com.vividsolutions.jump.workbench.ui.WorkbenchToolBar.ToolboxStateManager
> > .
> > >
> > > regards,
> > > Larry
> > >
> > >
> > > On 9/13/06, Sunburned Surveyor < [EMAIL PROTECTED]> wrote:
> > > >
> > > Thanks again Larry.
> > >
> > > When you said that "the first tool on the toolbar is selected by
> > > default", did you mean the first tool on the main OpenJUMP toolbar?
> > >
> > > Do you know what class handles this transition?
> > >
> > > SS
> > >
> > >
> > >
> > >
> > > On 9/13/06, Larry Becker < [EMAIL PROTECTED]> wrote:
> > > > I believe that if a toolbox (like the edit toolbox) is closed, the
> > current
> > > > edit tool is deactivated and the first tool on the toolbar is selected
> > by
> > > > default.
> > > >
> > > > regards,
> > > > Larry
> > > >
> > > >
> > > > On 9/13/06, Sunburned Surveyor < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > The deactivate method of the AbstractCursorTool currently looks like
> > this:
> > > >
> > > > public void deactivate() {
> > > >
> > > >      cancelGesture();
> > > >
> > > > }
> > > >
> > > > I would like to know if there is a "default" cursor tool for OpenJUMP.
> > > > For example, if I have activated a special cursor tool, and its
> > > > deactivate() method is then called, is the "default" cursor tool then
> > > > activated. If this was the case I would expect to see that activation
> > > > in this method. Is it somewhere else?
> > > >
> > > > If there is no "default" cursor tool and the deactivate() method is
> > > > called, what happens to the user's interaction with the
> > > > LayerViewPanel? Does the user just see the normal mouse cursor and the
> > > > LayerViewPanel acts like a normal "dumb" Swing component?
> > > >
> > > > Under what circumstances would the deactivate() method of a CursorTool
> > > > implementation be called?
> >  > >
> > > > Thanks,
> > > >
> > > > The Sunburned Surveyor
> > > >
> > > >
> > >
> >
> -------------------------------------------------------------------------
> > > > Using Tomcat but need to do more? Need to support web services,
> > security?
> > > > Get stuff done quickly with pre-integrated technology to make your job
> > > > easier
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > > >
> > >
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > _______________________________________________
> > > > Jump-pilot-devel mailing list
> > > > Jump-pilot-devel@lists.sourceforge.net
> > > >
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > > >
> > > >
>  > > >
> > >
> >
> -------------------------------------------------------------------------
> > > > Using Tomcat but need to do more? Need to support web services,
> > security?
> > > > Get stuff done quickly with pre-integrated technology to make your job
> > > > easier
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > > >
> > >
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > >
> > > > _______________________________________________
> > > > Jump-pilot-devel mailing list
>  > > > Jump-pilot-devel@lists.sourceforge.net
> > > >
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > > >
> > > >
> > > >
> > >
> > >
> >
> -------------------------------------------------------------------------
> > >
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > Jump-pilot-devel mailing list
> > > Jump-pilot-devel@lists.sourceforge.net
>  > >
> >
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >
> > >
> > >
> > >
> >
> -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > >
> > > _______________________________________________
> > > Jump-pilot-devel mailing list
> > > Jump-pilot-devel@lists.sourceforge.net
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >
> > >
> > >
> >
> >
> -------------------------------------------------------------------------
> >
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> >
> >
> -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> >
> >
>
> -------------------------------------------------------------------------
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to