Package net.sourceforge.squirrel_sql.fw.xml

Examples of net.sourceforge.squirrel_sql.fw.xml.XMLBeanReader.load()


        return getEmptyPreferencesBean(beanType);
      }
        try {
            XMLBeanReader reader = new XMLBeanReader();
            File file = new File(userSettingsFolder, filename);
            reader.load(file, getSessionPreferencesClassloader(beanType));
           
            Iterator<Object> it = reader.iterator();
            if (it.hasNext()) {
              prefBean = (IFirebirdManagerSessionPreferencesBean)it.next();
            }
View Full Code Here


    try
    {
      final XMLBeanReader doc = new XMLBeanReader();
      final File file = new File(_userSettingsFolder,
          IConstants.USER_PREFS_FILE_NAME);
      doc.load(file, getClass().getClassLoader());

      Iterator<?> it = doc.iterator();

      if (it.hasNext())
      {
View Full Code Here

        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();
            }
View Full Code Here

            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

        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();
            }
View Full Code Here

        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();
            }
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.