Package com.google.eclipse.protobuf.protobuf

Examples of com.google.eclipse.protobuf.protobuf.Syntax


    assertThat(image, existsInProject());
  }

  // syntax = "proto2";
  @Test public void should_return_image_for_syntax() {
    Syntax syntax = xtext.findFirst(Syntax.class);
    String image = images.imageFor(syntax);
    assertThat(image, equalTo("syntax.gif"));
    assertThat(image, existsInProject());
  }
View Full Code Here


  @Fix(SYNTAX_IS_NOT_PROTO2_ERROR)
  public void changeSyntaxToProto2(Issue issue, IssueResolutionAcceptor acceptor) {
    ISemanticModification modification = new ISemanticModification() {
      @Override public void apply(EObject element, IModificationContext context) throws Exception {
        Syntax syntax = (Syntax) element;
        syntax.setName(proto2());
      }
    };
    String description = String.format(changeValueDescription, "syntax", quote(proto2()));
    String label = String.format(changeValueLabel, proto2());
    acceptor.accept(issue, label, description, ICON_FOR_CHANGE, modification);
View Full Code Here

TOP

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

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.