[jbosstools-issues] [JBoss JIRA] (JBIDE-14003) Automatically discover library sources for non-maven projects

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Wed Apr 17 12:46:54 EDT 2013


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

Snjezana Peco commented on JBIDE-14003:
---------------------------------------

I will add this feature. Just a few notes:

- invalid source attachment doesn't have any side effect. Users that don't have the Source Lookup plugin, but share such projects, won't see source, but won't have any other issues
- when a user opens a class file, he wants to see source, not a class file. We will ask him something obvious. 
- m2e can break this behaviour and add a hardcoded source attachment. It won't fix such a source attachment and users could have an invalid attachment if don't use the Source Lookup plugin no matter whether we add that dialog or not, even though all have m2e. If you think that is important, we would need to create a bug against m2e (including a patch). The Maven Container source attachment won't be copied if a user copies just a project, but the issue can happen if a user copies the workspace or changes/deletes a local maven repository.

Re: dialog
There is the standard way to create such dialogs in Eclipse. That would be a simple Yes/No dialog with a title/message you have proposed and the "Remember my decision" checkbox. The checked checkbox can mean "Always Yes" or "Always No". The user can't choose "Always No" in your proposal. Such a dialog can be seen when opening a project that has dependent projects.

{quote}
[1] http://stackoverflow.com/questions/9286074/using-variables-for-source-attachments-in-eclipse
{quote}

I know variables can be used for entries of the type "val", but those entries are rarely used.
                
> Automatically discover library sources for non-maven projects
> -------------------------------------------------------------
>
>                 Key: JBIDE-14003
>                 URL: https://issues.jboss.org/browse/JBIDE-14003
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: maven
>    Affects Versions: 4.1.0.Alpha1
>            Reporter: Fred Bricon
>            Assignee: Snjezana Peco
>             Fix For: 4.1.0.Beta1
>
>         Attachments: test13848a.zip
>
>
> As a follow up of JBIDE-13848, enable automatic discovery of library sources for non-maven projects.
> * This feature should be turned on/off in the preferences
> * If the source file referenced in .classpath doesn't exist, it should attempt to discover a new, valid one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list