protected void loadResource () {
File file = editor.showFileLoadDialog();
if(file != null){
try{
String resource = file.getAbsolutePath();
ModelLoader modelLoader = null;
if(resource.endsWith(".obj")){
modelLoader = new ObjLoader(new AbsoluteFileHandleResolver());
}
else if(resource.endsWith(".g3dj")){
modelLoader = new G3dModelLoader(new JsonReader(), new AbsoluteFileHandleResolver());