[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7393) Properties Editor -> Filter -> tooo complex logik for me

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Tue Oct 26 11:49:54 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-7393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559375#action_12559375 ] 

Viacheslav Kabanovich commented on JBIDE-7393:
----------------------------------------------

There is a difference between Java names and property names. In Java names, symbols * and ? are illegal so that they can be used as special symbols at search; in property names they are legal though unusual, and in property values they are quite common. What if user wants to select all properties with values that include the question mark? 

You do not have to know everything about regular expressions.
1) . is any character (as ? in your suggestion)
2) .* is any sequence of characters (as * in your suggestion)
3) \. is one character '.'
4) \* is one character '*'
These four rules make the equivalent to 'simple "*" and "?" support' without missing characters.

Regular expression language is a standard. It is sufficient to mention that it is used, and anyone can learn about it as much as needed.
Any other simplified search rules must be explained and described, because they may seem intuitive to many users, but not intuitive to some others.

> Properties Editor -> Filter -> tooo complex logik for me
> --------------------------------------------------------
>
>                 Key: JBIDE-7393
>                 URL: https://jira.jboss.org/browse/JBIDE-7393
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: core
>    Affects Versions: 3.2.0.Beta2
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Viacheslav Kabanovich
>            Priority: Minor
>
> I did not understand how this works, really. I do not so smart to print regular expression to search some property.
> I did not guess from the first look "Expression" means regular expression - I search JIRA to find what it mean and how it should work...
> I find JBIDE-4572, JBIDE-4576. 
> but really I do think what JBIDE-4576 is not about "real" regular expressions!
> it is just about support "*" and "?" - a good  example here is Ctrl-O search in Java files.
> the example how it works now - source file:
> hibernate.connection.driver_class=org.hsqldb.jdbcDriver
> hibernate.connection.password=
> hibernate.connection.url=jdbc:hsqldb:hsql://localhost/
> hibernate.connection.username=sa
> hibernate.dialect=org.hibernate.dialect.HSQLDialect
> hibernate.dialect222=org.hibernate.dialect.HSQLDialect222
> "di*2" - find nothing...
> so really my opinion - regular expressions here is options for genius...
> just simple  "*" and "?" support is necessary.
> "Case sensitive" - this option look like excessive.. - I wrote my opinion in JBIDE-4572 - 
> checkbox "Case sensitive" - is simple to understand - so it could be here.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list