Fixed icon for "Remove duplicate package declaration" quick fix.
diff --git a/com.google.eclipse.protobuf.ui/icons/remove.gif b/com.google.eclipse.protobuf.ui/icons/remove.gif
new file mode 100644
index 0000000..64b4384
--- /dev/null
+++ b/com.google.eclipse.protobuf.ui/icons/remove.gif
Binary files differ
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/quickfix/ProtobufQuickfixProvider.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/quickfix/ProtobufQuickfixProvider.java
index 339a775..d146027 100644
--- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/quickfix/ProtobufQuickfixProvider.java
+++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/quickfix/ProtobufQuickfixProvider.java
@@ -58,13 +58,13 @@
@Fix(MORE_THAN_ONE_PACKAGE_ERROR)
public void removeDuplicatePackage(Issue issue, IssueResolutionAcceptor acceptor) {
- String image = images.imageFor(Package.class);
- acceptor.accept(issue, removeDuplicatePackageLabel, removeDuplicatePackage, image, new ISemanticModification() {
- @Override public void apply(EObject element, IModificationContext context) throws Exception {
- if (!(element instanceof Package)) return;
- Package aPackage = (Package) element;
- remove(aPackage);
- }
- });
+ acceptor.accept(issue, removeDuplicatePackageLabel, removeDuplicatePackage, "remove.gif",
+ new ISemanticModification() {
+ @Override public void apply(EObject element, IModificationContext context) throws Exception {
+ if (!(element instanceof Package)) return;
+ Package aPackage = (Package) element;
+ remove(aPackage);
+ }
+ });
}
}