@@ -0,0 +1,1316 @@
+/**%0A * %0A */%0Apackage com.thoughtworks.automation.orchestrion;%0A%0A/**%0A * Represents the Desktop.%0A * %0A */%0Apublic final class Desktop extends UIItemContainer %7B%0A%0A%09Desktop(int refId) %7B%0A%09%09super(refId);%0A%09%7D%0A%0A%09/**%0A%09 * Gets the current desktop.%0A%09 * %0A%09 * %0A%09 * @return current desktop%0A%09 * @throws Exception%0A%09 */%0A%09public static Desktop getCurrent() throws Exception %7B%0A%0A%09%09try %7B%0A%09%09%09int id = RemoteServer.instance().executeAndGetId(%22getdesktop%22, 0);%0A%09%09%09return new Desktop(id);%0A%09%09%7D catch (RefIdNotAvailableException e) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%0A%09/**%0A%09 * Gets all the icons which are available in the desktop%0A%09 * %0A%09 * @return list of icons if available, null otherwise%0A%09 * @throws Exception%0A%09 * @see ListItems%0A%09 */%0A%09public ListItems getIcons() throws Exception %7B%0A%09%09try %7B%0A%09%09%09int id = RemoteServer.instance().executeAndGetId(%22geticons%22,%0A%09%09%09%09%09getRefId());%0A%09%09%09return new ListItems(id);%0A%09%09%7D catch (RefIdNotAvailableException e) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%0A%09/**%0A%09 * Gets all the windows which are open in the desktop%0A%09 * %0A%09 * @return list of windows if available, null otherwise%0A%09 * @throws Exception%0A%09 */%0A%09public Windows getAllWindows() throws Exception %7B%0A%09%09try %7B%0A%09%09%09int id = RemoteServer.instance().executeAndGetId(%22getwindows%22,%0A%09%09%09%09%09getRefId());%0A%09%09%09return new Windows(id);%0A%09%09%7D catch (RefIdNotAvailableException e) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Support for Desktop