mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
[cleanup] fix 'local variable/field is never read' compiler warnings
This commit is contained in:
parent
6b26a0a792
commit
9be5d99cc1
3 changed files with 12 additions and 15 deletions
|
@ -17,8 +17,6 @@
|
|||
package org.eclipse.rse.ui.wizards;
|
||||
import org.eclipse.jface.wizard.IWizard;
|
||||
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.ui.SystemConnectionForm;
|
||||
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.
|
||||
* @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
|
||||
implements ISystemNewConnectionWizardPage
|
||||
|
@ -113,8 +111,8 @@ public abstract class AbstractSystemNewConnectionWizardPage extends AbstractSyst
|
|||
{
|
||||
RSENewConnectionWizard ourWizard = getNewConnectionWizard();
|
||||
if (ourWizard != null) {
|
||||
String[] systemTypes = parentFactory.getSystemTypes();
|
||||
IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypes[0]);
|
||||
//String[] systemTypes = parentFactory.getSystemTypes();
|
||||
//IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypes[0]);
|
||||
IWizardPage wizardPage = ourWizard.getDelegate().getMainPage();
|
||||
|
||||
if (wizardPage instanceof ISystemNewConnectionWizardMainPage) {
|
||||
|
@ -137,8 +135,8 @@ public abstract class AbstractSystemNewConnectionWizardPage extends AbstractSyst
|
|||
{
|
||||
RSENewConnectionWizard ourWizard = getNewConnectionWizard();
|
||||
if (ourWizard != null) {
|
||||
String[] systemTypes = parentFactory.getSystemTypes();
|
||||
IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypes[0]);
|
||||
//String[] systemTypes = parentFactory.getSystemTypes();
|
||||
//IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypes[0]);
|
||||
IWizardPage wizardPage = ourWizard.getDelegate().getMainPage();
|
||||
|
||||
if (wizardPage instanceof RSENewConnectionWizardDefaultDelegateMainPage) {
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
|
|||
* Interface that all subsystem factory supplied pages contributed to the New Connection wizard
|
||||
* must implement.
|
||||
* @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
|
||||
{
|
||||
|
|
|
@ -180,7 +180,7 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
|
|||
*/
|
||||
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.
|
||||
* <br> We return true by default.
|
||||
* @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
|
||||
* another subsystem for an existing connection.
|
||||
* @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);
|
||||
|
||||
|
@ -369,8 +370,6 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
|
|||
|
||||
/**
|
||||
* Find or create a connector service for this host
|
||||
* @param host
|
||||
* @return
|
||||
*/
|
||||
public IConnectorService getConnectorService(IHost host);
|
||||
|
||||
|
@ -379,7 +378,7 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
|
|||
* for a given subsystem.
|
||||
* <p>
|
||||
* 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
|
||||
* associated with the subsystem. The default implementation is to create an
|
||||
* 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);
|
||||
/**
|
||||
* 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);
|
||||
/**
|
||||
* 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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue