Crosswalk Developer Tools Eclipse plugin - PeterWangIntel/crosswalk-website GitHub Wiki

Crosswalk Developer Tools Eclipse plugin

Introduction

Crosswalk Developer Tools Eclipse plugin is a suite of tools to develop Crosswalk Applications which extends generic Eclipse to be able to create a Crosswalk Application project, import an exist project from file system or export the Crosswalk Application to be an .apk for running on Android emulator or device.

Requirement

Below dependencies are needed for Crosswalk Developer Tools Eclipse Plugin

Installation

Several simple steps to install the plugin into your Eclipse as following. You can use the follow 3 methods to install the plug. Recommended the first method.

Online Install

In Eclipse menu select: Help -> Install New Software. Type the follow url: https://download.01.org/crosswalk/releases/crosswalk-eclipse-plugin Then you can select "Crosswalk Development Tools" and install it.

Download plugin and install

You can download the plugin jar at https://download.01.org/crosswalk/releases/crosswalk-eclipse-plugin/plugins Then copy the plugin file you exported to the plugins directory in Eclipse.

Build source code and install

You can also build it from source code. 1.Use below command to download the source code

git clone https://github.com/crosswalk-project/crosswalk-developer-tools-eclipse-plugin.git

2.Import the source code to Eclipse

a.In Eclipse menu select:
"File->Import"

b.Then select "General/Existing Projects into workspace" and click "Next" button

3.Build the plugin and export the binary

a.In Eclipse menu select:
"File->Export"

b.Then select "Plug-in Development/Deployable plug-ins and fragments" and click "Next" button to choose a directoty to export the plugin

4.Install the plugin

Copy the plugin file you exported to the plugins directory in Eclipse

Usage

Configuration for Android SDk and Crosswalk

Before start using the plugin, it's needed to set up the path for the Android SDK and Crosswalk.
We provide a very simple way to do that as below:

1.In Eclipse menu:
Select "Window->Preferences"

2.Select "Crosswalk App" preference of the navigation menu

3.Click "Browse" button to set the path you place your Android SDK and Crosswalk.

4.Click "Save" button to save the setting

Create Crosswalk Application Project

1.In Eclipse menu:
Select "File->New->Crosswalk Project"

2.Input the "Application name" and "Project name" then click "Finish" button, then a new empty Crosswalk Project will be created in the workspace

Import an exist project

If you already have an exist Crosswalk in the filesystem, you will be able to import it to Eclipse by following Steps

1.In Eclipse menu:
Select "File->Import"

2.Select "Crosswalk/Import Crosswalk Project" then click "Next" button

3.Use "Browse" button to browse the path of your Crosswalk Project

4.Click "Finish" button 

Export Crosswalk Application

1.In Eclipse menu:
Select "File->Export"

2.Select "Crosswalk/Export Crosswalk App" then click next

3.Input the required information then click "Finish" button