- 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
3.0
nor..67 12 years ago
parent 769095fc78
commit 8b9e7a3877
  1. 25
      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<FileObject> getAssetList() {
return new LinkedList<FileObject>(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<AssetKey> getAssetKeyList() {
return new LinkedList<AssetKey>(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<AssetKey> getFailedList() {
return new LinkedList<AssetKey>(failedList);
}

Loading…
Cancel
Save