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

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

Issue 9834028: Initial implementation of "Rename Local Variable" refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: LInked/inline mode for rename Created 8 years, 9 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/reorg/IReorgDestinationValidator.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/reorg/IReorgDestinationValidator.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/reorg/IReorgDestinationValidator.java
new file mode 100644
index 0000000000000000000000000000000000000000..9db6305a06ba08f40e77847e1b619797f1319dc7
--- /dev/null
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/reorg/IReorgDestinationValidator.java
@@ -0,0 +1,20 @@
+package com.google.dart.tools.internal.corext.refactoring.reorg;
+
+public interface IReorgDestinationValidator {
+
+ /**
+ * Is it possible, that destination contains valid destinations as children?
+ *
+ * @param destination the destination to verify
+ * @return true if destination can have valid destinations
+ */
+ public boolean canChildrenBeDestinations(IReorgDestination destination);
+
+ /**
+ * Is it possible, that the given kind of destination is a target for the reorg?
+ *
+ * @param destination the destination to verify
+ * @return true if possible
+ */
+ public boolean canElementBeDestination(IReorgDestination destination);
+}

Powered by Google App Engine
This is Rietveld 408576698