Package com.google.eclipse.protobuf.protobuf

Examples of com.google.eclipse.protobuf.protobuf.Stream


    if (model instanceof Rpc) {
      Rpc rpc = (Rpc) model;
      scope = scopeProvider().potentialMessagesFor(rpc);
    }
    if (model instanceof Stream) {
      Stream stream = (Stream) model;
      scope = scopeProvider().potentialMessagesFor(stream);
    }
    for (IEObjectDescription d : descriptionChooser.shortestQualifiedNamesIn(scope)) {
      Image image = imageHelper.getImage(images.imageFor(d.getEObjectOrProxy()));
      proposeAndAccept(d, image, context, acceptor);
View Full Code Here


  //
  // service PersonService {
  //   stream PersonStream (Person, Type);
  // }
  @Test public void should_return_label_for_stream() {
    Stream stream = xtext.findFirst(Stream.class);
    Object label = labels.labelFor(stream);
    assertThat(label, instanceOf(StyledString.class));
    StyledString labelText = (StyledString) label;
    assertThat(labelText.getString(), equalTo("PersonStream (Person, Type)"));
  }
View Full Code Here

  //
  // service PersonService {
  //   stream PersonStream (Person, Type);
  // }
  @Test public void should_return_label_for_stream_with_unresolved_client_message() {
    Stream stream = xtext.findFirst(Stream.class);
    Object label = labels.labelFor(stream);
    assertThat(label, instanceOf(StyledString.class));
    StyledString labelText = (StyledString) label;
    assertThat(labelText.getString(), equalTo("PersonStream (<unresolved>, Type)"));
  }
View Full Code Here

  //
  // service PersonService {
  //   stream PersonStream (Person, Type);
  // }
  @Test public void should_return_label_for_stream_with_unresolved_server_message() {
    Stream stream = xtext.findFirst(Stream.class);
    Object label = labels.labelFor(stream);
    assertThat(label, instanceOf(StyledString.class));
    StyledString labelText = (StyledString) label;
    assertThat(labelText.getString(), equalTo("PersonStream (Person, <unresolved>)"));
  }
View Full Code Here

  //
  // service PersonService {
  //   stream PersonStream (Person, Type);
  // }
  @Test public void should_return_image_for_stream() {
    Stream stream = xtext.findFirst(Stream.class);
    String image = images.imageFor(stream);
    assertThat(image, equalTo("stream.gif"));
    assertThat(image, existsInProject());
  }
View Full Code Here

    if (o instanceof Rpc) {
      Rpc rpc = (Rpc) o;
      return labelFor(rpc);
    }
    if (o instanceof Stream) {
      Stream stream = (Stream) o;
      return labelFor(stream);
    }
    if (o instanceof TypeExtension) {
      TypeExtension extension = (TypeExtension) o;
      return labelFor(extension);
View Full Code Here

TOP

Related Classes of com.google.eclipse.protobuf.protobuf.Stream

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.