From 6f56ef840918bbd1df468273383bdaab3500e190 Mon Sep 17 00:00:00 2001 From: Uwe Stieber Date: Tue, 13 Mar 2007 16:53:39 +0000 Subject: [PATCH] [cleanup] remove unused interface IRSEUIRegistry + related methods + related implementation --- .../rse/internal/ui/RSEUIRegistry.java | 51 ------------------- .../UI/org/eclipse/rse/ui/IRSEAdapter.java | 6 --- .../UI/org/eclipse/rse/ui/IRSEUIRegistry.java | 20 -------- .../UI/org/eclipse/rse/ui/RSEAdapter.java | 8 --- .../UI/org/eclipse/rse/ui/RSEUIPlugin.java | 10 ---- 5 files changed, 95 deletions(-) delete mode 100644 rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/RSEUIRegistry.java delete mode 100644 rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/IRSEUIRegistry.java diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/RSEUIRegistry.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/RSEUIRegistry.java deleted file mode 100644 index 323bd56c075..00000000000 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/RSEUIRegistry.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************** - * Copyright (c) 2006 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 - * - * Initial Contributors: - * The following IBM employees contributed to the Remote System Explorer - * component that contains this file: David McKnight, Kushal Munir, - * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, - * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. - * - * Contributors: - * {Name} (company) - description of contribution. - ********************************************************************************/ -package org.eclipse.rse.internal.ui; - -import org.eclipse.rse.ui.IRSEUIRegistry; - -public class RSEUIRegistry implements IRSEUIRegistry { - - // the singleton instance - private static RSEUIRegistry instance; - - /** - * Constructor. - */ - public RSEUIRegistry() { - super(); - init(); - } - - /** - * Initializes the registry. This should only be called from the constructor. - */ - private void init() { - } - - /** - * Returns the singleton instance of the registry. - * @return the singleton instance - */ - public static final RSEUIRegistry getDefault() { - - if (instance == null) { - instance = new RSEUIRegistry(); - } - - return instance; - } -} \ No newline at end of file diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/IRSEAdapter.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/IRSEAdapter.java index 9644c54fd38..ab9de3bc077 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/IRSEAdapter.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/IRSEAdapter.java @@ -30,10 +30,4 @@ public interface IRSEAdapter extends IWorkbenchAdapter, IWorkbenchAdapter2 { * @return the description text for the given object */ public String getDescription(Object o); - - /** - * Returns the RSE UI registry. - * @return the RSE UI registry - */ - public IRSEUIRegistry getRegistry(); } diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/IRSEUIRegistry.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/IRSEUIRegistry.java deleted file mode 100644 index dce401ddb30..00000000000 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/IRSEUIRegistry.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************** - * Copyright (c) 2006 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: - * Kushal Munir (IBM) - Initial API and implementation - ********************************************************************************/ -package org.eclipse.rse.ui; - -/** - * Interface for RSE UI registry. Clients should use this interface as the starting point for querying and - * manipulating UI elements in the RSE framework, such as adapters. - * - * This interface is not intended to be implemented by clients. - */ -public interface IRSEUIRegistry { - -} diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEAdapter.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEAdapter.java index 23264c8a869..9f07c7978ab 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEAdapter.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEAdapter.java @@ -38,12 +38,4 @@ public abstract class RSEAdapter extends WorkbenchAdapter implements IRSEAdapter public String getDescription(Object object) { return ""; //$NON-NLS-1$ } - - /** - * Returns the RSE UI registry. - * @see org.eclipse.rse.ui.IRSEAdapter#getRegistry() - */ - public IRSEUIRegistry getRegistry() { - return RSEUIPlugin.getDefault().getRegistry(); - } } \ No newline at end of file diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEUIPlugin.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEUIPlugin.java index e3ba673f947..93323bb73c3 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEUIPlugin.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEUIPlugin.java @@ -43,7 +43,6 @@ import org.eclipse.rse.core.subsystems.ISubSystemConfiguration; import org.eclipse.rse.core.subsystems.ISubSystemConfigurationProxy; import org.eclipse.rse.internal.model.SystemProfileManager; import org.eclipse.rse.internal.ui.RSESystemTypeAdapterFactory; -import org.eclipse.rse.internal.ui.RSEUIRegistry; import org.eclipse.rse.internal.ui.view.SubSystemConfigurationAdapterFactory; import org.eclipse.rse.internal.ui.view.SystemViewAdapterFactory; import org.eclipse.rse.internal.ui.view.team.SystemTeamViewResourceAdapterFactory; @@ -1067,13 +1066,4 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi } } } - - /** - * Returns the RSE UI registry. Clients should use this method to get the registry which - * is the starting point for working with UI elements in the RSE framework. - * @return the RSE UI registry. - */ - public IRSEUIRegistry getRegistry() { - return RSEUIRegistry.getDefault(); - } } \ No newline at end of file