|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdeveloper.library.JLibraryManager
| Field Summary | |
static int |
JDK_ADDED
|
static int |
JDK_REMOVED
|
static java.lang.String |
LEGACY_LIBRARY_FILE
|
static int |
LIBRARY_ADDED
|
static java.lang.String |
LIBRARY_LIST_FILE
|
static int |
LIBRARY_REMOVED
|
| Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
| Constructor Summary | |
JLibraryManager()
|
|
| Method Summary | |
void |
attach(Observer observer)
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface
changes. |
boolean |
canShutdown()
This method is called by the IDE to confirm that the ide can shutdown. |
Dependable |
create(Element source,
Folder sourceOwner)
Creates a Dependable that encapsulates the source object. |
static JDK |
createJDK(java.lang.String name,
java.net.URL javaExe,
LibraryList list)
|
static JLibrary |
createLibrary(java.lang.String libName,
LibraryList list)
|
static JDK |
createSystemJDK(java.lang.String name,
java.net.URL javaExe)
|
static JLibrary |
createSystemLibrary(java.lang.String libName)
|
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.String jdkName)
|
static JDK |
findJDK(VersionNumber num,
JDK[] jdks)
|
static JDK |
findJDKMatch(java.lang.String jdkName,
VersionNumber jdkVer)
|
static JLibrary |
findLibrary(java.lang.String libName)
|
static JLibrary |
findSystemLibrary(java.lang.String libName)
|
static java.lang.String |
findUniqueJDKName()
|
static java.lang.String |
findUniqueLibraryName()
|
static LibraryList |
getAddinLibraries()
|
static LibraryList[] |
getAllLibraryLists()
|
static JDK |
getDefaultJDK()
|
static JLibraryManager |
getInstance()
Retrieves the single JLibraryManager instance. |
static java.util.List |
getJDKs()
|
static java.util.List |
getLibraries()
|
static LibraryList |
getLibraryList(java.net.URL url)
Gets the LibraryList for a specific URL. |
static JLibraryList |
getSystemLibraries()
|
static JLibraryList |
getUserLibraries()
|
float |
ideVersion()
This method is called to determine the ide version number for which this Addin was implemented. |
void |
initialize()
Invoked by the AddinManager after the instance of the
Addin is instantiated. |
void |
notifyObservers(java.lang.Object subject,
UpdateMessage change)
Notifies all observers that the state of the subject has changed. |
boolean |
recognize(Element source)
Returns true if this dependable factory recognizes the
specified source object. |
static void |
registerDerivedLibrary(java.lang.Class key,
java.lang.Class cls)
Call this method to register a DerivedLibrary class. |
static void |
removeJDK(JDK jdk,
LibraryList list)
|
static void |
removeLibrary(JLibrary lib,
LibraryList list)
|
static void |
removeSystemJDK(JDK jdk)
|
static void |
removeSystemLibrary(JLibrary lib)
|
static java.lang.String |
resolveAlias(java.lang.String libName)
|
void |
shutdown()
This method is invoked by the AddinManager when the IDE
terminates. |
static void |
unregisterDerivedLibrary(java.lang.Class key)
|
float |
version()
This method is called to determine the Addin version number. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LIBRARY_ADDED
public static final int LIBRARY_REMOVED
public static final int JDK_ADDED
public static final int JDK_REMOVED
public static final java.lang.String LIBRARY_LIST_FILE
public static final java.lang.String LEGACY_LIBRARY_FILE
| Constructor Detail |
public JLibraryManager()
throws SingletonClassException
| Method Detail |
public static JLibraryManager getInstance()
JLibraryManager instance.public static LibraryList[] getAllLibraryLists()
public static java.util.List getLibraries()
public static java.util.List getJDKs()
public static JDK getDefaultJDK()
public static JLibrary createLibrary(java.lang.String libName,
LibraryList list)
public static JLibrary findLibrary(java.lang.String libName)
public static void removeLibrary(JLibrary lib,
LibraryList list)
public static JDK createJDK(java.lang.String name,
java.net.URL javaExe,
LibraryList list)
public static JDK findJDK(java.lang.String jdkName)
public static JDK findJDK(VersionNumber num,
JDK[] jdks)
public static JDK findJDKMatch(java.lang.String jdkName,
VersionNumber jdkVer)
public static void removeJDK(JDK jdk,
LibraryList list)
public static java.lang.String resolveAlias(java.lang.String libName)
public static LibraryList getLibraryList(java.net.URL url)
url - the URL representing the JLibraryList
public static JLibrary createSystemLibrary(java.lang.String libName)
public static java.lang.String findUniqueLibraryName()
public static java.lang.String findUniqueJDKName()
public static JLibrary findSystemLibrary(java.lang.String libName)
public static void removeSystemLibrary(JLibrary lib)
public static JDK createSystemJDK(java.lang.String name,
java.net.URL javaExe)
public static void removeSystemJDK(JDK jdk)
public static JLibraryList getSystemLibraries()
public static JLibraryList getUserLibraries()
public static LibraryList getAddinLibraries()
public Dependable create(Element source,
Folder sourceOwner)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
DependableRecognizerDependable that encapsulates the source object.
The owner is the folder containing the source.
create in interface DependableRecognizerjava.lang.IllegalAccessException
java.lang.InstantiationExceptionpublic boolean recognize(Element source)
DependableRecognizertrue if this dependable factory recognizes the
specified source object.
recognize in interface DependableRecognizer
public static void registerDerivedLibrary(java.lang.Class key,
java.lang.Class cls)
DerivedLibrary class. The key
should be the source node class. Registered Dependable classes
will be recognized by this DependableRecognizer.
public static void unregisterDerivedLibrary(java.lang.Class key)
public float ideVersion()
AddinAddin was implemented.
ideVersion in interface Addinpublic float version()
AddinAddin version number.
version in interface Addinpublic void shutdown()
AddinAddinManager when the IDE
terminates. Any non java resources (file handles, database connections,
etc) which are still being held by this Addin should be
released by this method immediately. This method is not guaranteed to
be called, but on normal terminations of the IDE, this method will be
invoked.
shutdown in interface Addinpublic boolean canShutdown()
canShutdown in interface Addinpublic void initialize()
AddinAddinManager after the instance of the
Addin is instantiated. When invoked, The Addin
should register and menu items, and actions required for use during this
classes lifecycle. Addin authors should take care to ensure
that any extraneous initialization is not preformed on this method, and
any startup code that can be delayed until a later time is delayed, as
the Addin's are synchronously initialized during the
startup of the IDE, and each Addin has the potential to
negatively impact the startup time of the product.
initialize in interface AddinAddinManagerpublic void attach(Observer observer)
SubjectSubject interface
changes.
Implementors should do nothing when the same observer is added more
than once.
attach in interface Subjectobserver - the Observer interested in change notification
messages.public void detach(Observer observer)
SubjectSubject
interface changes.
Implementors should do nothing when the same observer is removed more
than once.
detach in interface Subjectobserver - the Observer disinterested in change
notification messages.
public void notifyObservers(java.lang.Object subject,
UpdateMessage change)
Subject
notifyObservers in interface Subjectsubject - the subject whose state has changed.change - what changed.
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.