Added Win32 Refresh only commands and Disable Status command
This commit is contained in:
@@ -107,6 +107,15 @@ public class BaseCommand {
|
||||
WIN_XML = WindowsEnumeratedXml.getXml();
|
||||
LAST_UPDATED_XML = System.nanoTime();
|
||||
}
|
||||
|
||||
public void forceWin32OnlyXmlRefresh() {
|
||||
WIN_XML = WindowsEnumeratedXml.getWin32Xml();
|
||||
LAST_UPDATED_XML = System.nanoTime();
|
||||
}
|
||||
|
||||
public void onlyRefreshWin32(boolean flg) {
|
||||
SynthuseDlg.config.disableUiaBridge = flg + "";
|
||||
}
|
||||
|
||||
public void targetXmlRefresh(String xpath) {
|
||||
if (WIN_XML.isEmpty()) //can't target refresh unless there is XML to start with
|
||||
|
||||
@@ -76,6 +76,21 @@ public class MainCommands extends BaseCommand {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean cmdForceWin32Refresh(String[] args) {
|
||||
if (!checkArgumentLength(args, 0))
|
||||
return false;
|
||||
forceWin32OnlyXmlRefresh();
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean cmdOnlyRefreshWin32(String[] args) {
|
||||
if (!checkArgumentLength(args, 1))
|
||||
return false;
|
||||
boolean flg = Boolean.parseBoolean(args[0]);
|
||||
onlyRefreshWin32(flg);
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean cmdTargetRefresh(String[] args) {
|
||||
if (!checkArgumentLength(args, 1))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user