Package org.praxislive.ide.code.api
Class DynamicPaths
java.lang.Object
org.praxislive.ide.code.api.DynamicPaths
Service for registering dynamic paths in the IDE, usually for in-memory
source files. This enables queries for classpath, source level, etc. across
these files. Each registration method returns a private
that can
be used to unregister the sources. Sources should be unregistered when no
longer required or a strong reference will be held to them.
invalid reference
#Key
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA key for unregistering a code path.static classA key for accessing shared code info and unregistering a shared code path. -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicPathsregister(PraxisProject project, org.openide.filesystems.FileObject root) Register a source root without dependency on shared code.register(PraxisProject project, org.openide.filesystems.FileObject root, SharedCodeInfo shared) Register a source root with optional dependency on shared code.registerShared(PraxisProject project, org.openide.filesystems.FileObject root, org.openide.filesystems.FileObject sharedFolder) Register a folder for shared code files.
-
Method Details
-
register
Register a source root without dependency on shared code. See.invalid reference
#register(org.praxislive.ide.project.api.PraxisProject, org.praxislive.ide.code.api.SharedCodeInfo, org.openide.filesystems.FileObject)- Parameters:
project- the projectroot- root folder- Returns:
- key for unregistering
-
getDefault