001/* 002 * Copyright 2010-2015 Institut Pasteur. 003 * 004 * This file is part of Icy. 005 * 006 * Icy is free software: you can redistribute it and/or modify 007 * it under the terms of the GNU General Public License as published by 008 * the Free Software Foundation, either version 3 of the License, or 009 * (at your option) any later version. 010 * 011 * Icy is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License 017 * along with Icy. If not, see <http://www.gnu.org/licenses/>. 018 */ 019package icy.preferences; 020 021/** 022 * @author Stephane 023 */ 024public class WorkspacePreferences 025{ 026 /** 027 * pref id 028 */ 029 private static final String PREF_ID = "workspaces"; 030 031 /** 032 * id 033 */ 034 // private static final String ID_AUTO_UPDATE = "autoUpdate"; 035 // private static final String ID_AUTO_CHECK_UPDATE = "autoCheckUpdate"; 036 037 /** 038 * preferences 039 */ 040 private static XMLPreferences preferences; 041 042 public static void load() 043 { 044 // load preference 045 preferences = ApplicationPreferences.getPreferences().node(PREF_ID); 046 } 047 048 /** 049 * @return the preferences 050 */ 051 public static XMLPreferences getPreferences() 052 { 053 return preferences; 054 } 055 056 // public static boolean getAutomaticUpdate() 057 // { 058 // return preferences.getBoolean(ID_AUTO_UPDATE, true); 059 // } 060 // 061 // public static boolean getAutomaticCheckUpdate() 062 // { 063 // return preferences.getBoolean(ID_AUTO_CHECK_UPDATE, true); 064 // } 065 // 066 // public static void setAutomaticUpdate(boolean value) 067 // { 068 // preferences.putBoolean(ID_AUTO_UPDATE, value); 069 // } 070 // 071 // public static void setAutomaticCheckUpdate(boolean value) 072 // { 073 // preferences.putBoolean(ID_AUTO_CHECK_UPDATE, value); 074 // } 075 076}