Interface RootEditor.Provider

All Known Implementing Classes:
GraphEditorProvider, GuiEditorProvider
Enclosing interface:
RootEditor

public static interface RootEditor.Provider
An interface for providers of root editors. Providers should be registered using ServiceProvider. The first provider to return an editor will be selected. Use service provider position to order if necessary.
  • Method Details

    • createEditor

      Optional<RootEditor> createEditor(RootProxy root, RootEditor.Context context)
      Create an editor for the provided root, if the root type, context, etc. are supported by this provider.
      Parameters:
      root - root proxy
      context - root editor context
      Returns:
      root editor or empty optional