1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-06 07:45:50 +02:00

[cleanup] fix 'local variable/field is never read' compiler warnings

This commit is contained in:
Martin Oberhuber 2006-08-29 12:20:07 +00:00
parent 6b26a0a792
commit 9be5d99cc1
3 changed files with 12 additions and 15 deletions

View file

@ -17,8 +17,6 @@
package org.eclipse.rse.ui.wizards; package org.eclipse.rse.ui.wizards;
import org.eclipse.jface.wizard.IWizard; import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardPage; import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.rse.core.IRSESystemType;
import org.eclipse.rse.core.RSECorePlugin;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration; import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
import org.eclipse.rse.ui.SystemConnectionForm; import org.eclipse.rse.ui.SystemConnectionForm;
import org.eclipse.rse.ui.SystemResources; import org.eclipse.rse.ui.SystemResources;
@ -28,7 +26,7 @@ import org.eclipse.swt.widgets.Control;
/** /**
* A base class for additional pages that are to be appended to the New Connection wizard. * A base class for additional pages that are to be appended to the New Connection wizard.
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getNewConnectionWizardPages(IWizard) * @see org.eclipse.rse.core.subsystems.util.ISubSystemConfigurationAdapter#getNewConnectionWizardPages(ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)
*/ */
public abstract class AbstractSystemNewConnectionWizardPage extends AbstractSystemWizardPage public abstract class AbstractSystemNewConnectionWizardPage extends AbstractSystemWizardPage
implements ISystemNewConnectionWizardPage implements ISystemNewConnectionWizardPage
@ -113,8 +111,8 @@ public abstract class AbstractSystemNewConnectionWizardPage extends AbstractSyst
{ {
RSENewConnectionWizard ourWizard = getNewConnectionWizard(); RSENewConnectionWizard ourWizard = getNewConnectionWizard();
if (ourWizard != null) { if (ourWizard != null) {
String[] systemTypes = parentFactory.getSystemTypes(); //String[] systemTypes = parentFactory.getSystemTypes();
IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypes[0]); //IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypes[0]);
IWizardPage wizardPage = ourWizard.getDelegate().getMainPage(); IWizardPage wizardPage = ourWizard.getDelegate().getMainPage();
if (wizardPage instanceof ISystemNewConnectionWizardMainPage) { if (wizardPage instanceof ISystemNewConnectionWizardMainPage) {
@ -137,8 +135,8 @@ public abstract class AbstractSystemNewConnectionWizardPage extends AbstractSyst
{ {
RSENewConnectionWizard ourWizard = getNewConnectionWizard(); RSENewConnectionWizard ourWizard = getNewConnectionWizard();
if (ourWizard != null) { if (ourWizard != null) {
String[] systemTypes = parentFactory.getSystemTypes(); //String[] systemTypes = parentFactory.getSystemTypes();
IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypes[0]); //IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypes[0]);
IWizardPage wizardPage = ourWizard.getDelegate().getMainPage(); IWizardPage wizardPage = ourWizard.getDelegate().getMainPage();
if (wizardPage instanceof RSENewConnectionWizardDefaultDelegateMainPage) { if (wizardPage instanceof RSENewConnectionWizardDefaultDelegateMainPage) {

View file

@ -23,7 +23,7 @@ import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
* Interface that all subsystem factory supplied pages contributed to the New Connection wizard * Interface that all subsystem factory supplied pages contributed to the New Connection wizard
* must implement. * must implement.
* @see org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage * @see org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getNewConnectionWizardPages(IWizard) * @see org.eclipse.rse.ui.view.SubSystemConfigurationAdapter#getNewConnectionWizardPages(org.eclipse.rse.core.subsystems.ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)
*/ */
public interface ISystemNewConnectionWizardPage extends IWizardPage public interface ISystemNewConnectionWizardPage extends IWizardPage
{ {

View file

@ -180,7 +180,7 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
*/ */
public boolean supportsServerLaunchProperties(IHost host); public boolean supportsServerLaunchProperties(IHost host);
/** /**
* If {@link #supportsServerLaunchProperties()} returns true, this method may be called by * If {@link #supportsServerLaunchProperties(IHost)} returns true, this method may be called by
* the server launcher to decide if a given remote server launch type is supported or not. * the server launcher to decide if a given remote server launch type is supported or not.
* <br> We return true by default. * <br> We return true by default.
* @see org.eclipse.rse.core.subsystems.ServerLaunchType * @see org.eclipse.rse.core.subsystems.ServerLaunchType
@ -357,7 +357,8 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
* @param creatingConnection true if we are creating a connection, false if just creating * @param creatingConnection true if we are creating a connection, false if just creating
* another subsystem for an existing connection. * another subsystem for an existing connection.
* @param yourNewConnectionWizardPages The wizard pages you supplied to the New Connection wizard, via the * @param yourNewConnectionWizardPages The wizard pages you supplied to the New Connection wizard, via the
* {@link #getNewConnectionWizardPages(IWizard)} method or null if you didn't override this method. * {@link org.eclipse.rse.core.subsystems.util.ISubSystemConfigurationAdapter#getNewConnectionWizardPages(ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)}
* method or null if you didn't override this method.
*/ */
public ISubSystem createSubSystem(IHost conn, boolean creatingConnection, ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages); public ISubSystem createSubSystem(IHost conn, boolean creatingConnection, ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages);
@ -369,8 +370,6 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
/** /**
* Find or create a connector service for this host * Find or create a connector service for this host
* @param host
* @return
*/ */
public IConnectorService getConnectorService(IHost host); public IConnectorService getConnectorService(IHost host);
@ -379,7 +378,7 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
* for a given subsystem. * for a given subsystem.
* <p> * <p>
* Create an instance of ServerLauncher, and add it to the given subsystem. * Create an instance of ServerLauncher, and add it to the given subsystem.
* When a subsystem is created, and {@link #supportsServerLaunchProperties()} * When a subsystem is created, and {@link #supportsServerLaunchProperties(IHost)}
* returns true, this method is called to create the server launcher instance * returns true, this method is called to create the server launcher instance
* associated with the subsystem. The default implementation is to create an * associated with the subsystem. The default implementation is to create an
* instance of {@link IRemoteServerLauncher}, but override to create your own * instance of {@link IRemoteServerLauncher}, but override to create your own
@ -403,12 +402,12 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
public void updateSubSystem(Shell shell, ISubSystem subsystem, boolean updateUserId, String userId, boolean updatePort, int port); public void updateSubSystem(Shell shell, ISubSystem subsystem, boolean updateUserId, String userId, boolean updatePort, int port);
/** /**
* Update the port for the given subsystem instance. * Update the port for the given subsystem instance.
* Shortcut to {@link #updateSubSystem(Shell,ISubSystem,boolean,String,boolean,Integer)} * Shortcut to {@link #updateSubSystem(Shell, ISubSystem, boolean, String, boolean, int)}
*/ */
public void setSubSystemPort(Shell shell, ISubSystem subsystem, int port); public void setSubSystemPort(Shell shell, ISubSystem subsystem, int port);
/** /**
* Update the user ID for the given subsystem instance. * Update the user ID for the given subsystem instance.
* Shortcut to {@link #updateSubSystem(Shell,ISubSystem,boolean,String,boolean,Integer)} * Shortcut to {@link #updateSubSystem(Shell, ISubSystem, boolean, String, boolean, int)}
*/ */
public void setSubSystemUserId(Shell shell, ISubSystem subsystem, String userId); public void setSubSystemUserId(Shell shell, ISubSystem subsystem, String userId);