Thanks to Stefan and Larry for their suggestions. I was able to solve
the problem by calling a different method of the AbstractSelection
class. I still don't understand some of the code in the method
referenced above. Maybe I will post it later to see if someone can
explain it to me.

Thanks,

The Sunburned Surveyor

On 10/11/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote:
> the usage of the eclipse debugger :)
>
> greetings over the ocean
> stefan
>
> Sunburned Surveyor schrieb:
> > What do you show your students Stefan? Am I missing something in your 
> > e-mail?
> >
> > (Now you've got me wondering.) :]
> >
> > The Sunburned Surveyor
> >
> > On 10/11/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote:
> >> that is what i show students sometimes.. and they realy wonder how easy
> >> debugging can be. (i.e. finding bugs in 2mins that take them 1h)
> >>
> >> Larry Becker schrieb:
> >>> When you see how easy and simple the Eclipse debugger is, you're going
> >>> to kick yourself for not learning it sooner.
> >>>
> >>> Larry
> >>>
> >>> On 10/11/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> >>>> I haven't ever used the debugger in Eclipse. I guess that I'm more
> >>>> comfortable workgin with log statements.
> >>>>
> >>>> I can try the debugger though.
> >>>>
> >>>> LayerListener is an interface, correct? I will look for the particular
> >>>> implementation that uses the AbstractSelection.unselectItems code. If
> >>>> this method is working in OpenJUMP it makes me wonder if I'm calling
> >>>> the method with improper parameters.
> >>>>
> >>>> Still, my my usage of the AbstractSelection.selectItems method uses
> >>>> the same parameters, and it works just fine. Maybe the LayerListener
> >>>> implementation will give me a clue as to what I'm doing wrong.
> >>>>
> >>>> Thanks for the help Larry. This is the only bug I have left to fix
> >>>> before my tool is ready for an "alpha" release.
> >>>>
> >>>> The Sunburned Surveyor
> >>>>
> >>>>
> >>>> On 10/11/07, Larry Becker <[EMAIL PROTECTED]> wrote:
> >>>>> This method is used by the LayerListener to unselect features after
> >>>>> deletion.  I don't suppose you have considered using the debugger?
> >>>>>
> >>>>> Larry
> >>>>>
> >>>>> On 10/11/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> >>>>>> I think that I may have discovered a bug in the
> >>>>>> AbstractSelection.unselectItems(Layer layer, CollectionMap
> >>>>>> FeatureToItemCollectionMap) method. I call this method in my
> >>>>>> SuperSelect Tool. I've used log messages to determine that execution
> >>>>>> sucessfully passes from my code to the code in the unselectItems
> >>>>>> method.
> >>>>>>
> >>>>>> The problem is, nothing happens... That is, the unselectItems method
> >>>>>> doesn't appear to unselect any selected Features. I know this because
> >>>>>> even after this method is called I can still manipulate the Features
> >>>>>> in a selection. Also, the number of selected items shown below the
> >>>>>> LayerViewPanel never reduces. (I suppose this could be for a different
> >>>>>> reason, but it seems odd that features aren't unselected AND the
> >>>>>> selected feature count never gets smaller.)
> >>>>>>
> >>>>>> I want to go rooting around in the unselectItems method to see what is
> >>>>>> going on, but I thought it might be prudent to post here first.
> >>>>>> Perhaps someone knows something about the selection code in OpenJUMP
> >>>>>> that I don't. Can anyone think of a reason why this method wouldn't be
> >>>>>> performing properly? (Please note that my SuperSelect Tool can
> >>>>>> sucessfully select and clear selected items, just not unselect items.)
> >>>>>>
> >>>>>> Has anyone written a plug-in of their own that calls the
> >>>>>> AbstractSelection.unselectItems method?
> >>>>>>
> >>>>>> If no one has any suggestions for me then I will begin tearing apart
> >>>>>> the AbstractSelection code to find the problem.
> >>>>>>
> >>>>>> The Sunburned Surveyor
> >>>>>>
> >>>>>> -------------------------------------------------------------------------
> >>>>>> This SF.net email is sponsored by: Splunk Inc.
> >>>>>> Still grepping through log files to find problems?  Stop.
> >>>>>> Now Search log events and configuration files using AJAX and a browser.
> >>>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/
> >>>>>> _______________________________________________
> >>>>>> Jump-pilot-devel mailing list
> >>>>>> Jump-pilot-devel@lists.sourceforge.net
> >>>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>>>>
> >>>>> --
> >>>>> http://amusingprogrammer.blogspot.com/
> >>>>>
> >>>>> -------------------------------------------------------------------------
> >>>>> This SF.net email is sponsored by: Splunk Inc.
> >>>>> Still grepping through log files to find problems?  Stop.
> >>>>> Now Search log events and configuration files using AJAX and a browser.
> >>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/
> >>>>> _______________________________________________
> >>>>> Jump-pilot-devel mailing list
> >>>>> Jump-pilot-devel@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>>>
> >>>> -------------------------------------------------------------------------
> >>>> This SF.net email is sponsored by: Splunk Inc.
> >>>> Still grepping through log files to find problems?  Stop.
> >>>> Now Search log events and configuration files using AJAX and a browser.
> >>>> Download your FREE copy of Splunk now >> http://get.splunk.com/
> >>>> _______________________________________________
> >>>> Jump-pilot-devel mailing list
> >>>> Jump-pilot-devel@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>>
> >>>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Splunk Inc.
> >> Still grepping through log files to find problems?  Stop.
> >> Now Search log events and configuration files using AJAX and a browser.
> >> Download your FREE copy of Splunk now >> http://get.splunk.com/
> >> _______________________________________________
> >> Jump-pilot-devel mailing list
> >> Jump-pilot-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to