Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top
top

In This Section

Table of Contents
maxLevel2

...

Eclipse is an Integrated Development Environment (IDE) for Java development. Plugins from Eclipse can make Eclipse also suitable for the development of other languages. There is, for instance, a C development environment based on Eclipse.

 

Installing Eclipse

A Java Development Kit (JDK) must be available in order to run Eclipse. This quick start guide assumes you are installing the JDK referenced in the XperienCentral Hardware and Software Requirements. The JDK is available from http://java.sun.com/javase/downloads/index_jdk5.jsp.

  1. Download Eclipse from http://www.eclipse.org/downloads/.
  2. Create the folder C:\GX\ and unpack the downloaded eclipse-(…)-win32.zip file to this folder. The C:\GX\eclipse folder is generated. When the installation is complete, Eclipse can be started by double-clicking the C:\GX\eclipse\eclipse.exe executable.
  3. Select a workspace or create one. For example:




    Note

    Throughout the instructions appearing in this section, the example workspace shown above isn’t used. This step is only necessary because Eclipse requires you to define a workspace.



  4. Continue with the rest of the configuration and then close this tab.

 

Back to Top

 

...

 

Configuring Eclipse

In the Window > Preferences > Java > Installed JREs menu, verify that Eclipse uses the Java Software Development Kit (j2sdk) as a default and not the Java Runtime Environment (JRE) (if necessary, the j2sdk can be added using the [Add] button):

...

Note

If the Java Software Development Kit is not selected by default, a message appears when you create a project warning you that the tools.jar cannot be found. This must be set correctly before defining a project or the project will have to be discarded and you must start all over again.

 

Back to Top

 

...

Anchor
configuring_eclipse_to_develop_plugins
configuring_eclipse_to_develop_plugins

Configuring Eclipse to Develop Plugins

Before continuing the configuring process of Eclipse, it is necessary to install XperienCentral, which is available from GX. This section assumes you are installing the latest version of XperienCentralinstall in the directory C:\GX\XperienCentral.

...

  • Name: M2_REPO
  • Path (folder): C:\GX\xperiencentral\maven2-repository 

 

Back to Top

 

...

Tag Libraries (Taglibs)

To be able to use tag-expansion (CTRL-space using the default configuration) while developing JSP’s on XperienCentral-specific tags, modify the following settings. In the Window > Preferences > XML > XML Catalog menu, click [Add], and click the folder button at the top-right and select FileSystem. Fill in the following values:

wmedit tags

URI: C:\GX\XperienCentral\webapps\backend\WEB-INF\wm\tld\wmedit.tld

...

Key: http://www.gxsoftware.com/taglib/wmedit


wm tags

URI: C:\GX\ XperienCentral\webapps\backend\WEB-INF\wm\tld\wm.tld

...

Key: http://www.gx.nl/taglib/wm


wmfn (function) tags

URI: C:\GX\ XperienCentral\webapps\backend\WEB-INF\wm\tld\functions.tld

...

If your Eclipse installation does not include the standard JSTL and Spring taglibs you can add the following useful tags:

jstl c (core) tags

URI: C:\GX\XperienCentral\webapps\backend\WEB-INF\wm\tld\jstl\c.tld

...

Key:  http://java.sun.com/jsp/jstl/core


jstl fn (functions) tags

URI: C:\GX\ XperienCentral\webapps\backend\WEB-INF\wm\tld\jstl\fn.tld

...

Key: http://java.sun.com/jsp/jstl/functions


jstl fmt (formatting) tags

URI: C:\GX\ XperienCentral\webapps\backend\WEB-INF\wm\tld\jstl\fmt.tld

...

Key: http://java.sun.com/jsp/jstl/fmt

 

 

Back to Top

 

...

Configuring Eclipse for Developing Certified Plugins

After installing the Guideline audit plugin XperienCentral, these files can be downloaded from Configuration > Guideline audit > Configuration.

Anchor
clean_up_code_templates_and_formatter
clean_up_code_templates_and_formatter

Clean up, Code Templates and Formatter

  1. Open the Window > Preferences > Java > Code Style section of the Eclipse workspace configuration.
  2. Import the eclipse_cleanup.xml file in the "Clean up" section:




  3. Import the eclipse_code_templates.xml file in the ‘Code Templates’ section:




Import the eclipse_formatter.xml file in the "Formatter" section:




Anchor
checkstyle
checkstyle

Checkstyle

The last file, checkstyle_gx_4.4.xml, the Checkstyle 4.4 coding conventions, requires the Checkstyle plug-in. If this plug-in is not available under Window > Preferences menu, it is possible to install the plug-in via the following steps:

...

  1. Navigate to Window > Preferences > Checkstyle.
  2. Click [New].
  3. Select an external configuration.
  4. Select a name (“GX checks” for example), and set the location to the attached GX-checkstyle.xml file and click [OK].



  5. Select the new configuration in the list and click [Set as default] and then click [OK].



Back to Top