Class BuiltinAnnotatedToolsFactory

All Implemented Interfaces:
IFactory

public class BuiltinAnnotatedToolsFactory extends MCPAnnotatedToolFactory
  • Constructor Details

  • Method Details

    • currentSelection

      @Tool(name="currentSelection", title="Currrent Selection", description="Return the active Eclipse IDE text editor and its selected text") public TextEditorSelection currentSelection()
    • listEditors

      @Tool(name="listEditors", title="List Editors", description="List open Eclipse IDE text editors") public Editors listEditors()
    • listConsoles

      @Tool(name="listConsoles", title="List Consoles", description="List open Eclipse IDE consoles") public Consoles listConsoles()
    • listProjects

      @Tool(name="listProjects", title="List Projects", description="List open Eclipse IDE projects") public Resources listProjects()
    • listChildResources

      @Tool(name="listChildResources", title="List Child Resources", description="List child resources of an Eclipse workspace, project or folder URI") public Resources listChildResources(String resourceURI, int depth)
    • readResource

      @Tool(name="readResource", title="Read Resource", description="Returns the contents of an Eclipse workspace file, editor, or console URI") public String readResource(String uri)
    • openEditor

      @Tool(title="openEditor", description="open an Eclipse IDE editor on a file URI and set an initial text selection") public Editor openEditor(String fileUri, int selectionOffset, int selectionLength)
      Parameters:
      fileUri -
      selectionOffset -
      selectionLength -
      Returns:
    • closeEditor

      @Tool(title="closeEditor", description="close an Eclipse IDE editor") public void closeEditor(String editorUri)
    • saveEditor

      @Tool(title="saveEditor", description="save the contents of a dirty Eclipse IDE editor to file") public boolean saveEditor(String editorUri)
    • changeEditorText

      @Tool(title="changeEditorText", description="Make one or more changes to an Eclipse text editor") public boolean changeEditorText(String editorURI, TextReplacement[] replacements)
    • listProblems

      @Tool(title="listProblems", description="list Eclipse IDE compilation and configuration problems") public Problems listProblems(String resourceURI, String severity)
    • listTasks

      @Tool(title="listTasks", description="list codebase locations of tasks including TODO comments") public Tasks listTasks(String resourceURI)