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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/DartAnalysisPreferencePage.java

Issue 10837282: Issue 4518. Use inferred types to check if type of argumetn is assignable to the type of parameter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/ui/internal/preferences/DartAnalysisPreferencePage.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/DartAnalysisPreferencePage.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/DartAnalysisPreferencePage.java
index 5fe966af17ab8e898f39c49da26d485f0dc65f42..0576ed298f6fd2129c1186c4d42f0e7b81b0c0d3 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/DartAnalysisPreferencePage.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/DartAnalysisPreferencePage.java
@@ -53,7 +53,7 @@ public class DartAnalysisPreferencePage extends PreferencePage implements IWorkb
return checkBox;
}
- private Button memberWarningForInferredTypes_check;
+ private Button typeChecksForInferredTypes_check;
public DartAnalysisPreferencePage() {
setPreferenceStore(null);
@@ -68,8 +68,8 @@ public class DartAnalysisPreferencePage extends PreferencePage implements IWorkb
public boolean performOk() {
boolean hasChanges = false;
hasChanges |= applyCheck(
- DartCore.MEMBER_WARNING_FOR_INFERRED_TYPES,
- memberWarningForInferredTypes_check.getSelection(),
+ DartCore.TYPE_CHECKS_FOR_INFERRED_TYPES,
+ typeChecksForInferredTypes_check.getSelection(),
true);
if (hasChanges) {
Job job = new CleanLibrariesJob();
@@ -83,9 +83,9 @@ public class DartAnalysisPreferencePage extends PreferencePage implements IWorkb
Composite composite = new Composite(parent, SWT.NONE);
GridLayoutFactory.fillDefaults().spacing(0, 8).margins(0, 10).applyTo(composite);
// create UI
- memberWarningForInferredTypes_check = createCheckBox(
+ typeChecksForInferredTypes_check = createCheckBox(
composite,
- PreferencesMessages.DartAnalysisPreferencePage_memberWarningForInferredTypes,
+ PreferencesMessages.DartAnalysisPreferencePage_typeChecksForInferredTypes,
null);
// done
initFromPrefs();
@@ -94,8 +94,8 @@ public class DartAnalysisPreferencePage extends PreferencePage implements IWorkb
private void initFromPrefs() {
IEclipsePreferences prefs = DartCore.getPlugin().getPrefs();
- memberWarningForInferredTypes_check.setSelection(prefs.getBoolean(
- DartCore.MEMBER_WARNING_FOR_INFERRED_TYPES,
+ typeChecksForInferredTypes_check.setSelection(prefs.getBoolean(
+ DartCore.TYPE_CHECKS_FOR_INFERRED_TYPES,
true));
}

Powered by Google App Engine
This is Rietveld 408576698