Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.mat.hprof/build.properties3
-rw-r--r--plugins/org.eclipse.mat.ui/src/org/eclipse/mat/ui/snapshot/panes/oql/contentAssist/ClassNameExtractor.java4
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/org.eclipse.mat.hprof/build.properties b/plugins/org.eclipse.mat.hprof/build.properties
index c87b7431..a26c7469 100644
--- a/plugins/org.eclipse.mat.hprof/build.properties
+++ b/plugins/org.eclipse.mat.hprof/build.properties
@@ -17,4 +17,5 @@ bin.includes = META-INF/,\
plugin.properties,\
schema/,\
.options,\
- icons/
+ icons/,\
+ reports/
diff --git a/plugins/org.eclipse.mat.ui/src/org/eclipse/mat/ui/snapshot/panes/oql/contentAssist/ClassNameExtractor.java b/plugins/org.eclipse.mat.ui/src/org/eclipse/mat/ui/snapshot/panes/oql/contentAssist/ClassNameExtractor.java
index d962749f..8bc6508a 100644
--- a/plugins/org.eclipse.mat.ui/src/org/eclipse/mat/ui/snapshot/panes/oql/contentAssist/ClassNameExtractor.java
+++ b/plugins/org.eclipse.mat.ui/src/org/eclipse/mat/ui/snapshot/panes/oql/contentAssist/ClassNameExtractor.java
@@ -45,9 +45,9 @@ public class ClassNameExtractor implements ContextExtractor
readChar = doc.getChar(pos);
pos--;
}
- while (pos >= 0 && readChar != ' ' && readChar != '\n');
+ while (pos >= 0 && readChar != ' ' && readChar != '\n' && readChar != '\r');
- if (readChar == ' ' || readChar == '\n')
+ if (readChar == ' ' || readChar == '\n' || readChar == '\r')
pos++;
return doc.get(pos + 1, currentPosition - 1 - pos);

Back to the top