]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.issues/src/org/simantics/issues/preferences/IssuePreferences.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.issues / src / org / simantics / issues / preferences / IssuePreferences.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 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  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.issues.preferences;
13
14 /**
15  * Constant definitions for plug-in preferences
16  */
17 public final class IssuePreferences {
18
19     public static final String           P_ISSUES_ENABLED       = "issues.enabled";
20
21     /**
22      * Preference for the maximum amount of issues to write during a batch
23      * validation operation. This is used to keep the amount of written issues
24      * down to tolerable levels performance-wise.
25      */
26     public static final String           P_MAX_BATCH_ISSUES_TO_WRITE = "issues.batch.write.max";
27
28     public static final boolean          DEFAULT_ISSUES_ENABLED = true;
29
30     public static final int              DEFAULT_MAX_BATCH_ISSUES_TO_WRITE = 1000;
31
32     public static final IssuePreferences DEFAULT                = new IssuePreferences(DEFAULT_ISSUES_ENABLED, DEFAULT_MAX_BATCH_ISSUES_TO_WRITE);
33
34     public final boolean                 enabled;
35
36     public final int                     maxBatchIssuesToWrite;
37
38     public IssuePreferences(boolean enabled, int maxBatchIssuesToWrite) {
39         this.enabled = enabled;
40         this.maxBatchIssuesToWrite = maxBatchIssuesToWrite;
41     }
42
43 }