public override bool undoTool() { // Restores the resources object with the information stored in oldResoures //try //{ ResourcesUni temp = resources; resources.clearAssets(); string[] oldResourceTypes = oldResourcesUni.getAssetTypes(); foreach (string type in oldResourceTypes) { resources.addAsset(type, oldResourcesUni.getAssetPath(type)); } // Update older data oldResourcesUni.clearAssets(); oldResourceTypes = temp.getAssetTypes(); foreach (string type in oldResourceTypes) { oldResourcesUni.addAsset(type, temp.getAssetPath(type)); } // controller.reloadPanel(); return(true); //} //catch (CloneNotSupportedException e) //{ // e.printStackTrace(); // return false; //} }