Changes

Jump to navigation Jump to search
no edit summary
After installing IntelliJ IDEA and BaseX, install the xquery-intellij-plugin by one of the following methods:
==='''From the Start Screen==='''
[[File:intellij-startbildschirm.png]]
* You will be prompted to restart IDEA to load the new plugin.
==='''From the IntelliJ IDEA Menu==='''
* Select ''Settings'' (Windows)/''Preferences'' (macOS) in the ''IntelliJ IDEA'' menu.
* In the Settings/Preferences window, select ''Plugins''.
'''Create a Query File'''
* In the project view, create a new XQuery file, either by right-clicking on the project name and choosing ''New''→''File'' or by selecting ''New''→''File'' from the File menu. Enter a file name and click ''OK''.
* Type in your query , e.g. <code>db:open("factbook")</code>, and save your file.
'''Create a New Configuration'''
* Click the ''Run'' button to execute your query.
=XQuery SupportPlugin=
This section focuses on Grzegorz Ligas' [https://plugins.jetbrains.com/plugin/7262-xquery-support XQuery Support plugin].
After installing IntelliJ IDEA and BaseX, install the XQuery Support plugin by one of the following methods:
==='''From the Start Screen==='''
* Start IntelliJ IDEA and select ''Configure''→''Plugins''.
* You will be prompted to restart IDEA to load the new plugin.
==='''From the IntelliJ IDEA Menu==='''
* Select ''Settings'' (Windows)/''Preferences'' (macOS) from the ''IntelliJ IDEA'' menu.
* In the Settings/Preferences window, select ''Plugins''.
==Setting Up==
==='''File Extensions and XQuery Flavor==='''
* Start IntelliJ IDEA and navigate to ''Settings'' (Windows)/''Preferences'' (macOS) either using the ''Configure'' button on the start screen or the ''IntelliJ IDEA'' menu.
* In the Settings/Preferences window, expand the ''Languages & Frameworks'' item, select ''XQuery'' and choose which default file extensions and which XQuery flavor you would like to use.
* In the project view, create a new XQuery file by right-clicking on the project name and choosing New→XQuery File. Enter a file name, select ''Main Module'' from the ''Kind'' dropdown and click OK.
* Type in your query and save your file.
[[File:Intellij-query.png]]
'''Create a New Configuration'''
* If the configuration does not run as a standalone instance, make sure that BaseX is up and running.
* Click the ''Run'' button to execute your query.
[[File:Intellij-query.png]]
administrator, editor
162

edits

Navigation menu