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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java

Issue 304323004: Computers and services snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java
index 524bab792f22a3706f7e5ab84a21ce5d4184b9c4..f465ddb45875751b48992e8a5383ce89e9712ad3 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java
@@ -560,6 +560,17 @@ public class Context {
}
}
+ /**
+ * Specifies that all files in given folder should not be translated.
+ */
+ public void removeSourceFiles(File folder) {
+ Assert.isLegal(folder.exists(), "Folder '" + folder + "' does not exist.");
+ Assert.isLegal(folder.isDirectory(), "Folder '" + folder + "' is not a folder.");
+ folder = folder.getAbsoluteFile();
+ Collection<File> folderFiles = FileUtils.listFiles(folder, JAVA_EXTENSION, true);
+ sourceFiles.removeAll(folderFiles);
+ }
+
public void renameConstructor(ConstructorDeclaration node, String name) {
IMethodBinding binding = getConstructorBinding(node);
//

Powered by Google App Engine
This is Rietveld 408576698