| 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);
|
| +}
|
|
|