Package com.google.eclipse.protobuf.protobuf

Examples of com.google.eclipse.protobuf.protobuf.NativeOption


  // syntax = "proto2";
  //
  // option optimize_for = SPEED;
  @Test public void should_return_label_for_native_option() {
    NativeOption option = xtext.find("optimize_for", NativeOption.class);
    Object label = labels.labelFor(option);
    assertThat(label, instanceOf(String.class));
    String labelText = (String) label;
    assertThat(labelText, equalTo("optimize_for"));
  }
View Full Code Here


    }
  }

  @Override public void completeNativeOption_Value(EObject model, Assignment assignment,
      ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    NativeOption option = (NativeOption) model;
    MessageField optionSource = (MessageField) options.rootSourceOf(option);
    if (optionSource == null) {
      return;
    }
    ProtoDescriptor descriptor = descriptorProvider.primaryDescriptor();
View Full Code Here

  // syntax = "proto2";
  //
  // option optimize_for = SPEED;
  @Test public void should_return_image_for_native_option() {
    NativeOption option = xtext.find("optimize_for", NativeOption.class);
    String image = images.imageFor(option);
    assertThat(image, equalTo("option.gif"));
    assertThat(image, existsInProject());
  }
View Full Code Here

TOP

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

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.