Skip to main content
summaryrefslogtreecommitdiffstats
blob: 65132c8a031ff5ccb990a5bf25d26533e4083d67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*******************************************************************************
 * Copyright (c) 2008 IBM Corporation.
 * 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:
 *     IBM Corporation - initial API and implementation
 ******************************************************************************/
package org.eclipse.ptp.rdt.server.dstore.internal.core;

import org.eclipse.core.runtime.Platform;
import org.eclipse.ptp.remote.core.PTPRemoteCorePlugin;

public class DebugUtil {
	public static boolean SERVER_TRACING = false;

	private static final String SERVER_TRACING_OPTION = "org.eclipse.ptp.rdt.server.dstore/debug/tracing"; //$NON-NLS-1$

	public static void configurePluginDebugOptions() {
		if (PTPRemoteCorePlugin.getDefault().isDebugging()) {
			String option = Platform.getDebugOption(SERVER_TRACING_OPTION);
			if (option != null) {
				SERVER_TRACING = option.equalsIgnoreCase("true"); //$NON-NLS-1$
			}
		}
	}
}

Back to the top