commit | 37af1d566eef3abe927e7896a3df8a6b748d4c07 | [log] [tgz] |
---|---|---|
author | Stephan Herrmann <stephan@cs.tu-berlin.de> | Tue Oct 04 20:50:27 2011 +0000 |
committer | Stephan Herrmann <stephan@cs.tu-berlin.de> | Tue Oct 04 20:50:27 2011 +0000 |
tree | 10539684b332052b09e396be6c63812898d99074 | |
parent | 3199b0cbfb714603284603722194c31fb979cc91 [diff] |
Fix for Bug 348574 - [quickfix] implement abstract methods from tsuper
diff --git a/plugins/org.eclipse.objectteams.otdt.jdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/assist/OTQuickFixes.java b/plugins/org.eclipse.objectteams.otdt.jdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/assist/OTQuickFixes.java index 7f285c4..9d2bc89 100644 --- a/plugins/org.eclipse.objectteams.otdt.jdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/assist/OTQuickFixes.java +++ b/plugins/org.eclipse.objectteams.otdt.jdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/assist/OTQuickFixes.java
@@ -581,7 +581,17 @@ return Modifier.PUBLIC; } return vis; - } + } + protectedRun <- replace addAbstractMethodProposals; + + @SuppressWarnings("basecall") + static callin void protectedRun() { + try { + base.protectedRun(); + } catch (ClassCastException cce) { + // this one is excepted, base method may try to located abstract method but finds RoleTypeDeclaration + } + } } /** Interpret some flags with knowledge of OT/J: */