blob: 20d363ca862a1a4ee410f5cb85c1e16eeef5e7e2 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/*******************************************************************************
* Copyright (c) 2012, 2013 Ericsson
*
* 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:
* Francois Chouinard - Initial API and implementation
*******************************************************************************/
package org.eclipse.linuxtools.tmf.ui.properties;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.linuxtools.internal.tmf.ui.Activator;
/**
* TMF Time format preferences
*
* @author Francois Chouinard
* @version 1.0
* @since 2.0
* @deprecated Use {@link org.eclipse.linuxtools.tmf.core.timestamp.TmfTimePreferences} instead.
*/
@SuppressWarnings("javadoc")
@Deprecated
public class TmfTimePreferences {
public static final String DEFAULT_TIME_PATTERN = "HH:mm:ss.SSS_CCC_NNN"; //$NON-NLS-1$
private static TmfTimePreferences fPreferences;
/**
* @deprecated Use {@link org.eclipse.linuxtools.tmf.core.timestamp.TmfTimePreferences#init} instead.
*/
@Deprecated
public static void init() {
org.eclipse.linuxtools.tmf.core.timestamp.TmfTimePreferences.init();
}
/**
* @deprecated Use {@link org.eclipse.linuxtools.tmf.core.timestamp.TmfTimePreferences} instead.
*/
@Deprecated
public static synchronized IPreferenceStore getPreferenceStore() {
init();
return Activator.getDefault().getCorePreferenceStore();
}
/**
* @deprecated Use {@link org.eclipse.linuxtools.tmf.core.timestamp.TmfTimePreferences#getInstance} instead.
*/
@Deprecated
public static synchronized TmfTimePreferences getInstance() {
if (fPreferences == null) {
fPreferences = new TmfTimePreferences();
}
return fPreferences;
}
/**
* @return the timestamp pattern
* @deprecated Use {@link org.eclipse.linuxtools.tmf.core.timestamp.TmfTimePreferences#getTimePattern} instead.
*/
@Deprecated
public static String getTimePattern() {
return org.eclipse.linuxtools.tmf.core.timestamp.TmfTimePreferences.getInstance().getTimePattern();
}
}
|