1
1
/*******************************************************************************
2
- * Copyright (c) 2012 - 2018 Wind River Systems, Inc. and others. All rights reserved.
2
+ * Copyright (c) 2012, 2025 Wind River Systems, Inc. and others. All rights reserved.
3
3
* This program and the accompanying materials are made available under the terms
4
4
* of the Eclipse Public License 2.0 which accompanies this distribution, and is
5
5
* available at https://www.eclipse.org/legal/epl-2.0/
8
8
*
9
9
* Contributors:
10
10
* Wind River Systems - initial API and implementation
11
+ * Alexander Fedorov (ArSysOp) - further evolution
11
12
*******************************************************************************/
12
13
package org .eclipse .terminal .connector .local .activator ;
13
14
14
15
import org .eclipse .jface .resource .ImageDescriptor ;
15
16
import org .eclipse .jface .resource .ImageRegistry ;
16
17
import org .eclipse .swt .graphics .Image ;
17
- import org .eclipse .terminal .view .core .utils .ScopedEclipsePreferences ;
18
18
import org .eclipse .terminal .view .core .utils .TraceHandler ;
19
19
import org .eclipse .terminal .view .ui .launcher .ILauncherDelegateManager ;
20
20
import org .eclipse .ui .plugin .AbstractUIPlugin ;
27
27
public class UIPlugin extends AbstractUIPlugin {
28
28
// The shared instance
29
29
private static volatile UIPlugin plugin ;
30
- // The scoped preferences instance
31
- private static volatile ScopedEclipsePreferences scopedPreferences ;
32
30
// The trace handler instance
33
31
private static volatile TraceHandler traceHandler ;
34
32
@@ -53,16 +51,6 @@ public static String getUniqueIdentifier() {
53
51
return "org.eclipse.terminal.connector.local" ; //$NON-NLS-1$
54
52
}
55
53
56
- /**
57
- * Return the scoped preferences for this plug-in.
58
- */
59
- public static ScopedEclipsePreferences getScopedPreferences () {
60
- if (scopedPreferences == null ) {
61
- scopedPreferences = new ScopedEclipsePreferences (getUniqueIdentifier ());
62
- }
63
- return scopedPreferences ;
64
- }
65
-
66
54
/**
67
55
* Returns the bundles trace handler.
68
56
*
@@ -86,7 +74,6 @@ public void start(BundleContext context) throws Exception {
86
74
@ Override
87
75
public void stop (BundleContext context ) throws Exception {
88
76
plugin = null ;
89
- scopedPreferences = null ;
90
77
traceHandler = null ;
91
78
super .stop (context );
92
79
}
0 commit comments