From 8b9e7a387729f0b0cbf58e5f798b1cfcd56e9545 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sat, 2 Feb 2013 23:45:11 +0000 Subject: [PATCH] SDK: - remove reverse dependency import from AssetDataObject - more javadoc for AssetDataObject git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10315 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/gde/core/assets/AssetDataObject.java | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java b/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java index 122664371..3314d5e8b 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java @@ -33,12 +33,10 @@ package com.jme3.gde.core.assets; import com.jme3.asset.AssetEventListener; import com.jme3.asset.AssetKey; -import com.jme3.asset.BlenderKey; import com.jme3.export.Savable; import com.jme3.export.binary.BinaryExporter; import com.jme3.gde.core.scene.ApplicationLogHandler.LogLevel; import com.jme3.gde.core.scene.SceneApplication; -import com.jme3.scene.Spatial; import java.io.IOException; import java.io.OutputStream; import java.lang.reflect.InvocationTargetException; @@ -264,7 +262,7 @@ public class AssetDataObject extends MultiDataObject { mgr.deleteFromCache(assetKey1); } savable = null; - } else if(mgr == null){ + } else if (mgr == null) { logger.log(Level.WARNING, "Closing asset {0} with no ProjectAssetManager assigned..?", getName()); } } @@ -316,14 +314,35 @@ public class AssetDataObject extends MultiDataObject { } } + /** + * Gets a list of FileObjects that represent all files that have been loaded + * along this asset. This includes textures for models as well as materials + * and other files. It does not include j3md and shader files. + * + * @return + */ public synchronized List getAssetList() { return new LinkedList(assetList); } + /** + * Gets a list of AssetKeys that represent all files that have been loaded + * along this asset. This includes textures for models as well as materials + * and other files. It does not include j3md and shader files. + * + * @return + */ public synchronized List getAssetKeyList() { return new LinkedList(assetKeyList); } + /** + * Gets a list of AssetKeys that represent all files that failed to load for + * this asset. These were tried to be located but could not be found by the + * import AssetManager. + * + * @return + */ public synchronized List getFailedList() { return new LinkedList(failedList); }