Package com.opera.core.systems.scope.protos.UmsProtos

Examples of com.opera.core.systems.scope.protos.UmsProtos.Response


  }

  public Object callFunctionOnObject(String using, int objectId, boolean responseExpected) {
    Variable variable = buildVariable("locator", objectId);

    Response response = eval(using, variable);
    return responseExpected ? parseEvalReply(parseEvalData(response)) : null;
  }
View Full Code Here


  private ObjectList getObjectList(Integer id) {
    ExamineList.Builder examine = ExamineList.newBuilder();
    examine.setRuntimeID(getRuntimeId());
    examine.addObjectList(id);
    Response response = executeMessage(EcmascriptDebuggerMessage.EXAMINE_OBJECTS, examine);

    ObjectList.Builder builder = ObjectList.newBuilder();
    buildPayload(response, builder);
    return builder.build();
  }
View Full Code Here

    GetPrefArg.Builder getPrefBuilder = GetPrefArg.newBuilder();
    getPrefBuilder.setSection(section);
    getPrefBuilder.setKey(key);
    getPrefBuilder.setMode(mode);

    Response response = executeMessage(PrefsMessage.GET_PREF, getPrefBuilder);

    PrefValue.Builder prefValueBuilder = PrefValue.newBuilder();
    buildPayload(response, prefValueBuilder);
    PrefValue prefsString = prefValueBuilder.build();
View Full Code Here

    }
    if (section != null && !"".equals(section)) {
      listPrefBuilder.setSection(section);
    }

    Response response = executeMessage(PrefsMessage.LIST_PREFS, listPrefBuilder);

    PrefList.Builder prefListBuilder = PrefList.newBuilder();
    buildPayload(response, prefListBuilder);
    PrefList prefList = prefListBuilder.build();
View Full Code Here

    SetPrefArg.Builder setPrefBuilder = SetPrefArg.newBuilder();
    setPrefBuilder.setSection(section);
    setPrefBuilder.setKey(key);
    setPrefBuilder.setValue(value);

    Response response = executeMessage(PrefsMessage.SET_PREF, setPrefBuilder);

    if (response == null) {
      throw new ScopeException("Internal error while setting a preference");
    }
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.protos.UmsProtos.Response

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.