How to add other ArcGIS integration features


In this topic


Adding other ArcGIS integration features

Do the following steps to add shortcuts and the most commonly used code into your Java classes.

Adding code shortcuts and snippets

  1. Type the code shortcut and press Ctrl+Spacebar in the source code editor window. See the following examples of code shortcuts and the text that will be inserted at the cursor location:
    • inite—EngineInitializer.initializeEngine();
    • initv—EngineInitializer.initializeVisualBeans();
  2. Right-click the source code text and click ArcGIS, then Code Snippets. Each category contains several options that will add the appropriate code into your application. See the following screen shot:

Adding ArcGIS samples

When the ArcGIS plug-in for Eclipse integrated development environment (IDE) are installed, the ArcGIS Engine samples can be imported as an Eclipse project, described as follows:
On Linux machines, to avoid seeing crashes due to Standard Widget Toolkit (SWT) internal errors, ensure you have a GTK2 version of Mozilla (1.6 or higher) installed on your machine and set the MOZILLA_FIVE_HOME environment variable to point to the browser's installation folder. For more information, see The SWT FAQ.
  1. On the Eclipse main toolbar, click File, New, and Project. In the New Project wizard, click the ESRI Templates node, then ArcGIS Engine Sample. 
  2. Click Next. See the following screen shot:

  3. The New ArcGIS Engine Sample Project dialog box lists all samples provided by ESRI. The Description area on the right shows detailed information about the selected sample. Click the applicable sample under the Select a Sample area and click Finish. See the following screen shot:

  4. The selected sample is imported as an Eclipse project. To view the source code, select the Java file in the corresponding project. To run the sample, right-click the Java file and click Run As, Java Application. See the following screen shot:



    The description for the corresponding sample can be found in example.html in the same project folder. See the following screen shot:







Development licensing Deployment licensing
ArcView ArcView
ArcEditor ArcEditor
ArcInfo ArcInfo
Engine Developer Kit Engine Runtime