]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.issues/src/org/simantics/issues/preferences/IssuePreferences.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.issues / src / org / simantics / issues / preferences / IssuePreferences.java
diff --git a/bundles/org.simantics.issues/src/org/simantics/issues/preferences/IssuePreferences.java b/bundles/org.simantics.issues/src/org/simantics/issues/preferences/IssuePreferences.java
new file mode 100644 (file)
index 0000000..3b3b154
--- /dev/null
@@ -0,0 +1,43 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.issues.preferences;\r
+\r
+/**\r
+ * Constant definitions for plug-in preferences\r
+ */\r
+public final class IssuePreferences {\r
+\r
+    public static final String           P_ISSUES_ENABLED       = "issues.enabled";\r
+\r
+    /**\r
+     * Preference for the maximum amount of issues to write during a batch\r
+     * validation operation. This is used to keep the amount of written issues\r
+     * down to tolerable levels performance-wise.\r
+     */\r
+    public static final String           P_MAX_BATCH_ISSUES_TO_WRITE = "issues.batch.write.max";\r
+\r
+    public static final boolean          DEFAULT_ISSUES_ENABLED = true;\r
+\r
+    public static final int              DEFAULT_MAX_BATCH_ISSUES_TO_WRITE = 1000;\r
+\r
+    public static final IssuePreferences DEFAULT                = new IssuePreferences(DEFAULT_ISSUES_ENABLED, DEFAULT_MAX_BATCH_ISSUES_TO_WRITE);\r
+\r
+    public final boolean                 enabled;\r
+\r
+    public final int                     maxBatchIssuesToWrite;\r
+\r
+    public IssuePreferences(boolean enabled, int maxBatchIssuesToWrite) {\r
+        this.enabled = enabled;\r
+        this.maxBatchIssuesToWrite = maxBatchIssuesToWrite;\r
+    }\r
+\r
+}\r