Interface LookupProvider
public interface LookupProvider
interface for inclusion of 3rd party content in project's lookup. Typically, if the
project type allows composition of lookup from multiple sources, it will make a layer
location public where 3rd parties will register implementations of this interface.
- Since:
- org.netbeans.modules.projectapi 1.12
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic @interface
Annotation to registerLookupProvider
instances. -
Method Summary
Modifier and TypeMethodDescriptionorg.openide.util.Lookup
createAdditionalLookup
(org.openide.util.Lookup baseContext) implementations will be asked to create their additional project lookup based on the baseContext passed as parameter.
-
Method Details
-
createAdditionalLookup
org.openide.util.Lookup createAdditionalLookup(org.openide.util.Lookup baseContext) implementations will be asked to create their additional project lookup based on the baseContext passed as parameter. The content of baseLookup is undefined on this level, is a contract of the actual project type. Can be complete lookup of the project type, a portion of it or something completely different that won't appear in the final project lookup. Each implementation is only asked once for it's lookup for a given project instance at the time when project's lookup is being created.- Parameters:
baseContext
- implementation shall decide what to return for a given project instance based on context passed in.- Returns:
- a
Lookup
instance that is to be added to the project's lookup, never null.
-