public class JavaPackagesCompletionProvider extends AbstractCompletionProvider
TRACE_CODE_COMPLETION
Constructor and Description |
---|
JavaPackagesCompletionProvider() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsPackage(String candidate)
Try to find a package in the registered package list
|
static Collection<String> |
getExportedPackages(org.osgi.framework.Bundle bundle)
Get a list of all exported packages of a bundle.
|
static Map<String,Collection<String>> |
getPackages() |
boolean |
isActive(ICompletionContext context)
Query indicating that this providers completion proposals should be taken into account.
|
getContext, getProposals
public boolean isActive(ICompletionContext context)
ICompletionProvider
isActive
in interface ICompletionProvider
isActive
in class AbstractCompletionProvider
context
- ICompletionContext
with necessary information to calculate proposals.true
when activepublic static Map<String,Collection<String>> getPackages()
public static Collection<String> getExportedPackages(org.osgi.framework.Bundle bundle)
bundle
- bundle instancepublic static boolean containsPackage(String candidate)
candidate
- package name to look uptrue
when package is registered