public class ScopeDesktopUtils extends AbstractService implements DesktopUtils
servicesSERVICE_NAME| Constructor and Description |
|---|
ScopeDesktopUtils(ScopeServices services) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCachePreferencesPath() |
String |
getLargePreferencesPath() |
String |
getOperaPath() |
int |
getOperaPid()
Gets process id of connected Opera instance.
|
String |
getSmallPreferencesPath() |
String |
getString(String enumText,
boolean stripAmpersand)
Gets the string specified by the given string id.
|
String |
getSubstitutedString(String[] args,
boolean stripAmpersand)
Fetches a translated string fetched basing on a string id and substitutes the printf formatters
in it.
|
void |
init()
Initialize the service.
|
String |
removeCR(String text)
Used to stop problems comparing strings that have just \n with those with \r\n.
|
buildPayload, executeMessage, executeMessage, executeMessage, getServiceName, getServiceVersion, isVersionInRange, sleep, toString, xpathIterator, xpathPointerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetServiceName, getServiceVersionpublic ScopeDesktopUtils(ScopeServices services)
public void init()
Servicepublic String getString(String enumText, boolean stripAmpersand)
DesktopUtilsgetString in interface DesktopUtilspublic String getSubstitutedString(String[] args, boolean stripAmpersand)
getSubstitutedString in interface DesktopUtilsargs - an array containing the printf substitution arguments, all of string
type, and the string id as the first elementstripAmpersand - whether to strip the "&" character from the fetched stringpublic String removeCR(String text)
DesktopUtilsremoveCR in interface DesktopUtilstext - to remove the \r's frompublic String getOperaPath()
getOperaPath in interface DesktopUtilspublic String getLargePreferencesPath()
getLargePreferencesPath in interface DesktopUtilspublic String getSmallPreferencesPath()
getSmallPreferencesPath in interface DesktopUtilspublic String getCachePreferencesPath()
getCachePreferencesPath in interface DesktopUtilspublic int getOperaPid()
DesktopUtilsgetOperaPid in interface DesktopUtilsCopyright © 2012. All Rights Reserved.