|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.loaders.DataLoaderPool
org.netbeans.core.NbLoaderPool
public final class NbLoaderPool
| Constructor Summary | |
|---|---|
NbLoaderPool()
|
|
| Method Summary | |
|---|---|
static void |
add(ManifestSection.LoaderSection s)
Adds new loader when previous and following are specified. |
static void |
beginUpdates()
|
static void |
endUpdates()
|
static NbLoaderPool |
getNbLoaderPool()
Returns the only instance of the loader pool in our system. |
static void |
load()
|
protected Enumeration<DataLoader> |
loaders()
Enumerates all loaders. |
void |
propertyChange(PropertyChangeEvent ev)
Listener to property changes. |
static boolean |
remove(DataLoader dl)
Removes the loader. |
void |
resultChanged(LookupEvent ev)
|
void |
run()
Called from the request task |
static void |
store()
|
void |
taskFinished(Task task)
|
static void |
waitFinished()
Allows tests to wait while processing of events is finished. |
| Methods inherited from class org.openide.loaders.DataLoaderPool |
|---|
addChangeListener, addOperationListener, allLoaders, createWeakOperationListener, factory, findDataObject, findDataObject, fireChangeEvent, firstProducerOf, getDefault, getPreferredLoader, producersOf, removeChangeListener, removeOperationListener, setPreferredLoader, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NbLoaderPool()
| Method Detail |
|---|
public static void beginUpdates()
public static void endUpdates()
public static void waitFinished()
public static void add(ManifestSection.LoaderSection s)
throws Exception
If a loader of the same class already existed in the pool, that will be removed and replaced with the new one.
s - adds loader section
Exception
public static void store()
throws IOException
IOException
public static void load()
throws IOException
IOExceptionpublic static boolean remove(DataLoader dl)
So the only difference is that when a DataObject is searched for a FileObject this loader will not be taken into account.
The loader pool may be resorted.
dl - data loader to remove
public static NbLoaderPool getNbLoaderPool()
public void taskFinished(Task task)
taskFinished in interface TaskListenerprotected Enumeration<DataLoader> loaders()
loaders in class DataLoaderPoolpublic void propertyChange(PropertyChangeEvent ev)
propertyChange in interface PropertyChangeListenerpublic void run()
run in interface Runnablepublic void resultChanged(LookupEvent ev)
resultChanged in interface LookupListener
|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||