Examples of provide()


Examples of org.locationtech.udig.project.IProvider.provide()

        } else {
            // object does not exists, try to find a provider
            IProvider provider = findProvider(key);
            if (provider != null) {
                try {
                    Object object = provider.provide();
                    if (object != null) {
                        createEntry(key, object);
                        return object;
                    }
                } catch (Exception e) {
View Full Code Here

Examples of org.tuba.spatschorke.diploma.representation.oodraw.IShapeProvider.provide()

    } catch (OfficeApplicationException e) {
      return null;
    }

    IShapeFactory shapeFactory = document.getDrawPage(0).getShapeFactory();
    IShape shape = shapeProvider.provide(shapeFactory);

    File image;
    try {
      image = export(shape, document);
    } catch (Exception e) {
View Full Code Here

Examples of simtools.data.DataSourcePool.provide()

        if (pool == null) {
            poolToSearch = DataSourcePool.global;
        }
        // Do not add the result in the datapool yet, but rather add this object
        // on success
        DataSource ds = poolToSearch.provide(id, dscId, realOption, false);
        if (ds == null) {
            return null;
        }
        if (ds instanceof EmptyDataSource) {
            DefaultEmptyDataSource emptyDs = new DefaultEmptyDataSource(id, simtools.data.DataSourceAnimator.MARKER
View Full Code Here

Examples of simtools.data.DataSourcePool.provide()

    DataSourcePool poolToSearch = pool;
    if (pool==null) poolToSearch=DataSourcePool.global;

    // Do not add the result in the datapool yet, but rather add this object on success
    DataSource ds = poolToSearch.provide(id,dscId,realOption,false);
    if (ds==null) return null;

    if (ds instanceof EmptyDataSource){
      DefaultEmptyDataSource emptyDs = new DefaultEmptyDataSource(id, marker + dscId, optionalInformation);
      EmptyDataSourcePool.global.addEmptyDaSource(id, emptyDs);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.