jsynoptic.data
Class DataSourceCollectionAnimatorProvider
java.lang.Object
simtools.data.FileDataSourceProvider
simtools.data.DataSourceCollectionAnimatorProvider
jsynoptic.data.DataSourceCollectionAnimatorProvider
- All Implemented Interfaces:
- DataSourceProvider
public class DataSourceCollectionAnimatorProvider
- extends DataSourceCollectionAnimatorProvider
Overloads the collection animator and provides actions for the popup menu in the source tree
Method Summary |
int |
chooseUseCollection(DataSourceCollection existingDsc,
java.lang.String dscId,
java.lang.String id)
Chooses whether to use an already existing collection if it
contains the datasource to provide, instead of the collection
with the given id. |
DataSource |
provide(java.lang.String id,
java.lang.String dscId,
java.lang.Object optionalInformation,
DataSourcePool pool)
Asks this provider to resolve a symbolic datasource reference. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resources
public static BasicMessageWriter resources
DataSourceCollectionAnimatorProvider
public DataSourceCollectionAnimatorProvider()
chooseUseCollection
public int chooseUseCollection(DataSourceCollection existingDsc,
java.lang.String dscId,
java.lang.String id)
- Description copied from class:
FileDataSourceProvider
- Chooses whether to use an already existing collection if it
contains the datasource to provide, instead of the collection
with the given id.
Default implementation says no.
- Overrides:
chooseUseCollection
in class FileDataSourceProvider
- Parameters:
existingDsc
- The existing collectiondscId
- The collection id to replace
- Returns:
- YES_OPTION to use the collection present in the pool, NO_OPTION to choose collection with given id,
provide
public DataSource provide(java.lang.String id,
java.lang.String dscId,
java.lang.Object optionalInformation,
DataSourcePool pool)
- Description copied from interface:
DataSourceProvider
- Asks this provider to resolve a symbolic datasource reference.
- Specified by:
provide
in interface DataSourceProvider
- Overrides:
provide
in class DataSourceCollectionAnimatorProvider
- Parameters:
id
- The symbolic id of a datasourcedscId
- The symbolic id of a datasourceCollection. May be nulloptionalInformation
- Can be set to help this provider. May be nullpool
- DataSourcePool in which to add the source and collection if
they can be provided. May be null.
- Returns:
- The desired datasource if it can be provided, or null.