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
10 * Semantum Oy - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics;
\r
14 import org.simantics.internal.Activator;
\r
17 * @author Tuukka Lehtonen <tuukka.lehtonen@semantum.fi>
\r
19 public class AutosavePreferences {
\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
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
29 public static final String SYSTEM_PROPERTY_AUTOSAVE = "db.vg.autosave";
\r
31 public static final String P_NODE = Activator.PLUGIN_ID;
\r
34 * Preference for defining the enabled state of virtual graph autosave.
\r
36 public static final String P_VG_AUTOSAVE_ENABLED = "virtualgraph.autosave.enabled"; //$NON-NLS-1$
\r
39 * Preference for defining the virtual graph autosave period time in
\r
42 public static final String P_VG_AUTOSAVE_INTERVAL = "virtualgraph.autosave.interval"; //$NON-NLS-1$
\r
44 public static final boolean DEFAULT_VG_AUTOSAVE_ENABLED = true;
\r
45 public static final int DEFAULT_VG_AUTOSAVE_INTERVAL = 90;
\r