Skip to content

Commit 4522f5e

Browse files
committed
Remove unused preferences for org.eclipse.terminal.connector.local
Custom preference instance from this non-API class is not used by Platform, it is better to delete it
1 parent 145679b commit 4522f5e

File tree

1 file changed

+2
-15
lines changed
  • terminal/bundles/org.eclipse.terminal.connector.local/src/org/eclipse/terminal/connector/local/activator

1 file changed

+2
-15
lines changed

terminal/bundles/org.eclipse.terminal.connector.local/src/org/eclipse/terminal/connector/local/activator/UIPlugin.java

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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/
@@ -8,13 +8,13 @@
88
*
99
* Contributors:
1010
* Wind River Systems - initial API and implementation
11+
* Alexander Fedorov (ArSysOp) - further evolution
1112
*******************************************************************************/
1213
package org.eclipse.terminal.connector.local.activator;
1314

1415
import org.eclipse.jface.resource.ImageDescriptor;
1516
import org.eclipse.jface.resource.ImageRegistry;
1617
import org.eclipse.swt.graphics.Image;
17-
import org.eclipse.terminal.view.core.utils.ScopedEclipsePreferences;
1818
import org.eclipse.terminal.view.core.utils.TraceHandler;
1919
import org.eclipse.terminal.view.ui.launcher.ILauncherDelegateManager;
2020
import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -27,8 +27,6 @@
2727
public 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

Comments
 (0)