Package org.bladerunnerjs.model

Examples of org.bladerunnerjs.model.Workbench


    }
    else if (contentPath.formName.equals(WORKBENCH_RESOURCE_REQUEST))
    {
      Bladeset bladeset = bundlableNode.app().bladeset(contentPath.properties.get("bladeset"));
      Blade blade = bladeset.blade(contentPath.properties.get("blade"));
      Workbench workbench = blade.workbench();
      resourceFile = workbench.file(resourcePath);
    }
    else if (contentPath.formName.equals(LIB_REQUEST))
    {
      JsLib jsLib = bundlableNode.app().jsLib(contentPath.properties.get("lib"));
      resourceFile = jsLib.file(resourcePath);
View Full Code Here


      resourcesRequestName = BLADE_RESOURCE_REQUEST;
      requestArgs = new String[] { bladeset.getName(), blade.getName() };
    }
    else if (assetContainer instanceof Workbench)
    {
      Workbench workbench = (Workbench) assetContainer;
      Blade blade = brjs.locateAncestorNodeOfClass(workbench, Blade.class);
      Bladeset bladeset = brjs.locateAncestorNodeOfClass(blade, Bladeset.class);
      themeRequestName = WORKBENCH_THEME_REQUEST;
      resourcesRequestName = WORKBENCH_RESOURCE_REQUEST;
      requestArgs = new String[] { bladeset.getName(), blade.getName() };
View Full Code Here

    // generate the app structure
    App app = brjs.app("app");
    Aspect aspect = app.defaultAspect();
    Bladeset bs = app.bladeset("bs");
    Blade b1 = bs.blade("b1");
    Workbench workbench = b1.workbench();
   
    given(app).hasBeenPopulated()
      .and(aspect).hasClass("appns/Class1")
      .and(aspect).indexPageRefersTo("appns.Class1")
      .and(b1).hasClass("appns/bs/b1/Class")
View Full Code Here

          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), blade.dir(), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.BLADE_RESOURCE_REQUEST, bladeset.getName(), blade.getName(), resourcePath);
        }
      }
      else if(assetContainer instanceof Workbench) {
        Workbench workbench = (Workbench) assetContainer;
        Blade blade = workbench.parent();
        Bladeset bladeset = blade.parent();
       
        if (assetLocation instanceof ThemedAssetLocation && assetLocationParentDir.getName().equals("themes")) {
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), assetLocation.file("resources"), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.WORKBENCH_RESOURCE_REQUEST, bladeset.getName(), blade.getName(), resourcePath);
        } else {
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), workbench.dir(), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.WORKBENCH_RESOURCE_REQUEST, bladeset.getName(), blade.getName(), resourcePath);
        }
      }
      else if(assetContainer instanceof JsLib) {
        JsLib jsLib = (JsLib) assetContainer;
View Full Code Here

    boolean showAllDependencies = parsedArgs.getBoolean("all");
   
    App app = brjs.app(appName);
    Bladeset bladeset = app.bladeset(bladesetName);
    Blade blade = bladeset.blade(bladeName);
    Workbench workbench = blade.workbench();
   
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
    if(!bladeset.dirExists()) throw new NodeDoesNotExistException(bladeset, this);
    if(!blade.dirExists()) throw new NodeDoesNotExistException(blade, this);
    if(!workbench.dirExists()) throw new NodeDoesNotExistException(workbench, "workbench", this);
   
    try {
      logger.println(DependencyGraphReportBuilder.createReport(workbench, showAllDependencies));
    }
    catch (ModelOperationException e) {
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.model.Workbench

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.