1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[cleanup] remove unused interface IRSEUIRegistry + related methods + related implementation

This commit is contained in:
Uwe Stieber 2007-03-13 16:53:39 +00:00
parent 5fc954d25e
commit 6f56ef8409
5 changed files with 0 additions and 95 deletions

View file

@ -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;
}
}

View file

@ -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();
}

View file

@ -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 {
}

View file

@ -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();
}
}

View file

@ -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();
}
}