Package nsf.playground.snippets

Examples of nsf.playground.snippets.AssetImporter


    }
    if(async) {
      String dbName = ExtLibUtil.getCurrentDatabase().getFilePath();
      ImportAssetAction.start(dbName,type,sourceName);
    } else {
        AssetImporter imp = AssetImporter.createImporter(type, ExtLibUtil.getCurrentDatabase());
      if(imp!=null) {
        imp.importAssets(sourceName,null);
      }
    }
  }
View Full Code Here


      }
    }
  }

  public void deleteAssets(String type, String sourceName) throws Exception {
    AssetImporter imp = AssetImporter.createImporter(type, ExtLibUtil.getCurrentDatabase());
    imp.deleteAssets(sourceName);
  }
View Full Code Here

        String type = ((String[])parameters)[1];
        String sourceName = ((String[])parameters)[2];
       
        Database db = session.getDatabase(null, databaseName);
        try {
            AssetImporter imp = AssetImporter.createImporter(type, db);
          if(imp!=null) {
            imp.importAssets(sourceName,this);
          }
        } finally {
          db.recycle();
        }
      } catch(Throwable e) {
View Full Code Here

TOP

Related Classes of nsf.playground.snippets.AssetImporter

Copyright © 2018 www.massapicom. 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.