Package org.jwall.web.policy.compiler.ui

Examples of org.jwall.web.policy.compiler.ui.CompilerPreferenceDialog


      target = new File(file.getAbsolutePath().replaceFirst(".xml$",
          ".rules"));

    try {

      CompilerPreferenceDialog d = new CompilerPreferenceDialog();
      d.setVisible(true);

      if (d.getReturnStatus() < 0)
        return;

      target.createNewFile();

      log.debug("Compiling rules to {}", target.getAbsolutePath());
View Full Code Here


        ".rules"));

    try {
      if (file != null) {

        CompilerPreferenceDialog d = new CompilerPreferenceDialog();
        d.setVisible(true);

        if (d.getReturnStatus() < 0)
          return;
        else {

          String templateAlias = d.getSelectedTemplate();
          URL url = Templates.getTemplate(templateAlias);
          // URL url = ProfileCompilerImpl.class.getResource( template
          // );
          if (url == null) {
            JOptionPane
                .showMessageDialog(
                    WebPolicyEditor.getWindow(),
                    "An error occured! The selected template has not been found!",
                    "Template not found!",
                    JOptionPane.ERROR_MESSAGE);
            return;
          } else {
            System.setProperty(
                PolicyCompilerImpl.PROPERTY_COMPILER_XSLT_FILE,
                url.toString());
            if (d.rememberUserSelection()) {
              System.setProperty(
                  "org.jwall.web.profile.compiler.use-template",
                  templateAlias);
            }
          }
View Full Code Here

TOP

Related Classes of org.jwall.web.policy.compiler.ui.CompilerPreferenceDialog

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.