blob: 3c85544bd072650f1250ac5a5dad20b6fef9abfb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015, 2017 Google, Inc and others.
* 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:
* Stefan Xenos <sxenos@gmail.com> (Google) - initial API and implementation
*******************************************************************************/
package org.eclipse.compare.internal;
import org.eclipse.osgi.service.debug.DebugOptionsListener;
/**
* Policy implements NLS convenience methods for the plugin and
* makes progress monitor policy decisions
*/
public class Policy {
// Debug flags
public static boolean debugContentMergeViewer = false;
static final DebugOptionsListener DEBUG_OPTIONS_LISTENER = options -> {
boolean DEBUG = options.getBooleanOption(CompareUIPlugin.PLUGIN_ID + "/debug", false); //$NON-NLS-1$
debugContentMergeViewer = DEBUG && options.getBooleanOption(CompareUIPlugin.PLUGIN_ID + "/content_merge_viewer", false); //$NON-NLS-1$
};
}