mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Bug 500547 - move JSchUIFileService to o.e.remote.ui.RemoteUIFileService
Change-Id: I83a4b7e42b23e3aaf7415a8dc553cdd384cb610f Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
parent
0f03dd648c
commit
eead6545d0
4 changed files with 10 additions and 8 deletions
|
@ -43,7 +43,7 @@
|
|||
</connectionTypeService>
|
||||
<connectionTypeService
|
||||
connectionTypeId="org.eclipse.remote.JSch"
|
||||
factory="org.eclipse.remote.internal.jsch.ui.JSchUIFileService$Factory"
|
||||
factory="org.eclipse.remote.ui.RemoteUIFileService$Factory"
|
||||
service="org.eclipse.remote.ui.IRemoteUIFileService">
|
||||
</connectionTypeService>
|
||||
<connectionService
|
||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-SymbolicName: org.eclipse.remote.ui;singleton:=true
|
||||
Bundle-Version: 2.0.0.qualifier
|
||||
Bundle-Version: 2.1.0.qualifier
|
||||
Bundle-Activator: org.eclipse.remote.internal.ui.RemoteUIPlugin
|
||||
Bundle-Vendor: %pluginProvider
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
|
||||
<artifactId>org.eclipse.remote.ui</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
<version>2.1.0-SNAPSHOT</version>
|
||||
</project>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* Contributors:
|
||||
* IBM Corporation - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.remote.internal.jsch.ui;
|
||||
package org.eclipse.remote.ui;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -18,17 +18,19 @@ import org.eclipse.jface.window.Window;
|
|||
import org.eclipse.remote.core.IRemoteConnection;
|
||||
import org.eclipse.remote.core.IRemoteConnectionType;
|
||||
import org.eclipse.remote.core.IRemoteConnectionType.Service;
|
||||
import org.eclipse.remote.ui.IRemoteUIFileService;
|
||||
import org.eclipse.remote.ui.dialogs.RemoteResourceBrowser;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
public class JSchUIFileService implements IRemoteUIFileService {
|
||||
/**
|
||||
* @since 2.1
|
||||
*/
|
||||
public class RemoteUIFileService implements IRemoteUIFileService {
|
||||
private final IRemoteConnectionType connectionType;
|
||||
private IRemoteConnection connection = null;
|
||||
private boolean showConnections = false;
|
||||
|
||||
public JSchUIFileService(IRemoteConnectionType connectionType) {
|
||||
public RemoteUIFileService(IRemoteConnectionType connectionType) {
|
||||
this.connectionType = connectionType;
|
||||
}
|
||||
|
||||
|
@ -37,7 +39,7 @@ public class JSchUIFileService implements IRemoteUIFileService {
|
|||
@Override
|
||||
public <T extends Service> T getService(IRemoteConnectionType connectionType, Class<T> service) {
|
||||
if (IRemoteUIFileService.class.equals(service)) {
|
||||
return (T) new JSchUIFileService(connectionType);
|
||||
return (T) new RemoteUIFileService(connectionType);
|
||||
}
|
||||
return null;
|
||||
}
|
Loading…
Add table
Reference in a new issue