Package org.praxislive.ide.pxr.spi
Interface RootEditor.Context
- Enclosing interface:
RootEditor
public static interface RootEditor.Context
A context for the root editor, providing additional data and a connection
back to the containing editor top component.
-
Method Summary
Modifier and TypeMethodDescriptionorg.openide.windows.TopComponentAccess the editor top component that the editor is installed in.org.openide.explorer.ExplorerManagerThe context explorer manager.Optional<org.openide.filesystems.FileObject> file()Access the file that backs the root, if available.project()Access the project that the root is part of, if available.Access the optional shared code viewer action.
-
Method Details
-
container
org.openide.windows.TopComponent container()Access the editor top component that the editor is installed in.- Returns:
- top component container
-
explorerManager
org.openide.explorer.ExplorerManager explorerManager()The context explorer manager. The editor should usually update and respond to updates in the main explorer manager.- Returns:
- context explorer manager
-
file
Optional<org.openide.filesystems.FileObject> file()Access the file that backs the root, if available.- Returns:
- file or empty optional
-
project
Optional<PraxisProject> project()Access the project that the root is part of, if available.- Returns:
- project or empty optional
-