Package com.japisoft.editix.plugin
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 Summary
Modifier and Type Method Description void
activeAction(java.lang.String actionId)
Active an item action from the editix descriptorvoid
closeCurrentDocument()
Close the current editorjava.util.Iterator<java.lang.String>
getActions()
EditixDocument
getCurrentDocument()
EditixDocumentModel
getDocumentModel()
static EditiXManager
getInstance()
void
info(java.lang.String message)
Display a dialogEditixDocument
newDocument(java.lang.String type)
Create and add a new documentjava.lang.String
prompt(java.lang.String title, java.lang.String defaultMessage)
Show a dialog and return the user input
-
Method Details
-
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
- Returns:
- An access to all the opened document
-
getCurrentDocument
- Returns:
- the current editor document
-
newDocument
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
-