1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 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 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.issues.preferences;
15 * Constant definitions for plug-in preferences
17 public final class IssuePreferences {
19 public static final String P_ISSUES_ENABLED = "issues.enabled";
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.
26 public static final String P_MAX_BATCH_ISSUES_TO_WRITE = "issues.batch.write.max";
28 public static final boolean DEFAULT_ISSUES_ENABLED = true;
30 public static final int DEFAULT_MAX_BATCH_ISSUES_TO_WRITE = 1000;
32 public static final IssuePreferences DEFAULT = new IssuePreferences(DEFAULT_ISSUES_ENABLED, DEFAULT_MAX_BATCH_ISSUES_TO_WRITE);
34 public final boolean enabled;
36 public final int maxBatchIssuesToWrite;
38 public IssuePreferences(boolean enabled, int maxBatchIssuesToWrite) {
39 this.enabled = enabled;
40 this.maxBatchIssuesToWrite = maxBatchIssuesToWrite;