]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics/src/org/simantics/AutosavePreferences.java
Merge commit '728147df5d63a3333daff3d8c0e9bfd4f5597e3a'
[simantics/platform.git] / bundles / org.simantics / src / org / simantics / AutosavePreferences.java
1 /*******************************************************************************\r
2  * Copyright (c) 2012 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     Semantum Oy - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics;\r
13 \r
14 import org.simantics.internal.Activator;\r
15 \r
16 /**\r
17  * @author Tuukka Lehtonen <tuukka.lehtonen@semantum.fi>\r
18  */\r
19 public class AutosavePreferences {\r
20 \r
21     /**\r
22      * The system property name that can be used to externally enable/disable\r
23      * the current database connection virtual graph auto-save feature.\r
24      * \r
25      * Set the value to "false" to globally disable virtual graph autosave.\r
26      * Otherwise the preference {@link #P_VG_AUTOSAVE_ENABLED} will govern the\r
27      * enabled-state of the feature.\r
28      */\r
29     public static final String  SYSTEM_PROPERTY_AUTOSAVE     = "db.vg.autosave";\r
30 \r
31     public static final String  P_NODE                       = Activator.PLUGIN_ID;\r
32 \r
33     /**\r
34      * Preference for defining the enabled state of virtual graph autosave.\r
35      */\r
36     public static final String  P_VG_AUTOSAVE_ENABLED        = "virtualgraph.autosave.enabled"; //$NON-NLS-1$\r
37 \r
38     /**\r
39      * Preference for defining the virtual graph autosave period time in\r
40      * seconds.\r
41      */\r
42     public static final String  P_VG_AUTOSAVE_INTERVAL       = "virtualgraph.autosave.interval"; //$NON-NLS-1$\r
43 \r
44     public static final boolean DEFAULT_VG_AUTOSAVE_ENABLED  = true;\r
45     public static final int     DEFAULT_VG_AUTOSAVE_INTERVAL = 90;\r
46 \r
47 }\r