[jbosstools-issues] [JBoss JIRA] Issue Comment Edited: (JBIDE-9678) New beans.xml wizard should warn if the file already exists

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Wed Sep 7 20:22:27 EDT 2011


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

Alexey Kazakov edited comment on JBIDE-9678 at 9/7/11 8:20 PM:
---------------------------------------------------------------

I think we should override it. There is no default file name in New File wizard. So you have to enter a name of the file. So it makes sense not to show any error message in case of blank name field and wait for user to start typing but in our case we have a default file name and we should validate if it already exists.

      was (Author: akazakov):
    I think we should override it. There is no default file name in New File wizard. So you have to enter a name for the file. So it makes sense not to show any error message in case of blank name field and wait for user to start typing but in our case we have a default file name and we should validate if it already exists.
  
> New beans.xml wizard should warn if the file already exists
> -----------------------------------------------------------
>
>                 Key: JBIDE-9678
>                 URL: https://issues.jboss.org/browse/JBIDE-9678
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI
>    Affects Versions: 3.3.0.M3
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.3.0.M4
>
>
> EXECUTE: Check out http://jee6-cdi.googlecode.com/svn/tutorial/cdi-di-example
> EXECUTE: Import it as existing maven project
> EXECUTE: Select /cdi-di-tutorial/src/main/resources in Package Explorer
> EXECUTE: Ctrl+N -> CDI -> File beans.xml
> ASSERT: Finish button is disabled (that's good)
> FAILURE: There is no error message in the wizard regarding existing beans.xml
> EXECUTE: Close the wizard. Select /cdi-di-tutorial in Package Explorer
> EXECUTE: Ctrl+N -> CDI -> File beans.xml
> FAILURE: The wizard use /cdi-di-tutorial/src/main/java folder by default and if you click ok you will give a duplicated beans.xml in the project. The wizard should check all the source and web content folders and if there is any beans.xml then use the root folder of this beans.xml as default one. So user will see the error right away if he missed the existing beans.xml and trying to create a duplicate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list