Integrating IntelliJ IDEA

From BaseX Documentation

Jump to: navigation, search

This article is part of the Getting Started Section. It describes how to run XPath/XQuery code from within the IntelliJ IDEA IDE. There are currently two XQuery plugins for IntelliJ IDEA on the market:

Contents

[edit] Preparations

The following steps apply to all operating systems and both plugins:

[edit] XQuery Support + MarkLogic Debugger

This section focuses on Grzegorz Ligas' XQuery Support plugin.

[edit] Installation

After installing IntelliJ IDEA and BaseX, install the XQuery Support plugin by one of the following methods:

[edit] From the Start Screen

Intellij-startbildschirm.png

[edit] From the IntelliJ IDEA Menu

[edit] Setting Up

[edit] File Extensions and XQuery Flavor

Intellij-xquery-settings.png

[edit] Configuring The Processor

You can set up the plugin as a standalone processor or client.

[edit] Standalone

[edit] Client

This assumes that you already have a BaseX database named factbook.

Intellij-basex-data-source.png

[edit] Querying Your Data

Intellij-query.png

[edit] xquery-intellij-plugin

This section focuses on Reece H. Dunn's xquery-intellij-plugin.

[edit] Installation

After installing IntelliJ IDEA and BaseX, install the xquery-intellij-plugin by one of the following methods:

[edit] From the Start Screen

[edit] From the IntelliJ IDEA Menu

[edit] Configuring The Processor

Intellij-xquery-settings-2.png

[edit] Querying Your Data

Intellij-add-configuration.png

Intellij-new-query-processor.png

Intellij-xquery-configuration.png

Intellij-run-button.png

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export