Package org.pentaho.reporting.designer.core.settings

Examples of org.pentaho.reporting.designer.core.settings.ExternalToolSettings


    if (url == null)
    {
      throw new IllegalArgumentException("url must not be null");
    }

    final ExternalToolSettings instance = ExternalToolSettings.getInstance();
    if (instance.isUseDefaultBrowser())
    {
      try
      {
        new BrowserLauncher().openURLinBrowser(url);
      }
      catch (Exception e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
      }
    }
    else
    {
      if(execute(instance.getCustomBrowserExecutable(),
          instance.getCustomBrowserParameters(), url) == false)
      {
        throw new IOException(UtilMessages.getInstance().getString("ExternalToolLauncher.errorMessage",instance.getCustomBrowserExecutable()));
      }
    }
  }
View Full Code Here


    if (file == null)
    {
      throw new IllegalArgumentException("file must not be null");
    }

    final ExternalToolSettings toolSettings = ExternalToolSettings.getInstance();
    if (toolSettings.isUseDefaultPDFViewer())
    {
      openDefaultViewer(file);
    }
    else
    {
      if(execute
          (toolSettings.getCustomPDFViewerExecutable(),
              toolSettings.getCustomPDFViewerParameters(),
              file.getCanonicalPath()) == false)
      {
        throw new IOException(UtilMessages.getInstance().getString("ExternalToolLauncher.errorMessage", toolSettings.getCustomPDFViewerExecutable()));
      }
    }
  }
View Full Code Here

    if (file == null)
    {
      throw new IllegalArgumentException("file must not be null");
    }

    final ExternalToolSettings toolSettings = ExternalToolSettings.getInstance();
    if (toolSettings.isUseDefaultXLSViewer())
    {
      try
      {
        openDefaultViewer(file);
      }
      catch (Exception e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
      }
    }
    else
    {
      if(execute(
          toolSettings.getCustomXLSViewerExecutable(),
          toolSettings.getCustomXLSViewerParameters(),
          file.getCanonicalPath()) == false)
      {
        throw new IOException(UtilMessages.getInstance().getString("ExternalToolLauncher.errorMessage",toolSettings.getCustomXLSViewerExecutable()));
      }
    }
  }
View Full Code Here

    if (file == null)
    {
      throw new IllegalArgumentException("file must not be null");
    }

    final ExternalToolSettings toolSettings = ExternalToolSettings.getInstance();
    if (toolSettings.isUseDefaultRTFViewer())
    {
      openDefaultViewer(file);
    }
    else
    {
      if(execute(
          toolSettings.getCustomRTFViewerExecutable(),
          toolSettings.getCustomRTFViewerParameters(),
          file.getCanonicalPath()) == false)
      {
        throw new IOException(UtilMessages.getInstance().getString("ExternalToolLauncher.errorMessage",toolSettings.getCustomRTFViewerExecutable()));
      }
    }
  }
View Full Code Here

    if (file == null)
    {
      throw new IllegalArgumentException("file must not be null");
    }

    final ExternalToolSettings toolSettings = ExternalToolSettings.getInstance();
    if (toolSettings.isUseDefaultCSVViewer())
    {
      openDefaultViewer(file);
    }
    else
    {
      if(execute(toolSettings.getCustomCSVViewerExecutable(),
          toolSettings.getCustomCSVViewerParameters(),
          file.getCanonicalPath()) == false)
      {
        throw new IOException(UtilMessages.getInstance().getString("ExternalToolLauncher.errorMessage",toolSettings.getCustomCSVViewerExecutable()));
      }
    }
  }
View Full Code Here

    if (url == null)
    {
      throw new IllegalArgumentException("url must not be null");
    }

    final ExternalToolSettings instance = ExternalToolSettings.getInstance();
    if (instance.isUseDefaultBrowser())
    {
      try
      {
        new BrowserLauncher().openURLinBrowser(url);
      }
      catch (Exception e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
      }
    }
    else
    {
      execute(instance.getCustomBrowserExecutable(),
          instance.getCustomBrowserParameters(), url);
    }
  }
View Full Code Here

    if (file == null)
    {
      throw new IllegalArgumentException("file must not be null");
    }

    final ExternalToolSettings toolSettings = ExternalToolSettings.getInstance();
    if (toolSettings.isUseDefaultPDFViewer())
    {
      openDefaultViewer(file);
    }
    else
    {
      execute
          (toolSettings.getCustomPDFViewerExecutable(),
              toolSettings.getCustomPDFViewerParameters(),
              file.getCanonicalPath());
    }
  }
View Full Code Here

    if (file == null)
    {
      throw new IllegalArgumentException("file must not be null");
    }

    final ExternalToolSettings toolSettings = ExternalToolSettings.getInstance();
    if (toolSettings.isUseDefaultXLSViewer())
    {
      try
      {
        openDefaultViewer(file);
      }
      catch (Exception e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
      }
    }
    else
    {
      execute(
          toolSettings.getCustomXLSViewerExecutable(),
          toolSettings.getCustomXLSViewerParameters(),
          file.getCanonicalPath());
    }
  }
View Full Code Here

    if (file == null)
    {
      throw new IllegalArgumentException("file must not be null");
    }

    final ExternalToolSettings toolSettings = ExternalToolSettings.getInstance();
    if (toolSettings.isUseDefaultRTFViewer())
    {
      openDefaultViewer(file);
    }
    else
    {
      execute(
          toolSettings.getCustomRTFViewerExecutable(),
          toolSettings.getCustomRTFViewerParameters(),
          file.getCanonicalPath());
    }
  }
View Full Code Here

    if (file == null)
    {
      throw new IllegalArgumentException("file must not be null");
    }

    final ExternalToolSettings toolSettings = ExternalToolSettings.getInstance();
    if (toolSettings.isUseDefaultCSVViewer())
    {
      openDefaultViewer(file);
    }
    else
    {
      execute(toolSettings.getCustomCSVViewerExecutable(),
          toolSettings.getCustomCSVViewerParameters(),
          file.getCanonicalPath());
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.settings.ExternalToolSettings

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.