Package org.eclipse.pde.core.plugin
Interface IPluginLibrary
- 
- All Superinterfaces:
- IAdaptable,- IPluginObject,- IWritable
 
 public interface IPluginLibrary extends IPluginObject The class that implements this interface represents a reference to the library that is defined in the plug-in manifest.- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCODEA library type indicating the library contains code.static StringP_CONTENT_FILTERSA name of the property that will be used to notify about changes in the content filters.static StringP_EXPORTEDA name of the property that will be used to notify about changes of the "exported" field.static StringP_PACKAGESA name of the property that will be used to notify about changes in the content filters.static StringP_TYPEA name of the property that will be used to notify about of the 'type' field.static StringRESOURCEA library type indicating the library contains resource files.- 
Fields inherited from interface org.eclipse.pde.core.plugin.IPluginObjectP_NAME
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddContentFilter(String filter)Export a particular package in a library.String[]getContentFilters()Returns optional context filters that should be applied to calculate what classes to export from this library.String[]getPackages()Returns optional package prefixes that can be used to make library lookup faster..StringgetType()Returns the type of this library.booleanisExported()Returns true if this library contains types that will be visible to other plug-ins.booleanisFullyExported()Returns true if all the types in this library will be visible to other plug-ins.voidremoveContentFilter(String filter)Remove a package from the export list.voidsetContentFilters(String[] filters)Sets the optional content filters for this library.voidsetExported(boolean value)Sets whether types in this library will be visible to other plug-ins.voidsetPackages(String[] packages)Sets the optional package prefixes for this library.voidsetType(String type)Sets the library type.- 
Methods inherited from interface org.eclipse.core.runtime.IAdaptablegetAdapter
 - 
Methods inherited from interface org.eclipse.pde.core.plugin.IPluginObjectgetModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setName
 
- 
 
- 
- 
- 
Field Detail- 
P_EXPORTEDstatic final String P_EXPORTED A name of the property that will be used to notify about changes of the "exported" field.- See Also:
- Constant Field Values
 
 - 
P_PACKAGESstatic final String P_PACKAGES A name of the property that will be used to notify about changes in the content filters.- See Also:
- Constant Field Values
 
 - 
P_CONTENT_FILTERSstatic final String P_CONTENT_FILTERS A name of the property that will be used to notify about changes in the content filters.- See Also:
- Constant Field Values
 
 - 
P_TYPEstatic final String P_TYPE A name of the property that will be used to notify about of the 'type' field.- See Also:
- Constant Field Values
 
 - 
CODEstatic final String CODE A library type indicating the library contains code.- See Also:
- Constant Field Values
 
 - 
RESOURCEstatic final String RESOURCE A library type indicating the library contains resource files.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getContentFiltersString[] getContentFilters() Returns optional context filters that should be applied to calculate what classes to export from this library.- Returns:
- an array of content filter strings
 
 - 
getPackagesString[] getPackages() Returns optional package prefixes that can be used to make library lookup faster..- Returns:
- an array of package prefixes
 
 - 
isExportedboolean isExported() Returns true if this library contains types that will be visible to other plug-ins.- Returns:
- true if there are exported types in the library
 
 - 
isFullyExportedboolean isFullyExported() Returns true if all the types in this library will be visible to other plug-ins.- Returns:
- true if all the types are exported in the library
 
 - 
getTypeString getType() - Returns:
- The type of this library
 
 - 
setContentFiltersvoid setContentFilters(String[] filters) throws CoreException Sets the optional content filters for this library. This method may throw a CoreException if the model is not editable.- Parameters:
- filters- an array of filter strings
- Throws:
- CoreException- if the model is not editable
 
 - 
addContentFiltervoid addContentFilter(String filter) throws CoreException Export a particular package in a library. This method may throw a CoreException if the model is not editable.- Parameters:
- filter- a package name
- Throws:
- CoreException- if the model is not editable
 
 - 
removeContentFiltervoid removeContentFilter(String filter) throws CoreException Remove a package from the export list. This method may throw a CoreException if the model is not editable.- Parameters:
- filter- a package name
- Throws:
- CoreException- if the model is not editable
 
 - 
setPackagesvoid setPackages(String[] packages) throws CoreException Sets the optional package prefixes for this library. This method may throw a CoreException if the model is not editable.- Parameters:
- packages- an array of package prefixes
- Throws:
- CoreException- if the model is not editable
 
 - 
setExportedvoid setExported(boolean value) throws CoreExceptionSets whether types in this library will be visible to other plug-ins. This method may throw a CoreException if the model is not editable.- Parameters:
- value- whether the types in the library should be exported
- Throws:
- CoreException- if the model is not editable
 
 - 
setTypevoid setType(String type) throws CoreException - Parameters:
- type- The library type
- Throws:
- CoreException- if the model is not editable.
 
 
- 
 
-