Package org.cruxframework.crux.core.client.screen

Examples of org.cruxframework.crux.core.client.screen.InterfaceConfigException


      source = ViewProcessor.getView(manager.open(), pageFile.getPath(), null);
      manager.close();
    }
    catch (Exception e)
    {
      throw new InterfaceConfigException("Error parsing screen ["+pageFile.toString()+"].", e);
    }
   
    NodeList elementList = source.getElementsByTagName("script");
   
    int length = elementList.getLength();
    for (int i = 0; i < length; i++)
    {
      Element element = (Element) elementList.item(i);
     
      String src = element.getAttribute("src");
     
      if (src != null && src.endsWith(MODULE_IMPORT_SUFFIX))
      {
        if (result != null)
        {
          throw new InterfaceConfigException("Multiple modules in the same html page is not allowed in CRUX.");
        }
       
        int lastSlash = src.lastIndexOf("/");
       
        if(lastSlash >= 0)
View Full Code Here


        {
          urlFile = new File(url.toURI());
        }
        catch (URISyntaxException e)
        {
          throw new InterfaceConfigException(e.getMessage(), e);
        }
       
        if(outputDir == null)
        {
          parentDir = urlFile.getParentFile();
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.client.screen.InterfaceConfigException

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.