Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
book-of-vaadin.pdf
Скачиваний:
88
Добавлен:
24.03.2015
Размер:
13.43 Mб
Скачать

Getting Started with Vaadin

detailed information regarding the compiler, see Section 13.4, “Compiling a Client-Side Module”.

vaadin-client-compiled-7.x.x.jar

A precompiled Vaadin Client-Side Engine (widget set) that includes all the basic builtin widgets in Vaadin. This library is not needed if you compile the application widget set with the Vaadin Client Compiler.

vaadin-themes-7.x.x.jar

Vaadin built-in themes both as SCSS source files and precompiled CSS files. The library is required both for basic use with CSS themes and for compiling custom SASS themes.

vaadin-theme-compiler7.x.x.jar

The Vaadin Theme Compiler compiles SASS themes to CSS, as described in Section 8.3, “Syntactically Awesome Stylesheets (Sass)”. It requires the vaadin-themes-7.x.x.jar library, which contains the SCSS sources for the builtin themes.

Some of the libraries depend on each other as well as on the dependency libraries provided in the lib folder of the installation package, especially the lib/vaadin-shared-deps.jar.

The different ways to install the libraries are described in the subsequent sections.

2.4. Installing Vaadin Plugin for Eclipse

If you are using the Eclipse IDE, using the Vaadin Plugin for Eclipse helps greatly. Notice that you can also create Vaadin projects as Maven projects in Eclipse.

The plugin includes:

An integration plugin with wizards for creating new Vaadin-based projects, themes, and client-side widgets and widget sets.

A visual editor for editing custom composite user interface components in a WYSIWYG fashion. With full round-trip support from source code to visual model and back, the editor integrates seamlessly with your development process.

A version of Book of Vaadin that you can browse in the Eclipse Help system.

2.4.1.Installing the IvyDE Plugin

The Vaadin Plugin for Eclipse requires the Apache IvyDE plugin, which needs to be installed manually in Eclipse before the Vaadin plugin.

1.Select Help Install New Software....

2.Add the IvyDE update site by clicking the Add... button.

Enter a name such as "Apache Ivy Update Site" and the URL of the update site:

http://www.apache.org/dist/ant/ivyde/updatesite

Then click OK. The Vaadin site should now appear in the Available Software window.

3. Select the new "Apache Ivy Update Site" from the Work with list.

Installing Vaadin Plugin for Eclipse

33

Getting Started with Vaadin

4. Select the Apache Ivy, Apache Ivy Ant Tasks, and Apache IvyDE plugins.

The Apache IvyDE Resolve Visualizer is optional, and would require additional dependency plugins to be installed.

Then, click Next.

5.Review the installation details and click Next.

6.Accept or unaccept the license. Finally, click Finish.

7.Eclipse may warn about unsigned content. If you feel safe, click OK.

8.After the plugin is installed, Eclipse will ask to restart itself. You can proceed to install the Vaadin plugin before the restart, as described in the following section, so you can answer Apply Changes Now.

2.4.2.Installing the Vaadin Plugin

You can install the plugin as follows:

1.Select Help Install New Software....

2.Add the Vaadin plugin update site by clicking Add... button.

34

Installing the Vaadin Plugin

Getting Started with Vaadin

Enter a name such as "Vaadin Update Site" and the URL of the update site: http://vaadin.com/eclipse. If you want or need to use the latest unstable plugin, which is usually more compatible with development and beta releases of Vaadin, you can use http://vaadin.com/eclipse/experimental. Then click OK. The Vaadin site should now appear in the Available Software window.

3. Select all the Vaadin plugins in the tree.

Then, click Next.

4.Review the installation details and click Next.

5.Accept or unaccept the license. Finally, click Finish.

6.After the plugin is installed, Eclipse will ask to restart itself. Click Restart.

More installation instructions for the Eclipse plugin can be found at http://vaadin.com/eclipse.

Installing the Vaadin Plugin

35

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]