Package com.ganteater.ae.desktop.editor
package com.ganteater.ae.desktop.editor
Swing-based recipe authoring and execution UI for the Anteater desktop application.
This package provides the core editor container, the primary recipe source editor, and a small extension model for adding additional tabs (for example, variables, help, or execution output) that integrate with the recipe lifecycle.
Key concepts
- TaskEditor (
TaskEditor) is the main container. It hosts the source editor and other tabs, coordinates open/save, and controls run/stop. - Editor tabs are Swing components that optionally implement
Editor. Implementations are initialized withEditor.init(com.ganteater.ae.desktop.editor.TaskEditor)to access the editor context (current recipe text, variables, and execution controls). - Primary source editor is typically
TextEditor, which edits the recipe as XML text and is treated as the canonical source view. - Authoring helpers such as
CodeHelperand dialogs likeCommandHelperDialogprovide insertion/scaffolding assistance for common commands.
Typical usage
Create and display a TaskEditor in a Swing container:
javax.swing.JFrame frame = new javax.swing.JFrame("Anteater Editor");
frame.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
com.ganteater.ae.desktop.editor.TaskEditor editor = new com.ganteater.ae.desktop.editor.TaskEditor();
frame.setContentPane(editor);
frame.pack();
frame.setVisible(true);
To contribute a custom tab, implement Editor and register it via the
application's editor configuration mechanism.
-
ClassDescriptionThis JDialog subclass supports resizing and undecorated mode.