Class Editor
java.lang.Object
uno.anahata.ai.nb.tools.Editor
Provides tools for interacting with the NetBeans editor, such as opening files
and navigating to specific lines.
- Author:
- anahata
-
Constructor Details
-
Editor
public Editor()
-
-
Method Details
-
openFile
Opens a specified file in the NetBeans editor and optionally scrolls to a specific line.- Parameters:
filePath- The absolute path of the file to open.scrollToLine- The line number to scroll to (1-based).- Returns:
- a message indicating the result of the operation.
- Throws:
Exception- if an error occurs.
-
getOpenFiles
Gets a list of all files open in the editor, including their path and unsaved changes status.- Returns:
- a string listing the open files.
-
