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

Unified Diff: plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/VmResourceRef.java

Issue 7398023: Redesign UI for accurateness property of file (Closed) Base URL: https://chromedevtools.googlecode.com/svn/trunk
Patch Set: Created 9 years, 5 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: plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/VmResourceRef.java
diff --git a/plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/VmResourceRef.java b/plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/VmResourceRef.java
index 58cb123344bc37f1120cbd1960cd532d2318f7c9..9025fc8cdb836bfcdd1c2cbd680e8dde26112fbe 100644
--- a/plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/VmResourceRef.java
+++ b/plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/VmResourceRef.java
@@ -20,23 +20,23 @@ public abstract class VmResourceRef {
* A GoF Visitor interface for algebraic type {@link VmResourceRef}.
*/
public interface Visitor<R> {
- R visitInaccurate(ScriptNamePattern scriptNamePattern);
+ R visitRegExpBased(ScriptNamePattern scriptNamePattern);
R visitResourceId(VmResourceId resourceId);
}
- public static VmResourceRef forInaccurate(ScriptNamePattern scriptNamePattern) {
- return new ForInaccurate(scriptNamePattern);
+ public static VmResourceRef forRegExpBased(ScriptNamePattern scriptNamePattern) {
+ return new ForRegExpBased(scriptNamePattern);
}
- private static final class ForInaccurate extends VmResourceRef {
+ private static final class ForRegExpBased extends VmResourceRef {
private final ScriptNamePattern scriptNamePattern;
- ForInaccurate(ScriptNamePattern scriptNamePattern) {
+ ForRegExpBased(ScriptNamePattern scriptNamePattern) {
this.scriptNamePattern = scriptNamePattern;
}
@Override public <R> R accept(Visitor<R> visitor) {
- return visitor.visitInaccurate(scriptNamePattern);
+ return visitor.visitRegExpBased(scriptNamePattern);
}
@Override
@@ -44,7 +44,7 @@ public abstract class VmResourceRef {
if (obj == null || obj.getClass() != this.getClass()) {
return false;
}
- ForInaccurate that = (ForInaccurate) obj;
+ ForRegExpBased that = (ForRegExpBased) obj;
return this.scriptNamePattern.getJavaScriptRegExp().equals(
that.scriptNamePattern.getJavaScriptRegExp());
}

Powered by Google App Engine
This is Rietveld 408576698