All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.acrolinx.sidebar.AcrolinxMultiViewSidebarInterface Maven / Gradle / Ivy

/* Copyright (c) 2018 Acrolinx GmbH */
package com.acrolinx.sidebar;

import com.acrolinx.sidebar.utils.AcrolinxException;

/**
 * This interface needs be implemented to support multiple sidebars. Each open document will have
 * its own corresponding sidebar. These methods should be called by the integration whenever a new
 * editor is opened, activated or closed.
 */
public interface AcrolinxMultiViewSidebarInterface {
  /** Launches a new sidebar for the opened document with id documentId. */
  void addSidebar(AcrolinxIntegration acrolinxIntegration, String documentId)
      throws AcrolinxException;

  /** Switches the active sidebar to the one corresponding to the document with id documentId. */
  void switchSidebar(String documentId) throws AcrolinxException;

  /** Removes the sidebar for the document with id documentId. */
  void removeSidebar(String documentId) throws AcrolinxException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy