commit | 5b3a78e51f7f84c6f4edf57b836a3810ba021193 | [log] [tgz] |
---|---|---|
author | Alex Ruiz <alruiz@google.com> | Sat Mar 10 01:35:09 2012 -0800 |
committer | Alex Ruiz <alruiz@google.com> | Sat Mar 10 01:35:09 2012 -0800 |
tree | 30083e0fb92e5228da85e24f00e0f0faf4ec272c | |
parent | f9f74f34a195d12e7b2ad1f1de05430eb0a9eb19 [diff] |
Fixed [Issue 210] semicolon being ignored.
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/commands/semicolon/SmartSemicolonHandler.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/commands/semicolon/SmartSemicolonHandler.java index 63fdb18..7d2155d 100644 --- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/commands/semicolon/SmartSemicolonHandler.java +++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/commands/semicolon/SmartSemicolonHandler.java
@@ -82,7 +82,7 @@ document.modify(new IUnitOfWork.Void<XtextResource>() { @Override public void process(XtextResource resource) { Protobuf root = resources.rootOf(resource); - if (!protobufs.isProto2(root)) { + if (!protobufs.isProto2(root) || !resource.getErrors().isEmpty()) { return; } int offset = styledTextAccess.caretOffset();