public interface IPluginLibrary extends IPluginObject
Modifier and Type | Field and Description |
---|---|
static String |
CODE
A library type indicating the library contains code.
|
static String |
P_CONTENT_FILTERS
A name of the property that will be used to
notify about changes in the content filters.
|
static String |
P_EXPORTED
A name of the property that will be used to
notify about changes of the "exported" field.
|
static String |
P_PACKAGES
A name of the property that will be used to
notify about changes in the content filters.
|
static String |
P_TYPE
A name of the property that will be used to
notify about of the 'type' field.
|
static String |
RESOURCE
A library type indicating the library contains resource files.
|
P_NAME
Modifier and Type | Method and Description |
---|---|
void |
addContentFilter(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..
|
String |
getType()
Returns the type of this library.
|
boolean |
isExported()
Returns true if this library contains types
that will be visible to other plug-ins.
|
boolean |
isFullyExported()
Returns true if all the types in this library
will be visible to other plug-ins.
|
void |
removeContentFilter(String filter)
Remove a package from the export list.
|
void |
setContentFilters(String[] filters)
Sets the optional content filters for
this library.
|
void |
setExported(boolean value)
Sets whether types in this library will be
visible to other plug-ins.
|
void |
setPackages(String[] packages)
Sets the optional package prefixes for this library.
|
void |
setType(String type)
Sets the library type.
|
getModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setName
getAdapter
static final String P_EXPORTED
static final String P_PACKAGES
static final String P_CONTENT_FILTERS
static final String P_TYPE
static final String CODE
static final String RESOURCE
String[] getContentFilters()
String[] getPackages()
boolean isExported()
boolean isFullyExported()
String getType()
void setContentFilters(String[] filters) throws CoreException
filters
- an array of filter stringsCoreException
- if the model is not editablevoid addContentFilter(String filter) throws CoreException
filter
- a package nameCoreException
- if the model is not editablevoid removeContentFilter(String filter) throws CoreException
filter
- a package nameCoreException
- if the model is not editablevoid setPackages(String[] packages) throws CoreException
packages
- an array of package prefixesCoreException
- if the model is not editablevoid setExported(boolean value) throws CoreException
value
- whether the types in the library should be exportedCoreException
- if the model is not editablevoid setType(String type) throws CoreException
type
- The library typeCoreException
- if the model is not editable.
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.