mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
[231209] fixing compile errors from move from getSystemConnection to getHost
This commit is contained in:
parent
68a1eb3356
commit
687edee87d
16 changed files with 22 additions and 22 deletions
|
@ -182,7 +182,7 @@ public class CreateRemoteProjectActionDelegate implements IActionDelegate {
|
|||
{
|
||||
IWorkspaceRoot root = SystemBasePlugin.getWorkspaceRoot();
|
||||
|
||||
String projectName = directory.getSystemConnection().getAliasName() + '_' + directory.getName();
|
||||
String projectName = directory.getHost().getAliasName() + '_' + directory.getName();
|
||||
projectName = projectName.replaceAll("[/:*?\"<>|\\\\]", ""); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
IProject editProject = root.getProject(projectName);
|
||||
|
||||
|
|
|
@ -277,7 +277,7 @@ public class SystemSelectRemoteFileAction extends SystemBaseDialogAction
|
|||
*/
|
||||
public void setRootFolder(IRemoteFile rootFolder)
|
||||
{
|
||||
setRootFolder(rootFolder.getSystemConnection(),rootFolder.getAbsolutePath());
|
||||
setRootFolder(rootFolder.getHost(),rootFolder.getAbsolutePath());
|
||||
}
|
||||
/**
|
||||
* Set a file or folder to preselect. This will:
|
||||
|
|
|
@ -243,7 +243,7 @@ public class SystemSelectRemoteFolderAction extends SystemBaseDialogAction
|
|||
*/
|
||||
public void setRootFolder(IRemoteFile rootFolder)
|
||||
{
|
||||
setRootFolder(rootFolder.getSystemConnection(),rootFolder.getAbsolutePath());
|
||||
setRootFolder(rootFolder.getHost(),rootFolder.getAbsolutePath());
|
||||
}
|
||||
/**
|
||||
* Set a file or folder to preselect. This will:
|
||||
|
|
|
@ -1382,7 +1382,7 @@ public class SystemEditableRemoteFile implements ISystemEditableRemoteObject, IP
|
|||
|
||||
try
|
||||
{
|
||||
if (remoteFile.getSystemConnection().getSystemType().isLocal())
|
||||
if (remoteFile.getHost().getSystemType().isLocal())
|
||||
{
|
||||
// Open local files "in-place", i.e. don't copy them to the
|
||||
// RemoteSystemsTempFiles project first
|
||||
|
|
|
@ -2346,7 +2346,7 @@ public class UniversalFileTransferUtility
|
|||
|
||||
String absolutePath = srcFileOrFolder.getAbsolutePath();
|
||||
|
||||
if (srcFileOrFolder.getSystemConnection().getSystemType().isLocal())
|
||||
if (srcFileOrFolder.getHost().getSystemType().isLocal())
|
||||
{
|
||||
absolutePath = editMgr.getWorkspacePathFor(actualHost, srcFileOrFolder.getAbsolutePath(), srcFileOrFolder.getParentRemoteFileSubSystem());
|
||||
}
|
||||
|
|
|
@ -733,7 +733,7 @@ public class SystemQualifiedRemoteFolderCombo extends Composite
|
|||
currFolder = getFolder();
|
||||
} catch (Exception exc) {}
|
||||
if (currFolder != null)
|
||||
defaultConnection = currFolder.getSystemConnection();
|
||||
defaultConnection = currFolder.getHost();
|
||||
|
||||
if (browseAction == null)
|
||||
{
|
||||
|
|
|
@ -372,7 +372,7 @@ public class SystemSelectRemoteFileOrFolderForm
|
|||
*/
|
||||
public void setRootFolder(IRemoteFile rootFolder)
|
||||
{
|
||||
setRootFolder(rootFolder.getSystemConnection(),rootFolder.getAbsolutePath());
|
||||
setRootFolder(rootFolder.getHost(),rootFolder.getAbsolutePath());
|
||||
}
|
||||
/**
|
||||
* Set a file or folder to preselect. This will:
|
||||
|
|
|
@ -258,8 +258,8 @@ implements IValidatorRemoteSelection
|
|||
targetFolder = (IRemoteFile)targetContainer;
|
||||
IRemoteFile srcFileOrFolder = (IRemoteFile)oldObject;
|
||||
|
||||
IHost targetConnection = targetFolder.getSystemConnection();
|
||||
IHost srcConnection = srcFileOrFolder.getSystemConnection();
|
||||
IHost targetConnection = targetFolder.getHost();
|
||||
IHost srcConnection = srcFileOrFolder.getHost();
|
||||
|
||||
boolean ok = false;
|
||||
if (targetConnection == srcConnection)
|
||||
|
@ -421,7 +421,7 @@ implements IValidatorRemoteSelection
|
|||
String dlgTitle = (mode==MODE_COPY ? SystemResources.RESID_COPY_TITLE : SystemResources.RESID_MOVE_TITLE);
|
||||
|
||||
firstSelection = getFirstSelectedFile();
|
||||
sourceConnection = firstSelection.getSystemConnection();
|
||||
sourceConnection = firstSelection.getHost();
|
||||
SystemRemoteFolderDialog dlg = new SystemRemoteFolderDialog(shell, dlgTitle, sourceConnection);
|
||||
dlg.setNeedsProgressMonitor(true);
|
||||
dlg.setMessage(getPromptString());
|
||||
|
|
|
@ -934,14 +934,14 @@ public class SystemSearchPage extends DialogPage implements ISearchPage {
|
|||
// if it's a file, but not an archive, get the file name, connection info, and parent folder name
|
||||
if (supportsSearch && remoteFile.isFile() && !remoteFile.isArchive()) {
|
||||
fileName = remoteFile.getName();
|
||||
IHost conn = remoteFile.getSystemConnection();
|
||||
IHost conn = remoteFile.getHost();
|
||||
profileName = conn.getSystemProfileName();
|
||||
connectionName = conn.getAliasName();
|
||||
folderName = remoteFile.getParentPath();
|
||||
}
|
||||
// otherwise if it's a folder or an archive, get the connection info and the name
|
||||
else if (supportsSearch && (remoteFile.isDirectory() || (remoteFile.isArchive() && supportsArchiveManagement))) {
|
||||
IHost conn = remoteFile.getSystemConnection();
|
||||
IHost conn = remoteFile.getHost();
|
||||
profileName = conn.getSystemProfileName();
|
||||
connectionName = conn.getAliasName();
|
||||
folderName = remoteFile.getAbsolutePath();
|
||||
|
|
|
@ -196,7 +196,7 @@ public class SystemSearchRemoteFolderAction extends SystemSelectRemoteFolderActi
|
|||
*/
|
||||
public void setRootFolder(IRemoteFile rootFolder)
|
||||
{
|
||||
setRootFolder(rootFolder.getSystemConnection(),rootFolder.getAbsolutePath());
|
||||
setRootFolder(rootFolder.getHost(),rootFolder.getAbsolutePath());
|
||||
}
|
||||
/**
|
||||
* Set a file or folder to preselect. This will:
|
||||
|
|
|
@ -2135,7 +2135,7 @@ public class SystemViewRemoteFileAdapter
|
|||
{
|
||||
String msgTxt = NLS.bind(FileResources.MSG_ERROR_FILE_NOTFOUND,
|
||||
srcFileOrFolder.getAbsolutePath(),
|
||||
srcFileOrFolder.getSystemConnection().getAliasName());
|
||||
srcFileOrFolder.getHost().getAliasName());
|
||||
|
||||
SystemMessage errorMessage = new SimpleSystemMessage(Activator.PLUGIN_ID,
|
||||
ISystemFileConstants.MSG_ERROR_FILE_NOTFOUND,
|
||||
|
@ -2545,7 +2545,7 @@ public class SystemViewRemoteFileAdapter
|
|||
{
|
||||
String msgTxt = NLS.bind(FileResources.MSG_ERROR_FILE_NOTFOUND,
|
||||
srcFileOrFolder.getAbsolutePath(),
|
||||
srcFileOrFolder.getSystemConnection().getAliasName());
|
||||
srcFileOrFolder.getHost().getAliasName());
|
||||
|
||||
SystemMessage errorMessage = new SimpleSystemMessage(Activator.PLUGIN_ID,
|
||||
ISystemFileConstants.MSG_ERROR_FILE_NOTFOUND,
|
||||
|
|
|
@ -459,7 +459,7 @@ public class RemoteFileImportOperation extends WorkspaceModifyOperation {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
IRemoteFileSubSystem rfss = RemoteFileUtility.getFileSubSystem(((UniFilePlus) fileObject).remoteFile.getSystemConnection());
|
||||
IRemoteFileSubSystem rfss = RemoteFileUtility.getFileSubSystem(((UniFilePlus) fileObject).remoteFile.getHost());
|
||||
// 030820: added the following kludge to circumvent problem in
|
||||
// artemis. (artemis 3 will fix this)
|
||||
// TODO remove for 6.0
|
||||
|
|
|
@ -73,7 +73,7 @@ public class Utilities {
|
|||
* IRemoteFile object.
|
||||
*/
|
||||
public static String getAsString(IRemoteFile selectedDirectory) {
|
||||
return selectedDirectory.getSystemConnection().getSystemProfileName() + '.' + selectedDirectory.getSystemConnection().getAliasName() + ":" + selectedDirectory.getAbsolutePath(); //$NON-NLS-1$
|
||||
return selectedDirectory.getHost().getSystemProfileName() + '.' + selectedDirectory.getHost().getAliasName() + ":" + selectedDirectory.getAbsolutePath(); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -81,7 +81,7 @@ public class Utilities {
|
|||
* UniFilePlus object.
|
||||
*/
|
||||
public static String getAsString(UniFilePlus selectedDirectory) {
|
||||
return selectedDirectory.remoteFile.getSystemConnection().getSystemProfileName() + '.' + selectedDirectory.remoteFile.getSystemConnection().getAliasName() + ":" + selectedDirectory.getPath(); //$NON-NLS-1$
|
||||
return selectedDirectory.remoteFile.getHost().getSystemProfileName() + '.' + selectedDirectory.remoteFile.getHost().getAliasName() + ":" + selectedDirectory.getPath(); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -493,7 +493,7 @@ public class SystemCommandAction extends SystemBaseAction
|
|||
return _cmdSubSystem;
|
||||
}
|
||||
|
||||
IHost sysConn = selectedFile.getSystemConnection();
|
||||
IHost sysConn = selectedFile.getHost();
|
||||
if (sysConn != null)
|
||||
{
|
||||
ISubSystem currSubSystem = selectedFile.getParentRemoteFileSubSystem();
|
||||
|
|
|
@ -352,7 +352,7 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable
|
|||
*/
|
||||
public String getAbsolutePathPlusConnection()
|
||||
{
|
||||
IHost conn = getSystemConnection();
|
||||
IHost conn = getHost();
|
||||
if (conn == null)
|
||||
return getAbsolutePath();
|
||||
else
|
||||
|
@ -1127,7 +1127,7 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable
|
|||
|
||||
public String getHostName()
|
||||
{
|
||||
return getSystemConnection().getHostName();
|
||||
return getHost().getHostName();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -70,6 +70,6 @@ public class RemoteFileSchedulingRule implements ISchedulingRule
|
|||
|
||||
public String getHostName()
|
||||
{
|
||||
return _file.getSystemConnection().getHostName();
|
||||
return _file.getHost().getHostName();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue