Skip to content

acrolinx/sidebar-sdk-java

Repository files navigation

Acrolinx Sidebar Java SDK

Build

This is a Java library for integrating the Acrolinx Sidebar into different Java UI framework-based applications (JFX, Swing, and SWT).

You can use the Maven artifact com.acrolinx.client:sidebar-sdk to integrate Acrolinx in your Java application.

See: Build With Acrolinx

The Acrolinx Sidebar

The Acrolinx Sidebar is designed to show up beside the window where you edit your content. You use it for checking, reviewing, and correcting your content. To get an impression what the Sidebar looks like in existing integrations, have a look at Sidebar Quick Start.

Prerequisites

Please contact Acrolinx SDK support for consulting and getting your integration certified.

Before you start developing your own integration, you might benefit from looking into:

Getting Started

Build the Project

  1. You need Java 11 to build this project.
  2. This project uses Gradle. To build this project with the Gradle Wrapper, execute the following command:
./gradlew build

on an UNIX system, or

gradlew build

on a Windows computer.

Using the SDK

  1. Reference the Maven artifact com.acrolinx.client:sidebar-sdk which is available on Maven Central. Have a look at the build.gradle file if you use Gradle.
  2. Implement:
    • AcrolinxIntegrationInterface, and the
    • InputAdapterInterface.
    • The AcrolinxSidebarInitParameterBuilder helps you initialize the Acrolinx Sidebar.
  3. Check out the Sidebar SDK Java API Reference for more details.

Architecture and Interfaces

SDK Features

  1. Support for UI-frameworks:

    • JavaFX
    • Swing
    • SWT
  2. LookupRangesDiff - Provides lookup functionality.

  3. Start page: Provides an interactive way to sign in to Acrolinx with built-in error handling.

  4. Provides logging. Logging can be activated via:

    LoggingUtils.setupLogging("AcrolinxDemoClientJFX");
  5. Provides an AcrolinxStorage that can be used to persist Sidebar settings in the data store of the host editors. If not set, the SDK will default to the browsers LocalStorage.

  6. Provides MultiSidebar usage that can be used to create and manage multiple Sidebars. Every document can get its own Sidebar. Helping preserve Acrolinx results switching between documents.

  7. Provides Batch Checking functionality to check multiple documents with a single click.

Using Sidebar v15 with SWT

Only for Windows OS based Integrations

If you choose to use Sidebar v15 with SWT, you additionally need to install the WebView2 Runtime on the user's system.

This is required as Sidebar v15 doesn't support Internet Explorer.

Follow the guidelines provided by Microsoft to install the WebView2 Runtime.

SDK Architecture

Java SDK Overview

References