Call this in {@link org.microg.nlp.api.LocationBackendService#onOpen()}.
180326
public synchronized void onOpen() {
        if (state == State.WAITING || state == State.SCANNING)
            throw new IllegalStateException("Do not call onOpen if not closed before");
        currentDataUsed = true;
        state = State.WAITING;
    }
473809
@OnOpen
    public void onOpen(Session session)
    {
        logger.info("WebSocket connected. : SessionId={}", session.getId());
        AmLogServerAdapter.getInstance().onOpen(session);
    }
1271107
private void adaptHint() {
        if (textInputLayout != null) {
            textInputLayout.setHint(hint);
        } else if (editText != null) {
            editText.setHint(hint);
        }
    }
301281
public void setNoLocal(boolean noLocal)
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "setNoLocal", new Boolean(noLocal));

    this.noLocal = noLocal;

    if (tc.isEntryEnabled())
      SibTr.exit(tc, "setNoLocal");
  }
687773
function ( ) {
			if ( ! options.exist ) {
				// http request to Nominatim to performs the Geocoding of the pin.
				// To avoid to much call to Nominatim with the same position,
				// the call is only performed when it's a new pin
				var NominatimUrl = 
					'http://nominatim.openstreetmap.org/reverse?format=json&lat=' +
					latlng.lat +
					'&lon=' +
					latlng.lng +
					'&zoom=' +
					Map.getZoom ( ) +
					'&addressdetails=1&accept-language=' +
					_Translator.UserLanguage +
					'&osm_type=W';
				var XmlHttpRequest = new XMLHttpRequest ( );
				XmlHttpRequest.onreadystatechange = function ( ) { 
					if ( XmlHttpRequest.readyState == 4 && XmlHttpRequest.status == 200 ) {
						_NominatimCallback ( XmlHttpRequest.responseText );
					}
				};  
				XmlHttpRequest.open ( "GET", NominatimUrl, true );
				XmlHttpRequest.send ( null );
			}
		}
108879
function(pos){
		var pos0 = this.cursor.getaddr();
		this.cursor.setaddr(pos);
		pos0.draw();
		pos.draw();
	}
1319641
def onOpen(self):
        
        self.factory.add_client(self)

        # Publish ON_OPEN message
        self.factory.mease.publisher.publish(
            message_type=ON_OPEN, client_id=self._client_id, client_storage=self.storage)
1148488
public void setLon(final int LON_DEG, final int LON_MIN, final int LON_SEC) {
        this.lon = convert(LON_DEG, LON_MIN, LON_SEC);
        this.LOCATION.setLocation(this.lat, this.lon);
        adjustDirection();
    }
35481
@Override
	public void onSelectLocation(SelectLocationEvent event) {
		mapPresenter.getViewPort().applyBounds(event.getBbox());
		geocoderWidgetView.setValue(event.getCanonicalLocation());
	}
1046680
public void markText(String text, int startLineno, int startCharno,
      int endLineno, int endCharno) {
    if (currentMarker != null) {
      JSDocInfo.StringPosition position = new JSDocInfo.StringPosition();
      position.setItem(text);
      position.setPositionInformation(startLineno, startCharno,
          endLineno, endCharno);
      currentMarker.setDescription(position);
    }
  }
1311636
public void addLocation(TaintLocation location, boolean isKnownTaintSource) {
        Objects.requireNonNull(location, "location is null");
        if (isKnownTaintSource) {
            taintLocations.add(location);
        } else {
            unknownLocations.add(location);
        }
    }
1238517
public final void setLocation(String loc) {
        if (location == null && loc == null) {
            // no unnecessary property creation if everything is null
            return;
        }
        locationProperty().set(loc);
    }
424691
public T setOpenTagLocation(SourceLocation location) {
    checkState(openTagLocation == null);
    this.openTagLocation = checkNotNull(location);
    return (T) this;
  }
24287
public void onOpenDocument(PdfWriter writer, Document document) {
		PdfPageEvent event;
		for (Iterator i = events.iterator(); i.hasNext(); ) {
			event = (PdfPageEvent)i.next();
			event.onOpenDocument(writer, document);
		}
	}
1141881
function (place, map) {
            // default callback
            if (!place.geometry) {
                alert("Location not found");
                return;
            }
            map.panTo([
                place.geometry.location.lat(),
                place.geometry.location.lng()
            ]);

        }
185772
public void setTickLabelLocation(final TickLabelLocation LOCATION) {
        if (null == tickLabelLocation) {
            _tickLabelLocation = LOCATION;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            tickLabelLocation.set(LOCATION);
        }
    }
1022749
private void addToUseIfLocal(String name, Node node, ReachingUses use) {
    Var var = allVarsInFn.get(name);
    if (var == null) {
      return;
    }
    if (!escaped.contains(var)) {
      use.mayUseMap.put(var, node);
    }
  }