X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.issues%2Fsrc%2Forg%2Fsimantics%2Fissues%2Fpreferences%2FIssuePreferences.java;h=9d9b49d8bc73b60d3ce7b201bccce9ebcd99358f;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=3b3b154cbd94dae1823c712f4c67f9fcd9f745ab;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git 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 index 3b3b154cb..9d9b49d8b 100644 --- a/bundles/org.simantics.issues/src/org/simantics/issues/preferences/IssuePreferences.java +++ b/bundles/org.simantics.issues/src/org/simantics/issues/preferences/IssuePreferences.java @@ -1,43 +1,43 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.issues.preferences; - -/** - * Constant definitions for plug-in preferences - */ -public final class IssuePreferences { - - public static final String P_ISSUES_ENABLED = "issues.enabled"; - - /** - * Preference for the maximum amount of issues to write during a batch - * validation operation. This is used to keep the amount of written issues - * down to tolerable levels performance-wise. - */ - public static final String P_MAX_BATCH_ISSUES_TO_WRITE = "issues.batch.write.max"; - - public static final boolean DEFAULT_ISSUES_ENABLED = true; - - public static final int DEFAULT_MAX_BATCH_ISSUES_TO_WRITE = 1000; - - public static final IssuePreferences DEFAULT = new IssuePreferences(DEFAULT_ISSUES_ENABLED, DEFAULT_MAX_BATCH_ISSUES_TO_WRITE); - - public final boolean enabled; - - public final int maxBatchIssuesToWrite; - - public IssuePreferences(boolean enabled, int maxBatchIssuesToWrite) { - this.enabled = enabled; - this.maxBatchIssuesToWrite = maxBatchIssuesToWrite; - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.issues.preferences; + +/** + * Constant definitions for plug-in preferences + */ +public final class IssuePreferences { + + public static final String P_ISSUES_ENABLED = "issues.enabled"; + + /** + * Preference for the maximum amount of issues to write during a batch + * validation operation. This is used to keep the amount of written issues + * down to tolerable levels performance-wise. + */ + public static final String P_MAX_BATCH_ISSUES_TO_WRITE = "issues.batch.write.max"; + + public static final boolean DEFAULT_ISSUES_ENABLED = true; + + public static final int DEFAULT_MAX_BATCH_ISSUES_TO_WRITE = 1000; + + public static final IssuePreferences DEFAULT = new IssuePreferences(DEFAULT_ISSUES_ENABLED, DEFAULT_MAX_BATCH_ISSUES_TO_WRITE); + + public final boolean enabled; + + public final int maxBatchIssuesToWrite; + + public IssuePreferences(boolean enabled, int maxBatchIssuesToWrite) { + this.enabled = enabled; + this.maxBatchIssuesToWrite = maxBatchIssuesToWrite; + } + +}