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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java

Issue 545023002: Generate setters for RefactoringOptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractMethodOptions.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java
index d24d11690af6476fb8ba8e62453509d0259ccba3..1e81773287aac0150354dc24499e3c4a9e695252 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java
@@ -44,14 +44,14 @@ public class ExtractLocalVariableOptions extends RefactoringOptions {
/**
* The name that the local variable should be given.
*/
- private final String name;
+ private String name;
/**
* True if all occurrences of the expression within the scope in which the variable will be defined
* should be replaced by a reference to the local variable. The expression used to initiate the
* refactoring will always be replaced.
*/
- private final boolean extractAll;
+ private boolean extractAll;
/**
* Constructor for {@link ExtractLocalVariableOptions}.
@@ -114,6 +114,22 @@ public class ExtractLocalVariableOptions extends RefactoringOptions {
return builder.toHashCode();
}
+ /**
+ * True if all occurrences of the expression within the scope in which the variable will be defined
+ * should be replaced by a reference to the local variable. The expression used to initiate the
+ * refactoring will always be replaced.
+ */
+ public void setExtractAll(boolean extractAll) {
+ this.extractAll = extractAll;
+ }
+
+ /**
+ * The name that the local variable should be given.
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
public JsonObject toJson() {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("name", name);
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractMethodOptions.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698