Package com.google.eclipse.protobuf.cdt.mapping

Examples of com.google.eclipse.protobuf.cdt.mapping.CppToProtobufMapping


  @Inject private ProtoFilePathFinder pathFinder;

  URI findProtobufElementLocationFromSelectionOf(IEditorPart editor) {
    IPath protoFilePath = pathFinder.findProtoFilePathIn(editor);
    if (protoFilePath != null) {
      CppToProtobufMapping mapping = mapper.createMappingFromSelectionOf(editor);
      if (mapping != null) {
        return protobufElementLocation(protoFilePath, editor, mapping);
      }
    }
    return null;
View Full Code Here


        IASTNodeSelector nodeSelector= ast.getNodeSelector(null);
        IASTNode selectedNode = nodeSelector.findEnclosingNode(offset, 1);
        if (selectedNode instanceof IASTName) {
          IASTName selectedName = (IASTName) selectedNode;
          IBinding binding = selectedName.resolveBinding();
          CppToProtobufMapping info = delegate.createMappingFrom(binding);
          mappingReference.set(info);
          return OK_STATUS;
        }
        return CANCEL_STATUS;
      }
View Full Code Here

TOP

Related Classes of com.google.eclipse.protobuf.cdt.mapping.CppToProtobufMapping

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.