mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
[cleanup] fix deprecated method usage
This commit is contained in:
parent
7029df319f
commit
2620fcf3a7
1 changed files with 5 additions and 2 deletions
|
@ -19,6 +19,8 @@ package org.eclipse.rse.shells.ui;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
import org.eclipse.rse.core.SystemBasePlugin;
|
import org.eclipse.rse.core.SystemBasePlugin;
|
||||||
import org.eclipse.rse.core.model.IHost;
|
import org.eclipse.rse.core.model.IHost;
|
||||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||||
|
@ -125,6 +127,7 @@ public class RemoteCommandHelpers
|
||||||
IRemoteCmdSubSystem cmdSubSystem, boolean isCompile)
|
IRemoteCmdSubSystem cmdSubSystem, boolean isCompile)
|
||||||
{
|
{
|
||||||
boolean ok = false;
|
boolean ok = false;
|
||||||
|
IProgressMonitor monitor = new NullProgressMonitor();
|
||||||
if (cmdSubSystem != null)
|
if (cmdSubSystem != null)
|
||||||
{
|
{
|
||||||
ok = true;
|
ok = true;
|
||||||
|
@ -150,9 +153,9 @@ public class RemoteCommandHelpers
|
||||||
cdCmd = "cd /d \"" + path + '\"'; //$NON-NLS-1$
|
cdCmd = "cd /d \"" + path + '\"'; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdSubSystem.sendCommandToShell(cdCmd, defaultShell);
|
cmdSubSystem.sendCommandToShell(monitor, cdCmd, defaultShell);
|
||||||
}
|
}
|
||||||
cmdSubSystem.sendCommandToShell(cmdString, defaultShell);
|
cmdSubSystem.sendCommandToShell(monitor, cmdString, defaultShell);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue