Package fbench.dom

Examples of fbench.dom.DOMTranslationModel


      currentFileLabel.setText(fbFile);
      System.out.println("Building java source code: " + fbFile);
      output.append("Building java source code: " + fbFile + "\n");
      Document doc = Library.load(new File(fbFile));
      if (doc != null) {
        DOMTranslationModel translator = new DOMTranslationModel(doc,
            null, "DOMtoJava.xsl", "Java");
        String source = translator.performTranslation();

        if (source != null) {
          source = FBench.removeHTML(source);

          String javaSourcePath = adjustPath(fbFile, ".java");
View Full Code Here


    for (File fbFile : files) {
      System.out.println(fbFile);
      builder.append(fbFile + "\n");
      org.w3c.dom.Document doc = Library.load(fbFile);
      if (doc != null) {
        DOMTranslationModel translator = new DOMTranslationModel(doc,
            null, xslSheet, languageName);
        String source = translator.performTranslation();

        if (source != null) {
          source = FBench.removeHTML(source);

          String sourcePath = adjustPath(fbFile.getPath(),
View Full Code Here

    tabbedPane.add("XML", xmlView);

    srcArea.setSelectionColor(selectedColor);
    srcArea.setEditable(false);
    srcArea.setEditorKit(new HTMLEditorKit());
    translationModels.add(new DOMTranslationModel(document, srcArea, "DOMtoSRC.xsl", "SRC"));
    // TODO Complete DOMtoSRC.xls
    JScrollPane srcView = new JScrollPane(srcArea);
    srcView.setPreferredSize(new Dimension(400, 150));
    tabbedPane.add("Src", srcView);

    javaArea.setSelectionColor(selectedColor);
    javaArea.setEditable(false);
    //javaArea.setEditorKit(new HTMLEditorKit());
    translationModels.add(new DOMTranslationModel(document, javaArea, "DOMtoJava.xsl", "Java"));

    // TODO Complete DOMtoJava.xls
    JScrollPane jView = new JScrollPane(javaArea);
    jView.setPreferredSize(new Dimension(400, 150));
    tabbedPane.add("Java", jView);
View Full Code Here

  }

  public void fileSaveAsJavaDebug(Vector<Object> v) {
    LibraryElementView launchView = (LibraryElementView) desktop.getSelectedComponent();
    String contents =
        new DOMTranslationModel(launchView.getDocument(), null, "DOMtoJavaDebug.xsl", "Java")
            .performTranslation();
    saveJava(launchView, contents);
  }
View Full Code Here

TOP

Related Classes of fbench.dom.DOMTranslationModel

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.