Class EditiXManager

java.lang.Object
com.japisoft.editix.plugin.EditiXManager

public class EditiXManager
extends java.lang.Object
Here a manager for controlling EditiX. You can activate action item (from the menu/popup/toolbar) and access to all the editor
Author:
Alexandre Brillant (http://www.editix.com)
  • Method Details

    • getInstance

      public static EditiXManager getInstance()
      Returns:
      the current singleton for accessing to the editix manager
    • activeAction

      public void activeAction​(java.lang.String actionId)
      Active an item action from the editix descriptor
      Parameters:
      actionId - A unique action id
    • getActions

      public java.util.Iterator<java.lang.String> getActions()
      Returns:
      available actions id
    • info

      public void info​(java.lang.String message)
      Display a dialog
      Parameters:
      message - Simple dialog message
    • prompt

      public java.lang.String prompt​(java.lang.String title, java.lang.String defaultMessage)
      Show a dialog and return the user input
    • getDocumentModel

      public EditixDocumentModel getDocumentModel()
      Returns:
      An access to all the opened document
    • getCurrentDocument

      public EditixDocument getCurrentDocument()
      Returns:
      the current editor document
    • newDocument

      public EditixDocument newDocument​(java.lang.String type)
      Create and add a new document
      Parameters:
      type - Document Type : XML, DTD, XSD, CSS...
      Returns:
      a new document
    • closeCurrentDocument

      public void closeCurrentDocument()
      Close the current editor