Interface ScriptCategoryContext


public interface ScriptCategoryContext
Per-editor context handed to a ScriptCategoryProvider when its node is built. Exposes only what a provider needs to wire its tree node + editor against the surrounding scripts editor frame:
  • Method Details

    • getPrimaryComponentPath

      Optional<ComponentPath> getPrimaryComponentPath()
      Returns:
      the lead component's path when the scripts editor targets a single component, or Optional.empty() when no component is the obvious anchor.
    • getAdapter

      DesignAdapter getAdapter()
      Returns:
      the DesignAdapter owning the current edit session.
    • update

      void update(TreeNode node)
      Notify the tree model that node's rendering may have changed.
    • insert

      void insert(DefaultMutableTreeNode parent, MutableTreeNode child, int index)
      Insert child under parent at index and notify the tree model. Selects the new child once inserted.
    • remove

      void remove(DefaultMutableTreeNode parent, MutableTreeNode child)
      Remove child from parent and notify the tree model. No-op when absent.