11/*******************************************************************************
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.
33 * This program and the accompanying materials are made available under the terms
44 * of the Eclipse Public License 2.0 which accompanies this distribution, and is
55 * available at https://www.eclipse.org/legal/epl-2.0/
88 *
99 * Contributors:
1010 * Wind River Systems - initial API and implementation
11+ * Alexander Fedorov (ArSysOp) - further evolution
1112 *******************************************************************************/
1213package org .eclipse .terminal .connector .local .activator ;
1314
1415import org .eclipse .jface .resource .ImageDescriptor ;
1516import org .eclipse .jface .resource .ImageRegistry ;
1617import org .eclipse .swt .graphics .Image ;
17- import org .eclipse .terminal .view .core .utils .ScopedEclipsePreferences ;
1818import org .eclipse .terminal .view .core .utils .TraceHandler ;
1919import org .eclipse .terminal .view .ui .launcher .ILauncherDelegateManager ;
2020import org .eclipse .ui .plugin .AbstractUIPlugin ;
2727public class UIPlugin extends AbstractUIPlugin {
2828 // The shared instance
2929 private static volatile UIPlugin plugin ;
30- // The scoped preferences instance
31- private static volatile ScopedEclipsePreferences scopedPreferences ;
3230 // The trace handler instance
3331 private static volatile TraceHandler traceHandler ;
3432
@@ -53,16 +51,6 @@ public static String getUniqueIdentifier() {
5351 return "org.eclipse.terminal.connector.local" ; //$NON-NLS-1$
5452 }
5553
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-
6654 /**
6755 * Returns the bundles trace handler.
6856 *
@@ -86,7 +74,6 @@ public void start(BundleContext context) throws Exception {
8674 @ Override
8775 public void stop (BundleContext context ) throws Exception {
8876 plugin = null ;
89- scopedPreferences = null ;
9077 traceHandler = null ;
9178 super .stop (context );
9279 }
0 commit comments