1 /*******************************************************************************
2 * Copyright (c) 2012 Association for Decentralized Information Management
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
10 * Semantum Oy - initial API and implementation
11 *******************************************************************************/
12 package org.simantics;
14 import org.simantics.internal.Activator;
17 * @author Tuukka Lehtonen <tuukka.lehtonen@semantum.fi>
19 public class AutosavePreferences {
22 * The system property name that can be used to externally enable/disable
23 * the current database connection virtual graph auto-save feature.
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.
29 public static final String SYSTEM_PROPERTY_AUTOSAVE = "db.vg.autosave";
31 public static final String P_NODE = Activator.PLUGIN_ID;
34 * Preference for defining the enabled state of virtual graph autosave.
36 public static final String P_VG_AUTOSAVE_ENABLED = "virtualgraph.autosave.enabled"; //$NON-NLS-1$
39 * Preference for defining the virtual graph autosave period time in
42 public static final String P_VG_AUTOSAVE_INTERVAL = "virtualgraph.autosave.interval"; //$NON-NLS-1$
44 public static final boolean DEFAULT_VG_AUTOSAVE_ENABLED = true;
45 public static final int DEFAULT_VG_AUTOSAVE_INTERVAL = 90;