Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JDK_EXTENSION |
static java.lang.String |
LEGACY_LIBRARY_FILE
Deprecated.
library.ini format no longer supported.
|
static int |
LIBRARY_ADDED |
static java.lang.String |
LIBRARY_EXTENSION |
static java.lang.String |
LIBRARY_LIST_FILE |
static int |
LIBRARY_REMOVED |
static java.lang.String |
SETTINGS_KEY |
Modifier and Type | Method and Description |
---|---|
void |
addLibraryChangeListener(ProjectLibraryChangeListener libraryChangeListener) |
static JLibraryList |
addLibraryList(java.net.URL url) |
void |
attach(Observer observer)
Registers an observer interested in being notified when the internal
state of the class implementing the
Subject interface
changes. |
static JDK |
createJDK(java.lang.Object id,
java.net.URL javaExe,
MutableLibraryList list) |
static JLibrary |
createLibrary(java.lang.Object id,
MutableLibraryList list) |
void |
detach(Observer observer)
Unregisters an observer that is not interested anymore in being notified
when the internal state of the class implementing the
Subject
interface changes. |
static JDK |
findJDK(java.lang.Object id) |
static JDK |
findJDK(VersionNumber num,
JDK[] jdks) |
static JDK |
findJDKMatch(java.lang.Object id,
VersionNumber num) |
static JLibrary |
findLibrary(java.lang.Object id) |
static AddinLibraryList |
getAddinLibraries() |
static LibraryList[] |
getAllLibraryLists()
Returns all lists last preserved as the working set.
|
static JDK |
getDefaultJDK() |
java.util.Collection<DynamicLibraryProvider> |
getDynamicLibraryProviders(java.lang.String[] technologyKeys)
Returns an (immutable) collection of all dynamic library providers
registered for a set of technology keys.
|
static JLibraryManager |
getInstance()
Retrieves the single JLibraryManager instance.
|
static java.util.List |
getJDKs()
Deprecated.
Concept of finite library lists from which to gather JDKs
no longer exists. Now returns only what can be found within the last
working set of library lists.
|
static java.util.List |
getLibraries()
Deprecated.
Concept of finite library lists from which to gather libraries
no longer exists. Now returns only what can be found within the last
working set of library lists.
|
static JLibraryList |
getUserLibraries() |
void |
notifyObservers(java.lang.Object subject,
UpdateMessage change)
Notifies all observers that the state of the subject has changed.
|
void |
projectLibrariesChanged(Project project,
java.util.Set<java.net.URL> modifiedJars,
java.util.Set<java.net.URL> addedJars,
java.util.Set<java.net.URL> deletedJars) |
static void |
registerDerivedLibrary(java.lang.Class key,
java.lang.Class<? extends DerivedLibrary> cls)
Deprecated.
Use the libraries hook to register derived libraries
|
void |
registerDynamicLibraryProvider(DynamicLibraryProvider provider)
Deprecated.
Use the libraries hook to register a dynamic library provider
|
static void |
removeJDK(JDK jdk,
MutableLibraryList list) |
static void |
removeLibrary(JLibrary lib,
MutableLibraryList list) |
void |
removeLibraryChangeListener(ProjectLibraryChangeListener libraryChangeListener) |
static boolean |
removeLibraryList(LibraryList list) |
static void |
unregisterDerivedLibrary(java.lang.Class key)
Deprecated.
Use the libraries hook to register derived libraries
|
void |
unregisterDynamicLibraryProvider(DynamicLibraryProvider provider)
Deprecated.
Use the libraries hook to register a dynamic library provider
|
@Deprecated public static final java.lang.String LEGACY_LIBRARY_FILE
public static final java.lang.String LIBRARY_LIST_FILE
public static final java.lang.String LIBRARY_EXTENSION
public static final java.lang.String JDK_EXTENSION
public static final int LIBRARY_ADDED
public static final int LIBRARY_REMOVED
public static final java.lang.String SETTINGS_KEY
@Deprecated public void registerDynamicLibraryProvider(DynamicLibraryProvider provider)
provider
- the provider to register. Must not be null.java.lang.NullPointerException
- if the provider argument is null.@Deprecated public void unregisterDynamicLibraryProvider(DynamicLibraryProvider provider)
provider
- the provider to unregister.public java.util.Collection<DynamicLibraryProvider> getDynamicLibraryProviders(java.lang.String[] technologyKeys)
technologyKeys
- the technology keys whose providers should be returnedDynamicLibraryProvider
s.public static JLibraryManager getInstance()
JLibraryManager
instance.public static LibraryList[] getAllLibraryLists()
@Deprecated public static java.util.List getLibraries()
getAllLibraryLists()
@Deprecated public static java.util.List getJDKs()
getAllLibraryLists()
public static JDK getDefaultJDK()
public static JLibrary createLibrary(java.lang.Object id, MutableLibraryList list)
public static JLibrary findLibrary(java.lang.Object id)
public static void removeLibrary(JLibrary lib, MutableLibraryList list)
public static JDK createJDK(java.lang.Object id, java.net.URL javaExe, MutableLibraryList list)
public static JDK findJDK(java.lang.Object id)
public static JDK findJDK(VersionNumber num, JDK[] jdks)
public static JDK findJDKMatch(java.lang.Object id, VersionNumber num)
public static void removeJDK(JDK jdk, MutableLibraryList list)
public static JLibraryList addLibraryList(java.net.URL url)
public static boolean removeLibraryList(LibraryList list)
public static JLibraryList getUserLibraries()
public static AddinLibraryList getAddinLibraries()
@Deprecated public static void registerDerivedLibrary(java.lang.Class key, java.lang.Class<? extends DerivedLibrary> cls)
DerivedLibrary
class. The key
should be the source node class. Registered Dependable classes
will be recognized by this DependableRecognizer
.@Deprecated public static void unregisterDerivedLibrary(java.lang.Class key)
public void attach(Observer observer)
Subject
Subject
interface
changes.
Implementors should do nothing when the same observer is added more
than once.public void detach(Observer observer)
Subject
Subject
interface changes.
Implementors should do nothing when the same observer is removed more
than once.public void notifyObservers(java.lang.Object subject, UpdateMessage change)
Subject
notifyObservers
in interface Subject
subject
- the subject whose state has changed.change
- what changed.public void addLibraryChangeListener(ProjectLibraryChangeListener libraryChangeListener)
public void removeLibraryChangeListener(ProjectLibraryChangeListener libraryChangeListener)
public void projectLibrariesChanged(Project project, java.util.Set<java.net.URL> modifiedJars, java.util.Set<java.net.URL> addedJars, java.util.Set<java.net.URL> deletedJars)