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