[jbosstools-issues] [JBoss JIRA] (JBIDE-14083) CordovaSim: create a launch configuration

Yahor Radtsevich (JIRA) jira-events at lists.jboss.org
Fri Apr 19 05:30:53 EDT 2013


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

Yahor Radtsevich commented on JBIDE-14083:
------------------------------------------

[~gercan]:
bq. Java launch configs for instance do update if the name of the class is changed
Do you mean Refactor>Rename Java class? I believe this is done via a refactoring extension point (see these [commits|http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/log/?qt=grep&q=12746] and [bug|https://bugs.eclipse.org/bugs/show_bug.cgi?id=12746]).
However, I do not think this is a big issue for the user if he needs to create a new launch configuration after config change, which should be a very rare case.

[~maxandersen]:
bq. "Automatically prefill" feature of launch configs can result in multiple launch configurations being generated and it also requires you to use Run As.. > CordovaSim everytime...if you launch it from the launch menu it will not be refiled.
No, the launch configuration is stored automatically at the first run. So the next time you could use the Eclipse toolbar for it. Also we could define a Launch Configuration Comparator to not generate a new launch configuration every time when user clicks Run As...
You may play with Run As Java Application on a class with a main() method to see how it works.
                
> CordovaSim: create a launch configuration
> -----------------------------------------
>
>                 Key: JBIDE-14083
>                 URL: https://issues.jboss.org/browse/JBIDE-14083
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: browsersim
>            Reporter: Yahor Radtsevich
>            Assignee: Yahor Radtsevich
>             Fix For: 4.1.0.Beta1
>
>         Attachments: icd-draft-1.png
>
>
> Launch configurations is the conventional way to run applications in Eclipse. The idea of the feature proposal is to create a specific launch configuration allowing to run Cordova enabled projects in CordovaSim.
> The launch configuration might have the following attributes:
> # Root folder (e.g. {{/myProject/www}})
> # Start page (e.g. {{index.html}})
> # Port number for embedded Jetty server (e.g. {{4400}}). This port will be visible in the BrowserSim address bar.
> The launch configuration might be automatically configured for:
> # Projects with the JBoss Tools Cordova nature which has {{www/index.html}}.
> # Projects with the Android nature which has {{assets/www/index.html}}.
> # Any {{.html}} file selected by the user.
> # Any folder selected by the user if it has an {{index.html}} in it.

--
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