How to stop Eclipse from trying to run XML files?

前端 未结 5 668
灰色年华
灰色年华 2020-12-08 09:07

I\'m mostly using Eclipse for Android development these days, and have developed good muscle memory for Ctrl-F11 to run my app. Problem is, if I happen to be editing an XML

相关标签:
5条回答
  • 2020-12-08 09:36

    As Oraple stated:

    uninstall [the] XSL plugin

    This is done by

    1. clicking on Help > Installation Details
    2. searching for "xsl"
    3. select the plugin
    4. clicking on the Uninstall...-button at the bottom
    5. restarting your IDE if prompt
    0 讨论(0)
  • 2020-12-08 09:38

    Thanks to JesperE's answer I solved it by "Always launch the previously launched application".

    Just wanted to add that I didn't have the problem with launching xml until I install "PHP Development Tools".

    My conclusion is that in the future I might consider having two separate installs of Eclipse:

    • One with clean Java and Android programming (possibly other stuff)
    • And one with PHP and possibly other web-related stuff
    0 讨论(0)
  • 2020-12-08 09:40

    You can tell Eclipse to launch your latest launch configuration, instead of attempting to create a launch configuration for the current document/selection. Under Preferences -> Run/Debug -> Launching, you can select "Always launch the previously launched application".

    EDIT: You probably have a plugin which defines a launch shortcut which triggers on XML-files. This sounds like a pretty dumb thing to do.

    0 讨论(0)
  • 2020-12-08 09:45

    My solution is uninstall XSL plugin.

    0 讨论(0)
  • 2020-12-08 09:46

    As an alternative to @JesperE's solution, you can filter out the XSL run configuration by Run/Debug -> Launching -> Launch Configurations -> Filter checked launch configuration types (on right pane) and then check the XSL checkbox.

    When you apply and close the preferences window, open "Run Configurations" and you will notice the annoying XSL launch config is no longer there. This way, you can still have the ability to launch the selected executable class, but not if it is an XML file.

    0 讨论(0)
提交回复
热议问题