OSDN Git Service

Merge branch 'checkUpdate' into develop
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / Global.java
index b6bd5e5..4d3fb6e 100644 (file)
@@ -65,8 +65,8 @@ import cx.fbn.nevernote.utilities.Pair;
 public class Global {
        // Set current version and the known versions.
        // ICHANGED 自分用に変更
-       public static String version = "0.1";
-       public static String[] validVersions = {"0.1"};
+       public static String version = "0.1.1";
+       public static String[] validVersions = {"0.1.1", "0.1"};
        
     public static String username = ""; 
     //public static String password = "";     
@@ -2303,56 +2303,5 @@ public class Global {
                settings.endGroup();
                return value;
        }
-       
-       // 最後に開いていたノート群を取得
-       public static HashMap<Integer, String> getLastViewedTabs() {
-               settings.beginGroup("General");
-               
-               @SuppressWarnings("unchecked")
-               HashMap<Integer, String> tabWindows = (HashMap<Integer, String>) settings.value("lastViewedTabs", null);
-               
-               settings.endGroup();
-               return tabWindows;
-       }
-       
-       // 最後に開いていたノート群を保存
-       public static void saveLastViewedTabs(HashMap<Integer, String> tabs) {
-               settings.beginGroup("General");
-               if (tabs != null) {
-                       settings.setValue("lastViewedTabs", tabs);
-               } else {
-                       settings.setValue("lastViewedTabs", "");
-               }
-               settings.endGroup();
-       }
-       
-    // 最後に開いていたタブのインデックスを取得
-    public static int getLastViewedTabIndex() {
-               settings.beginGroup("General");
-               Integer index;
-               try {
-                       String val = (String) settings.value("lastViewedTabIndex", 0);
-                       index = new Integer(val.trim());
-               } catch (Exception e) {
-                       try {
-                               index = (Integer) settings.value("lastViewedTabIndex", 0);
-                       } catch (Exception e1) {
-                               index = 0;
-                       }
-               }
-               settings.endGroup();
-               return index;
-    }
-    
-    // 最後に開いていたタブのインデックスを保存
-    public static void saveLastViewedTabIndex(Integer index) {
-               settings.beginGroup("General");
-               if (index != null) {
-                       settings.setValue("lastViewedTabIndex", index);
-               } else {
-                       settings.setValue("lastViewedTabIndex", 0);
-               }
-               settings.endGroup();
-    }
 }