mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
[180562[ not implementing IServiceConstants
This commit is contained in:
parent
925dc6e3a6
commit
e52bdbba6e
3 changed files with 9 additions and 9 deletions
|
@ -32,7 +32,7 @@ import org.eclipse.rse.services.clientserver.processes.IHostProcess;
|
|||
import org.eclipse.rse.services.clientserver.processes.IHostProcessFilter;
|
||||
import org.eclipse.rse.services.clientserver.processes.ISystemProcessRemoteConstants;
|
||||
|
||||
public class UniversalLinuxProcessHandler implements ProcessHandler, IServiceConstants
|
||||
public class UniversalLinuxProcessHandler implements ProcessHandler
|
||||
{
|
||||
|
||||
protected HashMap _usernamesByUid;
|
||||
|
@ -79,10 +79,10 @@ public class UniversalLinuxProcessHandler implements ProcessHandler, IServiceCon
|
|||
File procDir = new File("/proc"); //$NON-NLS-1$
|
||||
|
||||
if (!procDir.exists())
|
||||
throw new Exception(FAILED_WITH_DOES_NOT_EXIST);
|
||||
throw new Exception(IServiceConstants.FAILED_WITH_DOES_NOT_EXIST);
|
||||
|
||||
if (!procDir.canRead())
|
||||
throw new Exception(FAILED_WITH_SECURITY);
|
||||
throw new Exception(IServiceConstants.FAILED_WITH_SECURITY);
|
||||
|
||||
// list all subdirectories of /proc
|
||||
File[] processes;
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.rse.services.clientserver.processes.ISystemProcessRemoteConst
|
|||
/**
|
||||
* @author mjberger
|
||||
*/
|
||||
public class UniversalServerProcessImpl implements IRemoteServerProcess, IServiceConstants
|
||||
public class UniversalServerProcessImpl implements IRemoteServerProcess
|
||||
{
|
||||
protected Object[] _properties = new Object[ISystemProcessRemoteConstants.PROCESS_ATTRIBUTES_COUNT+1];
|
||||
|
||||
|
@ -175,7 +175,7 @@ public class UniversalServerProcessImpl implements IRemoteServerProcess, IServic
|
|||
|
||||
if (s != null && s.length() > 0)
|
||||
{
|
||||
String[] str = s.split("\\"+TOKEN_SEPARATOR); //$NON-NLS-1$
|
||||
String[] str = s.split("\\"+IServiceConstants.TOKEN_SEPARATOR); //$NON-NLS-1$
|
||||
int numOfExpectedTokens = ISystemProcessRemoteConstants.PROCESS_ATTRIBUTES_COUNT;
|
||||
int tokens = str.length;
|
||||
if (tokens == numOfExpectedTokens)
|
||||
|
@ -286,7 +286,7 @@ public class UniversalServerProcessImpl implements IRemoteServerProcess, IServic
|
|||
{
|
||||
properties = properties + _properties[i].toString();
|
||||
if (i != ISystemProcessRemoteConstants.PROCESS_ATTRIBUTES_COUNT - 1)
|
||||
properties = properties + TOKEN_SEPARATOR;
|
||||
properties = properties + IServiceConstants.TOKEN_SEPARATOR;
|
||||
}
|
||||
return properties;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.eclipse.rse.services.clientserver.IServiceConstants;
|
|||
import org.eclipse.rse.services.clientserver.processes.IHostProcess;
|
||||
import org.eclipse.rse.services.clientserver.processes.ISystemProcessRemoteConstants;
|
||||
|
||||
public class AbstractHostProcess implements IHostProcess, IServiceConstants
|
||||
public class AbstractHostProcess implements IHostProcess
|
||||
{
|
||||
protected Object[] _properties = new Object[ISystemProcessRemoteConstants.PROCESS_ATTRIBUTES_COUNT+1];
|
||||
|
||||
|
@ -179,7 +179,7 @@ public class AbstractHostProcess implements IHostProcess, IServiceConstants
|
|||
|
||||
if (s != null && s.length() > 0)
|
||||
{
|
||||
String[] str = s.split("\\"+TOKEN_SEPARATOR); //$NON-NLS-1$
|
||||
String[] str = s.split("\\"+IServiceConstants.TOKEN_SEPARATOR); //$NON-NLS-1$
|
||||
int numOfExpectedTokens = ISystemProcessRemoteConstants.PROCESS_ATTRIBUTES_COUNT;
|
||||
int tokens = str.length;
|
||||
if (tokens == numOfExpectedTokens)
|
||||
|
@ -292,7 +292,7 @@ public class AbstractHostProcess implements IHostProcess, IServiceConstants
|
|||
{
|
||||
properties = properties + _properties[i].toString();
|
||||
if (i != ISystemProcessRemoteConstants.PROCESS_ATTRIBUTES_COUNT - 1)
|
||||
properties = properties + TOKEN_SEPARATOR;
|
||||
properties = properties + IServiceConstants.TOKEN_SEPARATOR;
|
||||
}
|
||||
return properties;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue