|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.runtime.model.PluginModelObject | +--org.eclipse.core.runtime.model.LibraryModel
A runtime library declared in a plug-in. Libraries contribute elements to the search path. These contributions are specified as a path to a directory or Jar file. This path is always considered to be relative to the containing plug-in.
Libraries are typed. The type is used to determine to which search path the library's
contribution should be added. The valid types are: CODE
and
RESOURCE
.
This class may be instantiated, or further subclassed.
Field Summary | |
static String |
CODE
Constant string (value "code") indicating the code library type. |
static String |
RESOURCE
Constant string (value "resource") indicating the resource library type. |
Constructor Summary | |
LibraryModel()
Creates a new library model in which all fields are null . |
Method Summary | |
String[] |
getExports()
Returns this library's export mask. |
String |
getType()
Returns this library's type. |
boolean |
isExported()
Returns whether or not any of the code in this library is exported. |
boolean |
isFullyExported()
Returns whether or not all of the code in this library is exported. |
void |
setExports(String[] value)
Sets this library's export mask. |
void |
setType(String value)
Sets this library's type. |
Methods inherited from class org.eclipse.core.runtime.model.PluginModelObject |
assertIsWriteable, getName, isReadOnly, markReadOnly, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CODE
public static final String RESOURCE
Constructor Detail |
public LibraryModel()
null
.
Method Detail |
public String[] getExports()
null
public String getType()
CODE
and RESOURCE
.CODE
,
RESOURCE
public boolean isExported()
public boolean isFullyExported()
public void setExports(String[] value)
value
- this library's export mask. May be null
.public void setType(String value)
CODE
and RESOURCE
.
The given type value is canonicalized before being set.
This object must not be read-only.
value
- the type of this library.CODE
,
RESOURCE
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |