Package com.eteks.sweethome3d.model

Examples of com.eteks.sweethome3d.model.RecorderException


  public void addFurnitureLibrary(String furnitureLibraryName) throws RecorderException {
    try {
      File [] furnitureLibrariesPluginFolders = getFurnitureLibrariesPluginFolders();
      if (furnitureLibrariesPluginFolders == null
          || furnitureLibrariesPluginFolders.length == 0) {
        throw new RecorderException("Can't access to furniture libraries plugin folder");
      }
      copyToLibraryFolder(new File(furnitureLibraryName), furnitureLibrariesPluginFolders [0]);
      updateFurnitureDefaultCatalog();
    } catch (IOException ex) {
      throw new RecorderException(
          "Can't write " + furnitureLibraryName +  " in furniture libraries plugin folder", ex);
    }
  }
View Full Code Here


  @Override
  public boolean texturesLibraryExists(String name) throws RecorderException {
    File [] texturesLibrariesPluginFolders = getTexturesLibrariesPluginFolders();
    if (texturesLibrariesPluginFolders == null
        || texturesLibrariesPluginFolders.length == 0) {
      throw new RecorderException("Can't access to textures libraries plugin folder");
    } else {
      String libraryFileName = new File(name).getName();
      return new File(texturesLibrariesPluginFolders [0], libraryFileName).exists();
    }
  }
View Full Code Here

  public void addTexturesLibrary(String texturesLibraryName) throws RecorderException {
    try {
      File [] texturesLibrariesPluginFolders = getTexturesLibrariesPluginFolders();
      if (texturesLibrariesPluginFolders == null
          || texturesLibrariesPluginFolders.length == 0) {
        throw new RecorderException("Can't access to textures libraries plugin folder");
      }
      copyToLibraryFolder(new File(texturesLibraryName), texturesLibrariesPluginFolders [0]);
      updateTexturesDefaultCatalog();
    } catch (IOException ex) {
      throw new RecorderException(
          "Can't write " + texturesLibraryName +  " in textures libraries plugin folder", ex);
    }
  }
View Full Code Here

TOP

Related Classes of com.eteks.sweethome3d.model.RecorderException

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.