Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1007)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/ExecutionUtils.java

Issue 10916268: New 'Clean Up' to convert old optional parameters to the new optional named where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/ExecutionUtils.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/ExecutionUtils.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/ExecutionUtils.java
index f119a239d48877d440dd4858561dfb679fb518ca..03bc21d2a0cdfdc8e340e15fa414a3680706c15d 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/ExecutionUtils.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/ExecutionUtils.java
@@ -130,6 +130,17 @@ public class ExecutionUtils {
}
/**
+ * Runs given {@link RunnableEx} and re-throws any exceptions without declaring it.
+ */
+ public static void runRethrow(RunnableEx runnable) {
+ try {
+ runnable.run();
+ } catch (Throwable e) {
+ propagate(e);
+ }
+ }
+
+ /**
* Runs given {@link RunnableEx} and re-throws exceptions as {@link CoreException}.
*/
public static void runRethrowCore(RunnableEx runnable) throws CoreException {

Powered by Google App Engine
This is Rietveld 408576698