You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getting-started-eclipse.asciidoc 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. ---
  2. title: Vaadin Plugin for Eclipse
  3. order: 4
  4. layout: page
  5. ---
  6. [[getting-started.eclipse]]
  7. = Vaadin Plugin for Eclipse
  8. If you are using the Eclipse IDE, using the Vaadin Plugin for Eclipse helps
  9. greatly. The plugin includes wizards for creating new Vaadin-based projects,
  10. themes, and client-side widgets and widget sets. Notice that you can also create
  11. Vaadin projects as Maven projects in Eclipse.
  12. [[getting-started.eclipse.vaadin-plugin]]
  13. == Installing the Vaadin Plugin
  14. You can install the plugin as follows:
  15. . Select "Help > Install New Software...".
  16. . Add the Vaadin plugin update site by clicking [guibutton]#Add...# button.
  17. +
  18. image::img/plugin-install-addsite.png[]
  19. +
  20. Enter a name such as "Vaadin Update Site" and the URL of the update site:
  21. http://vaadin.com/eclipse. If you want or need to use the latest unstable
  22. plugin, which is usually more compatible with development and beta releases of
  23. Vaadin, you can use http://vaadin.com/eclipse/experimental and give it a
  24. distinctive name such as "Vaadin Experimental Site". Then click [guibutton]#OK#.
  25. The Vaadin site should now appear in the [guilabel]#Available Software# window.
  26. . Currently, if using the stable plugin, the [guilabel]#Group items by category# should be enabled. If using the experimental plugin, it should be disabled. This may change in future.
  27. . Select all the Vaadin plugins in the tree.
  28. +
  29. image::img/plugin-install-available.png[]
  30. +
  31. Then, click [guibutton]#Next#.
  32. . Review the installation details and click [guibutton]#Next#.
  33. . Accept or unaccept the license. Finally, click [guibutton]#Finish#.
  34. . After the plugin is installed, Eclipse will ask to restart itself. Click
  35. [guibutton]#Restart#.
  36. More installation instructions for the Eclipse plugin can be found at
  37. http://vaadin.com/eclipse.
  38. [[getting-started.eclipse.update]]
  39. == Updating the Plugins
  40. If you have automatic updates enabled in Eclipse (see "Window > Preferences >
  41. Install/Update > Automatic Updates"), the Vaadin plugin will be updated
  42. automatically along with other plugins. Otherwise, you can update the Vaadin
  43. plugin manually as follows:
  44. . Select "Help > Check for Updates". Eclipse will contact the update sites of the
  45. installed software.
  46. . After the updates are installed, Eclipse will ask to restart itself. Click
  47. [guibutton]#Restart#.
  48. Notice that updating the Vaadin plugin updates only the plugin and __not__ the
  49. Vaadin libraries, which are project specific. See below for instructions for
  50. updating the libraries.
  51. [[getting-started.eclipse.libraryupdate]]
  52. == Updating the Vaadin Libraries
  53. Updating the Vaadin plugin does not update Vaadin libraries. The libraries are
  54. project specific, as a different version might be required for different
  55. projects, so you have to update them separately for each project.
  56. . Open the [filename]#ivy.xml# in an editor in Eclipse.
  57. . Edit the entity definition at the beginning of the file to set the Vaadin
  58. version.
  59. +
  60. [subs="normal"]
  61. ----
  62. <!ENTITY vaadin.version "**7.x.x**">
  63. ----
  64. +
  65. You can specify either a fixed version number, as shown in the above example, or
  66. a dynamic revision tag such as [literal]#++latest.release++#. You can find more
  67. information about the dependency declarations in Ivy documentation.
  68. . Right-click the project and select "Ivy > Resolve".
  69. +
  70. Updating the libraries can take several minutes. You can see the progress in the
  71. Eclipse status bar. You can get more details about the progress by clicking the
  72. indicator.
  73. . If you have compiled the widget set for your project, recompile it by clicking
  74. the [guibutton]#Compile Vaadin widgets# button in Eclipse toolbar.
  75. . Stop the integrated Tomcat (or other server) in Eclipse, clear its caches by
  76. right-clicking the server and selecting Clean as well as Clean Tomcat Work
  77. Directory, and restart it.
  78. If you experience problems after updating the libraries, you can try clearing
  79. the Ivy resolution caches by right-clicking the project and selecting "Ivy >
  80. Clean all caches". Then, do the "Ivy > Resolve" and other tasks again.