Re: [JPP-Devel] Search tool for Attributes

2009-01-08 Thread Martin Davis
Yay! Larry Becker wrote: > Martin's solution worked wonderfully. I committed the change last > night. A check box was added for Regular Expressions that defaults to > off. > > Larry > > On Wed, Jan 7, 2009 at 7:57 AM, Larry Becker > wrote: > > Hmm. Escaping

Re: [JPP-Devel] Search tool for Attributes

2009-01-08 Thread Stefan Steiniger
thank you both! I would add the plugin to the default-plugins.xml file if you don't mind stefan Larry Becker schrieb: > Martin's solution worked wonderfully. I committed the change last > night. A check box was added for Regular Expressions that defaults to off. > > Larry > > On Wed, Jan 7,

Re: [JPP-Devel] Search tool for Attributes

2009-01-08 Thread Larry Becker
Martin's solution worked wonderfully. I committed the change last night. A check box was added for Regular Expressions that defaults to off. Larry On Wed, Jan 7, 2009 at 7:57 AM, Larry Becker wrote: > Hmm. Escaping every character sounds like it might be workable. I'll give > it a try. > >

Re: [JPP-Devel] Search tool for Attributes

2009-01-07 Thread Larry Becker
Hmm. Escaping every character sounds like it might be workable. I'll give it a try. Larry On Tue, Jan 6, 2009 at 5:24 PM, Martin Davis wrote: > Could you still use regex matching on the back end, but just internally > escape the raw string input to turn it into a pattern? I think this > shoul

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
Could you still use regex matching on the back end, but just internally escape the raw string input to turn it into a pattern? I think this should be possible maybe by simpling escaping every char in the input string. Larry Becker wrote: > Yes, Eclipse has that option, however it would be

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
Yes, Eclipse has that option, however it would be much more difficult to program without using the pattern matcher. It would basically revert to a simple exact match string comparison. Larry On Tue, Jan 6, 2009 at 4:29 PM, Martin Davis wrote: > Is it worth having an option to choose plain text

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
Is it worth having an option to choose plain text or regex? Some text editors do this. That way if a search string contains some of the (numerous) special regex chars, the user doesn't have to escape everything in sight. M Michael Michaud wrote: > Larry Becker a écrit : > >>> @Larry : I t

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Michael Michaud
Larry Becker a écrit : > >@Larry : I think that the use of regexes should be mentionned in the > >user interface of your search tool > >One reason is that the user will have to escape regex metacharacter if > >he wants to make a simple search on (, [ ,*... > > I agree. I was just intimidated by th

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
>@Larry : I think that the use of regexes should be mentionned in the >user interface of your search tool >One reason is that the user will have to escape regex metacharacter if >he wants to make a simple search on (, [ ,*... I agree. I was just intimidated by the complexity of explaining this in

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Stefan Steiniger
> > By the way, since it uses the Java pattern matcher, Search All > Attributes supports many different meta-characters to control the search > such as ^ to match the start of a line and $ to match the end. oha..interesting.. how to get to know these chars? is there a table? stefan -

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Michael Michaud
Hi, For a one page cheatsheet, look at http://www.addedbytes.com/download/regular-expressions-cheat-sheet-v1/pdf/ or http://www.omicentral.com/cheatsheets/JavaRegularExpressionsCheatSheet.pdf for a full site dedicated to regex : http://www.regular-expressions.info/ note : regex is also available

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
This subset looks safe enough: . Matches any single character (many applications exclude newlines, and exactly which characters are considered newlines is flavor, character encoding, and platform specific, but it is safe to assume that the line feed character is included). Within POSIX bracket ex

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
It looks to me like the syntax for the POSIX character classes is different on the Wikipedia article to the Java Pattern class. 8^( (You know what they say about standards...) These are quite useful, so this could be important to note. Larry Becker wrote: > I like the "POSIX Basic Regular

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
I like the "POSIX Basic Regular Expressions" section of the Wikipedia article. Still not for the feint-of-heart. On Tue, Jan 6, 2009 at 12:08 PM, Martin Davis wrote: > Check these out: > > > http://leepoint.net/notes-java/data/strings/40regular_expressions/05regex.html > http://en.wikipedia.org

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
Check these out: http://leepoint.net/notes-java/data/strings/40regular_expressions/05regex.html http://en.wikipedia.org/wiki/Regular_expression Martin Davis wrote: > Yes, that would be nice. The Pattern language is *very* powerful, but > *very* complex too. > > Hmm... there's a book in there I

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
Yes, that would be nice. The Pattern language is *very* powerful, but *very* complex too. Hmm... there's a book in there I think - or at least a nice website. The language I think follows most common conventions for regex languages - and I'm pretty sure there's some good general references out

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
That's it. I've looked for a better (more user oriented) reference, but never found one. Larry On Tue, Jan 6, 2009 at 12:00 PM, Martin Davis wrote: > Perhaps > > http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html > > ?? > > Stefan Steiniger wrote: > > > >> By the way, since it

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
Perhaps http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html ?? Stefan Steiniger wrote: > >> By the way, since it uses the Java pattern matcher, Search All >> Attributes supports many different meta-characters to control the search >> such as ^ to match the start of a line a

Re: [JPP-Devel] Search tool for Attributes

2009-01-05 Thread Larry Becker
r to add this usefull function to Simple > Query tool in order to simlify the menu organization. > >> Regards > >> > >> Peppe > >> > >> Happy new Year! > >> > >> > >> --- Mer 31/12/08, Larry Becker ha scritto: > >>

Re: [JPP-Devel] Search tool for Attributes

2009-01-03 Thread Michael Michaud
er to add this usefull function to Simple >> Query tool in order to simlify the menu organization. >> Regards >> >> Peppe >> >> Happy new Year! >> >> >> --- Mer 31/12/08, Larry Becker ha scritto: >> >> >>> Da: Larry Be

Re: [JPP-Devel] Search tool for Attributes

2009-01-03 Thread Stefan Steiniger
e > > Happy new Year! > > > --- Mer 31/12/08, Larry Becker ha scritto: > >> Da: Larry Becker >> Oggetto: Re: [JPP-Devel] Search tool for Attributes >> A: "OpenJump develop and use" >> Data: Mercoledì 31 dicembre 2008, 23:41 >> I have completed the Se

Re: [JPP-Devel] Search tool for Attributes

2009-01-03 Thread Giuseppe Aruta
Da: Larry Becker > Oggetto: Re: [JPP-Devel] Search tool for Attributes > A: "OpenJump develop and use" > Data: Mercoledì 31 dicembre 2008, 23:41 > I have completed the Search All Attributes query. It aims > to add search > engine style queries to OpenJump. It should

Re: [JPP-Devel] Search tool for Attributes

2008-12-31 Thread Larry Becker
I have completed the Search All Attributes query. It aims to add search engine style queries to OpenJump. It should be in tomorrows nightly build. To test it out use the following workbench-properties.xml file: org.openjump.core.ui.plugin.queries.SearchAllAttributes regards, Larry On Mon, D

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Bing Ran
I've already noticed that. That's a nice surprise indeed! From: Larry Becker Sent: Wednesday, December 31, 2008 2:32 AM To: OpenJump develop and use Subject: Re: [JPP-Devel] Search tool for Attributes >... Also, I think that just because something is hidden due to a scal

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Larry Becker
to make a discrimination between a manually >> selectable layer and a programmatically selectable layer. >> >> Bing >> >> >> *From:* Larry Becker >> *Sent:* Tuesday, December 30, 2008 4:12 AM >> *To:* OpenJump develop and use >> *Subject:*

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Larry Becker
; Bing > > > > > > *From:* Larry Becker > *Sent:* Tuesday, December 30, 2008 11:13 PM > *To:* OpenJump develop and use > *Subject:* Re: [JPP-Devel] Search tool for Attributes > > Hi Bing, > > Wow! That was an information-rich post. Using Lucene goes way beyond my

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Bing Ran
far. Bing -- From: "Sunburned Surveyor" Sent: Tuesday, December 30, 2008 11:34 PM To: "OpenJump develop and use" Subject: Re: [JPP-Devel] Search tool for Attributes > Bing, > > I had no idea that you could use Lucerne for such a task. That i

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Bing Ran
ing Bing From: Larry Becker Sent: Tuesday, December 30, 2008 11:13 PM To: OpenJump develop and use Subject: Re: [JPP-Devel] Search tool for Attributes Hi Bing, Wow! That was an information-rich post. Using Lucene goes way beyond my usual minimalist approach to feature implementation.

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Sunburned Surveyor
e range and also those layers that are tagged as NOT selectable. >> I'm wondering if I need to make a discrimination between a manually >> selectable layer and a programmatically selectable layer. >> >> Bing >> >> From: Larry Becker >> Sent: Tuesday, December 3

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Larry Becker
nd also those layers that are tagged as NOT selectable. > I'm wondering if I need to make a discrimination between a manually > selectable layer and a programmatically selectable layer. > > Bing > > > *From:* Larry Becker > *Sent:* Tuesday, December 30, 2008 4:12 AM

Re: [JPP-Devel] Search tool for Attributes

2008-12-29 Thread Bing Ran
velop and use Subject: [JPP-Devel] Search tool for Attributes Question: You can use Simple Query to search Attribute fields for specific values, but have you ever wanted to do a Google style search in a map? In other words, search all attributes in all layers for any occurrence of one or

Re: [JPP-Devel] Search tool for Attributes

2008-12-29 Thread Eric Jarvies
yes, it sounds searchtacular! eric On Dec 29, 2008, at 5:56 PM, Stefan Steiniger wrote: > me too! sounds spectacular :) .. now we need to find a fancy name. > > stefan > > Sunburned Surveyor schrieb: >> I think that would be handy. >> >> SS >> >> On Mon, Dec 29, 2008 at 12:12 PM, Larry Becker >

Re: [JPP-Devel] Search tool for Attributes

2008-12-29 Thread Stefan Steiniger
me too! sounds spectacular :) .. now we need to find a fancy name. stefan Sunburned Surveyor schrieb: > I think that would be handy. > > SS > > On Mon, Dec 29, 2008 at 12:12 PM, Larry Becker wrote: >> Question: >> >> You can use Simple Query to search Attribute fields for specific values, but

Re: [JPP-Devel] Search tool for Attributes

2008-12-29 Thread Sunburned Surveyor
I think that would be handy. SS On Mon, Dec 29, 2008 at 12:12 PM, Larry Becker wrote: > Question: > > You can use Simple Query to search Attribute fields for specific values, but > have you ever wanted to do a Google style search in a map? In other words, > search all attributes in all layers f

[JPP-Devel] Search tool for Attributes

2008-12-29 Thread Larry Becker
Question: You can use Simple Query to search Attribute fields for specific values, but have you ever wanted to do a Google style search in a map? In other words, search all attributes in all layers for any occurrence of one or more target words. I have a tool that could be morphed into this capa