public abstract class DependencyManager
extends java.lang.Object
Constructor and Description |
---|
DependencyManager() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addDeclarationProvider(DeclarationProvider provider)
Deprecated.
Register declaration providers through the extension manifest file
|
abstract void |
addReferenceProvider(ReferenceProvider provider)
Deprecated.
Register reference providers through the extension manifest file
|
abstract java.util.Collection<Reference> |
findReferences(Context context,
Scope scope,
Declaration declaration)
Find all references to a declaration.
|
abstract java.util.Collection<Reference> |
findReferences(Context context,
Scope scope,
Declaration declaration,
ProgressIndicator progress)
Find all references to a declaration.
|
abstract Declaration |
getDeclaration(Context context)
Get the declaration for a context.
|
abstract java.util.Collection<DeclarationProvider> |
getDeclarationProviders()
Get the currently loaded declaration providers.
|
abstract java.util.Collection<Declaration> |
getDeclarations(Context context,
Node node)
Get all declarations for a Node.
|
static DependencyManager |
getDependencyManager()
Get the dependency manager instance.
|
abstract java.util.logging.Logger |
getLogger()
Get the logger used for dependency-related log messages.
|
abstract Reference |
getReference(Context context)
Get the reference for a context.
|
abstract java.util.Collection<ReferenceProvider> |
getReferenceProviders()
Deprecated.
This method will cause all extensions registering a
ReferenceProvider to be initialized. Use
getReferenceProviders(String[]) instead. |
abstract java.util.Collection<ReferenceProvider> |
getReferenceProviders(java.lang.String[] technologyKeys)
Get the registered reference providers for a set of technology scope keys.
|
abstract java.util.Collection<Reference> |
getReferences(Context context,
Node node)
Get all references for a Node.
|
abstract java.util.Collection<Declaration> |
getTopLevelDeclarations(Context context,
Node node)
Get all top-level declarations for a Node.
|
public static DependencyManager getDependencyManager()
public abstract java.util.logging.Logger getLogger()
public abstract Declaration getDeclaration(Context context)
context
- the contextpublic abstract Reference getReference(Context context)
context
- the contextpublic abstract java.util.Collection<Reference> getReferences(Context context, Node node) throws java.lang.InterruptedException
context
- the contextnode
- the Nodejava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract java.util.Collection<Declaration> getDeclarations(Context context, Node node) throws java.lang.InterruptedException
context
- the contextnode
- the Nodejava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract java.util.Collection<Declaration> getTopLevelDeclarations(Context context, Node node) throws java.lang.InterruptedException
Some languages have a hierarchy of declarations. Objects further down in the hierarchy can only be accessed through these top-level declarations. For example, methods in a Java class can only be referenced directly through a reference to the Java class. Or columns in a database table might only be referenced through a reference to the table. In those cases, it is possible to search for all references to a Node by searching only for the top-level declarations. This improves performance compared to searching for every declaration in the Node.
context
- the contextnode
- the Nodejava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract java.util.Collection<Reference> findReferences(Context context, Scope scope, Declaration declaration) throws java.lang.InterruptedException, java.lang.IllegalStateException
context
- the contextscope
- the search scopedeclaration
- the declaration to search forjava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract java.util.Collection<Reference> findReferences(Context context, Scope scope, Declaration declaration, ProgressIndicator progress) throws java.lang.InterruptedException, java.lang.IllegalStateException
context
- the contextscope
- the search scopedeclaration
- the declaration to search forprogress
- the progress indicatorjava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event thread@Deprecated public abstract void addDeclarationProvider(DeclarationProvider provider)
provider
- the declaration provider@Deprecated public abstract void addReferenceProvider(ReferenceProvider provider)
provider
- the reference providerpublic abstract java.util.Collection<DeclarationProvider> getDeclarationProviders()
@Deprecated public abstract java.util.Collection<ReferenceProvider> getReferenceProviders()
ReferenceProvider
to be initialized. Use
getReferenceProviders(String[])
instead.public abstract java.util.Collection<ReferenceProvider> getReferenceProviders(java.lang.String[] technologyKeys)
ReferenceProvider
for one of the provided
technology scope keys.technologyKeys
- the technology scope keys