Package net.sourceforge.squirrel_sql.client.util

Examples of net.sourceforge.squirrel_sql.client.util.ApplicationFiles


  {
    CellImportExportInfoSaver saverInstance = null;
    try
    {
      XMLBeanReader doc = new XMLBeanReader();
      doc.load(new ApplicationFiles().getCellImportExportSelectionsFile());
      Iterator it = doc.iterator();
      if (it.hasNext())
      {
        saverInstance = (CellImportExportInfoSaver) it.next();
      }
View Full Code Here


  private void saveCellImportExportInfo()
  {
    try
    {
      XMLBeanWriter wtr = new XMLBeanWriter(CellImportExportInfoSaver.getInstance());
      wtr.save(new ApplicationFiles().getCellImportExportSelectionsFile());
    }
    catch (Exception ex)
    {
      // i18n[Application.error.writecellselections=Unable to write Cell Import/Export options to
      // persistant storage.]
View Full Code Here

  {

    try
    {
      XMLBeanReader doc = new XMLBeanReader();
      doc.load(new ApplicationFiles().getEditWhereColsFile());
      Iterator it = doc.iterator();
      if (it.hasNext())
      {
        editWhereCols = (EditWhereCols) it.next();
        editWhereCols.setApplication(this);
View Full Code Here

  private void saveEditWhereColsInfo()
  {
    try
    {
      XMLBeanWriter wtr = new XMLBeanWriter(editWhereCols);
      wtr.save(new ApplicationFiles().getEditWhereColsFile());
    }
    catch (Exception ex)
    {
      // i18n[Application.error.savecolsinfo=Unable to write Edit Where Cols options to persistant
      // storage.]
View Full Code Here

  {
    DTProperties saverInstance = null;
    try
    {
      XMLBeanReader doc = new XMLBeanReader();
      doc.load(new ApplicationFiles().getDTPropertiesFile());
      Iterator<Object> it = doc.iterator();
      if (it.hasNext())
      {
        saverInstance = (DTProperties) it.next();
        DTProperties x = saverInstance;
View Full Code Here

  private void saveDataTypePreferences()
  {
    try
    {
      XMLBeanWriter wtr = new XMLBeanWriter(new DTProperties());
      wtr.save(new ApplicationFiles().getDTPropertiesFile());
    }
    catch (Exception ex)
    {
      // i18n[Application.error.savedatatypeprops=Unable to write DataType properties to persistant
      // storage.]
View Full Code Here

  private void setupJDBCLogging()
  {
    // If logging has changed.
    if (_jdbcDebugType != _prefs.getJdbcDebugType())
    {
      final ApplicationFiles appFiles = new ApplicationFiles();
      final File outFile = appFiles.getJDBCDebugLogFile();

      // Close any previous logging.
      DriverManager.setLogStream(null);
      if (_jdbcDebugOutputStream != null)
      {
View Full Code Here

   *
   * @return    File to write execution log to.
   */
  private static File getLogFile()
  {
    final File logFile = new ApplicationFiles().getExecutionLogFile();
    if (logFile == null)
    {
      throw new IllegalStateException("null ExecutionLogFile in ApplicationFiles");
    }
    return logFile;
View Full Code Here

   *
   * @return    File to write execution log to.
   */
  private static File getLogFile()
  {
    final File logFile = new ApplicationFiles().getExecutionLogFile();
    if (logFile == null)
    {
      throw new IllegalStateException("null ExecutionLogFile in ApplicationFiles");
    }
    return logFile;
View Full Code Here

   * TODO: Clean this mess up!!!! Load plugins. Load all plugin jars into class loader.
   */
  public void loadPlugins()
  {
    List<URL> pluginUrls = new ArrayList<URL>();
    File dir = new ApplicationFiles().getPluginsDirectory();
    boolean isMac = System.getProperty("os.name").toLowerCase().startsWith("mac");
    if (dir.isDirectory())
    {
      final Map<String, PluginStatus> pluginStatuses = new HashMap<String, PluginStatus>();
      {
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.util.ApplicationFiles

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.