Package com.google.eclipse.protobuf.protobuf

Examples of com.google.eclipse.protobuf.protobuf.Extensions


  //
  // message Type {
  //   extensions 1 to 10, 20 to 30, 100 to max;
  // }
  @Test public void should_return_label_for_extensions() {
    Extensions extensions = xtext.findFirst(Extensions.class);
    Object label = labels.labelFor(extensions);
    assertThat(label, instanceOf(String.class));
    String labelText = (String) label;
    assertThat(labelText, equalTo("1 > 10, 20 > 30, 100 > max"));
  }
View Full Code Here


  //
  // message Person {
  //   extensions 1 to 10;
  // }
  @Test public void should_return_image_for_extensions() {
    Extensions extensions = xtext.findFirst(Extensions.class);
    String image = images.imageFor(extensions);
    assertThat(image, equalTo("extensions.gif"));
    assertThat(image, existsInProject());
  }
View Full Code Here

    if (o instanceof AbstractOption) {
      AbstractOption option = (AbstractOption) o;
      return labelFor(option);
    }
    if (o instanceof Extensions) {
      Extensions extensions = (Extensions) o;
      return labelFor(extensions);
    }
    if (o instanceof Import) {
      Import anImport = (Import) o;
      return labelFor(anImport);
View Full Code Here

TOP

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

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.