Eclipse IDE integration  

Getting Started with templates


1. From the Eclipse main menu, select File>New>Project.

2. A New Project wizard appears. Navigate to the ESRI Templates folder, open it, then select ArcGIS Engine Project. Click Next.

 

3. Enter values for the listed fields:

  • Use the default for Project name.
  • Select the Basic Viewer application template.
  • Use the default for Class name.
  • Click Next.

 

 

4. This dialog box allows you to further customize the application:

  • Select Map as the Viewer.
  • Select each of the toolbars.  The icons of the functionality appear on the right.
  • Click the open folder button and navigate to a *.mxd file.  Leave Open in Visual Editor checked.  Visual Editor is the GUI Designer with drag and drop capabilities for building projects. Click Next.

 

5. You can now specify which license the application should use by selecting from all the various product or extension licenses.  For now, check the ArcGIS Engine Product License box.

 

6. The final dialog box allows you to customize the build path for your project. Note that the arcobjects.jar file is included automatically.  Click Finish to create the project.

 

The ArcGIS Engine application opens in Visual Editor.  The layout of the interface appears like the following screenshot.  You can close any view or relocate the views by dragging and dropping on the interface.  To retrieve any closed view, click Window>Show View from the main menu and the chosen view is displayed.  For now, you simply need to run the application the template has set up. 

 

 

Right-click the BasicViewer.java class in the Package Explorer and select Run As>Java Application from the pop-up menu.

 

The application is displayed with the map, TOC, and chosen toolbars as follows.

 

Congratulations, you have created your first working application with ArcGIS Engine.  To learn more about developing Engine applications within Eclipse, refer to Building applications with visual Beans.  This will show you how to build an application from scratch by dragging visual Beans onto the Visual Editor and setting their properties.