Examples of XMLBeanReader


Examples of net.sourceforge.squirrel_sql.fw.xml.XMLBeanReader

    /**
     * Load from preferences file.
     */
    private static void loadPrefs() {
        try {
            XMLBeanReader doc = new XMLBeanReader();
           
            File prefFile = PreferenceUtil.getPreferenceFileToReadFrom(plugin);
           
            doc.load(prefFile, MSSQLPreferenceBean.class.getClassLoader());
                       
            Iterator<?> it = doc.iterator();
            if (it.hasNext()) {
                _prefs = (MSSQLPreferenceBean)it.next();
            }
        } catch (FileNotFoundException ignore) {
            s_log.info(USER_PREFS_FILE_NAME + " not found - will be created");
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.xml.XMLBeanReader

   {
      try
      {
         if(null == _autoCorrectData)
         {
            XMLBeanReader br = new XMLBeanReader();

            File path = new File(_pluginUserSettingsFolder.getPath() + File.separator + AUTO_CORRECT_DATA_FILE_NAME);

            if(path.exists())
            {
               br.load(_pluginUserSettingsFolder.getPath() + File.separator + AUTO_CORRECT_DATA_FILE_NAME, this.getClass().getClassLoader());
               _autoCorrectData = (AutoCorrectData) br.iterator().next();
            }
            else
            {
               _autoCorrectData = getDefaultAutoCorrectData();
            }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.xml.XMLBeanReader

    /**
     * Load from preferences file.
     */
    private static void loadPrefs() {
        try {
            XMLBeanReader doc = new XMLBeanReader();
           
            File prefFile = PreferenceUtil.getPreferenceFileToReadFrom(plugin);
           
            doc.load(prefFile, RefactoringPreferenceBean.class.getClassLoader());           

            Iterator<?> it = doc.iterator();
            if (it.hasNext()) {
                _prefs = (RefactoringPreferenceBean)it.next();
            }
        } catch (FileNotFoundException ignore) {
            s_log.info(USER_PREFS_FILE_NAME + " not found - will be created");
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.xml.XMLBeanReader

    /**
     * Load from preferences file.
     */
    private static void loadPrefs() {
        try {
            XMLBeanReader doc = new XMLBeanReader();
           
            File prefFile = PreferenceUtil.getPreferenceFileToReadFrom(plugin);
           
            doc.load(prefFile, DataImportPreferenceBean.class.getClassLoader());
           
            Iterator<?> it = doc.iterator();
            if (it.hasNext()) {
                _prefs = (DataImportPreferenceBean)it.next();
            }
        } catch (FileNotFoundException ignore) {
            s_log.info(USER_PREFS_FILE_NAME + " not found - will be created");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.