Examples of LimelightException


Examples of limelight.LimelightException

    else if(fs.exists(fs.join(path, "production.clj")))
      return "limelight.clojure.ClojureProduction";
    else if(fs.exists(fs.join(path, "production.xml")))
      return "limelight.java.JavaProduction";
    else
      throw new LimelightException("Can't determine what language to use to load production: " + path);
  }
View Full Code Here

Examples of limelight.LimelightException

    else if(".llp".equals(fs.fileExtension(productionPath)))
      return unpackLlp(productionPath);
    else if(".lll".equals(fs.fileExtension(productionPath)))
      return downloadLll(productionPath);
    else
      throw new LimelightException("I don't know how to open this production: " + productionPath);
  }
View Full Code Here

Examples of limelight.LimelightException

      String result = Downloader.get(url);
      return unpackLlp(result);
    }
    catch(Exception e)
    {
      throw new LimelightException("Failed to download or unpack .lll: " + productionPath, e);
    }
  }
View Full Code Here

Examples of limelight.LimelightException

      return;
    Box maxArea = panel.getParent().getChildConsumableBounds();

    Style style = panel.getStyle();
    if(style.getCompiledWidth() instanceof AutoDimensionValue && style.getCompiledHeight() instanceof GreedyDimensionValue)
      throw new LimelightException("A greedy height is not allowed with auto width.");

    int newWidth = style.getCompiledWidth().calculateDimension(maxArea.width, style.getCompiledMinWidth(), style.getCompiledMaxWidth(), panel.greediness.width);
    int newHeight = style.getCompiledHeight().calculateDimension(maxArea.height, style.getCompiledMinHeight(), style.getCompiledMaxHeight(), panel.greediness.height);

    // TODO MDM - Hacky Hack!!!!  More thought needs to go into the way layouts are down and how greedy fits into it all
View Full Code Here

Examples of limelight.LimelightException

  public Scene openScene(String scenePath, String stageName, Map<String, Object> options)
  {
    Stage stage = getTheater().get(stageName);
    if(stage == null)
      throw new LimelightException("No such stage: " + stageName);

    return openSceneOnStage(scenePath, stage, options);
  }
View Full Code Here

Examples of limelight.LimelightException

        method.invoke(player);
    }
    catch(Exception e)
    {
e.printStackTrace();
      throw new LimelightException(e);
    }
  }
View Full Code Here

Examples of limelight.LimelightException

      final InputStream xmlInput = new ByteArrayInputStream(xmlContent.getBytes());
      return builder.parse(xmlInput);
    }
    catch(Exception e)
    {
      throw new LimelightException("Error parsing XML content", e);
    }
  }
View Full Code Here

Examples of limelight.LimelightException

      final InputStream xmlInput = Context.fs().inputStream(xmlPath);
      return builder.parse(xmlInput);
    }
    catch(Exception e)
    {
      throw new LimelightException("Error parsing XML file: " + xmlPath, e);
    }
  }
View Full Code Here

Examples of limelight.LimelightException

      final Constructor<? extends Command> constructor = commandClass.getConstructor();
      return constructor.newInstance();
    }
    catch(Exception e)
    {
      throw new LimelightException("Failed to instantiate Command: " + commandClass.getName(), e);
    }
  }
View Full Code Here

Examples of limelight.LimelightException

      RichStyle extension = map.get(name);
      if(extension == null)
        extension = extensions.get(name);

      if(extension == null)
        throw new LimelightException("Can't extend missing style: '" + name + "'");
      style.addExtension(extension);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.