Extension SDK 10.1.3.36.73

oracle.jdeveloper.library
Interface MutableLibraryList

All Superinterfaces:
Displayable, LibraryList
All Known Implementing Classes:
JLibraryList, JProjectLibraryList, ListWrapper

public interface MutableLibraryList
extends LibraryList


Field Summary
 
Fields inherited from interface oracle.jdeveloper.library.LibraryList
JDK_LIST_PROPERTY, LIB_LIST_PROPERTY, LISTNAME_PROPERTY, TRANSIENT_PROPERTY
 
Method Summary
 JDK addJDK(java.lang.String name, java.net.URL exeURL)
          Add a JDK using the given name and based upon the given executble.
 JLibrary addLibrary(java.lang.String name)
          Add a JLibrary using the given name.
 java.lang.Object createIDFromName(java.lang.String name, boolean isJDK)
          Create an ID based upon the given name.
 javax.swing.Icon getDefaultIcon()
          Get the default Icon used for newly created Library instances.
 boolean remove(Library library)
          Remove a JDK or JLibrary from the respective list.
 void setJdkList(java.util.List jdks)
          Sets a List of JDK definitions contained in this LibraryList.
 void setLibraryList(java.util.List libraries)
          Sets a List of JLibrary definitions contained in this LibraryList.
 void setListName(java.lang.String name)
          Sets the name of this LibraryList.
 
Methods inherited from interface oracle.jdeveloper.library.LibraryList
findJDK, findLibrary, getJdkList, getLibraryList, getListName, isTransient
 
Methods inherited from interface oracle.ide.model.Displayable
getIcon, getLongLabel, getShortLabel, getToolTipText, toString
 

Method Detail

setJdkList

public void setJdkList(java.util.List jdks)
Sets a List of JDK definitions contained in this LibraryList.


setLibraryList

public void setLibraryList(java.util.List libraries)
Sets a List of JLibrary definitions contained in this LibraryList.


setListName

public void setListName(java.lang.String name)
Sets the name of this LibraryList.


addJDK

public JDK addJDK(java.lang.String name,
                  java.net.URL exeURL)
Add a JDK using the given name and based upon the given executble. If a JDK of the same name already exists within the list, the list is left unmodified and null is returned. If a value of null is provided for the name argument, a unique name relative to the list will be generated.

Parameters:
name - the name to use for the JDK, or null to generate a unique name.
exeURL - the location of the JDK executable.
Returns:
a new JDK or null if a name collision has resulted.

addLibrary

public JLibrary addLibrary(java.lang.String name)
Add a JLibrary using the given name. If a JLibrary of the same name already exists within the list, the list is left unmodified and null is returned. If a value of null is provided for the name argument, a unique name relative to the list will be generated.

Parameters:
name - the name to use for the JLibrary, or null to generate a unique name.
Returns:
a new JLibrary or null if a name collision has resulted.

remove

public boolean remove(Library library)
Remove a JDK or JLibrary from the respective list.

Parameters:
library - the library to remove.
Returns:
true if the library was contained in the list.

createIDFromName

public java.lang.Object createIDFromName(java.lang.String name,
                                         boolean isJDK)
Create an ID based upon the given name. The ID is not necessarily unique.

Parameters:
name - seed from which to produce the ID.
isJDK - true if the ID should apply to a JDK.
Returns:
a library ID.

getDefaultIcon

public javax.swing.Icon getDefaultIcon()
Get the default Icon used for newly created Library instances.


Extension SDK 10.1.3.36.73

 

Copyright © 1997, 2005, Oracle.All rights reserved.