Waits until the window is updated, and then returns the window id of the window.

@param windowName - window to wait for shown event on
@return id of window
770815
public int waitForWindowUpdated(String windowName) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a window failed because Opera is not connected.");
    }

    return getScopeServices().waitForDesktopWindowUpdated(windowName,
                                                          OperaIntervals.WINDOW_EVENT_TIMEOUT
                                                              .getMs());
  }
1285227
private String getPropertyName(final String windowIdStr, final String fullAttributeName) {
        final String attributeName;
        if (this.nonNamespacedProperties.contains(fullAttributeName)) {
            attributeName = fullAttributeName;
        } else if (fullAttributeName.startsWith(windowIdStr)) {
            attributeName = fullAttributeName.substring(windowIdStr.length());
        } else {
            return null;
        }

        final String mappedPropertyName = this.attributeToPropertyMappings.get(attributeName);
        if (mappedPropertyName == null) {
            logger.warn(
                    "Attribute {} found that matches the portlet window ID but it is not listed in the propertyMappings or nonNamespacedProperties and will not be returned to the portlet",
                    attributeName);
            return null;
        }

        return mappedPropertyName;
    }
708883
function getSourceId(callback) {
    if (!callback)
        throw '"callback" parameter is mandatory.';
    if (sourceId)
        return callback(sourceId);
    screenCallback = callback;
    window.postMessage('get-sourceId', '*');
}
331510
public String getId(Widget widget) {

    Element element = widget.getElement();
    return getId(element);
  }
931492
function(id) {
        let instance;
        Object.keys(this.windows).forEach(key => {
            let window = this.windows[key];
            if(window.object.id === id){
                instance = window;
            }
        });
        return instance;
    }
886581
@Override
	public Option<Protos.FrameworkID> getFrameworkID() throws Exception {
		synchronized (startStopLock) {
			verifyIsRunning();

			Option<Protos.FrameworkID> frameworkID;
			byte[] value = frameworkIdInZooKeeper.getValue();
			if (value.length == 0) {
				frameworkID = Option.empty();
			} else {
				frameworkID = Option.apply(Protos.FrameworkID.newBuilder().setValue(new String(value,
					ConfigConstants.DEFAULT_CHARSET)).build());
			}

			return frameworkID;
		}
	}
1235705
@Override
  public void setName(String taskName) {
    registerCommandContextCloseListener();
    propertyChanged(NAME, this.name, taskName);
    this.name = taskName;
  }
1342793
protected String getResourceId(
            IPortletWindowId portletWindowId, final IPortalRequestInfo portalRequestInfo) {
        final IPortletRequestInfo portletRequestInfo =
                portalRequestInfo.getPortletRequestInfo(portletWindowId);
        if (portletRequestInfo == null) {
            return null;
        }

        return portletRequestInfo.getResourceId();
    }
1066622
public static String getInterfaceName(String uniqueName) {
        if (StringUtils.isEmpty(uniqueName)) {
            return uniqueName;
        }
        int index = uniqueName.indexOf(':');
        return index < 0 ? uniqueName : uniqueName.substring(0, index);
    }
1063613
public static Object waitForAppearanceInJNDI(final Context ctx, final String jndiName, long timeout) {
        while (timeout > 0) {
            try {
                Object result = ctx.lookup(jndiName);
                if (result != null) {
                    return result;
                }
            } catch (NameNotFoundException ignored) {
            } catch (NamingException ex) {
                throw new RuntimeException("Failed JNDI lookup for " + jndiName, ex);
            }

            try {
                Thread.sleep(10);
            } catch (InterruptedException ex2) {
                throw new RuntimeException("Interrupted while doing JNDI lookup for " + jndiName);
            }

            timeout -= 10;
        }

        return null;
    }
43774
public Object getName(String methodName) {
        if (getProxyBuilder().nameMappingClosure != null) {
            return getProxyBuilder().nameMappingClosure.call(methodName);
        }
        return methodName;
    }
862831
public int lookupBlockName(String blockName) {
        Integer blockNoWrapper = blockNameToNoMap.get(blockName.toUpperCase());
        if (blockNoWrapper == null) {
            return -1;
        }
        int blockNo = blockNoWrapper.intValue();
        return blockNo;
    }
842076
public static Timer getNamedTimer(String timerName) {
		return getNamedTimer(timerName, RECORD_ALL, Thread.currentThread()
				.getId());
	}
292162
public T getDynamic(String className) {
        for (T t : this)
            if (t.getClass().getName().equals(className))
                return t;
        return null;
    }
328290
public static String getChannelName(String eventName) {
        return eventName == null ? null : EVENT_PREFIX + eventName.split("\\.", 2)[0];
    }
1148059
public String getId()
  {
    String returnValue = _targetStream.getID();
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getId", returnValue);
    return returnValue;
  }
940625
private int findDynamicWindow(int c)
    {
    // supposedly faster to count down
        //for(int i = 0; i < NUMWINDOWS; i++) {
    for(int i = NUMWINDOWS - 1; i >= 0; --i) {
        if(inDynamicWindow(c, i)) {
        ++fTimeStamps[i];
                return i;
        }
    }
        
        return INVALIDWINDOW;
    }