Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/EditorAccessHighlighter.java2
-rw-r--r--org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/MarkerHighlighter.java2
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceRefactoring.java2
-rw-r--r--org.eclipse.ui.genericeditor.examples/src/org/eclipse/ui/genericeditor/examples/dotproject/HighlightStrategy.java2
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultWordHighlightStrategy.java2
5 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/EditorAccessHighlighter.java b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/EditorAccessHighlighter.java
index 177f0fd66..06e90816d 100644
--- a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/EditorAccessHighlighter.java
+++ b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/EditorAccessHighlighter.java
@@ -191,7 +191,7 @@ public class EditorAccessHighlighter extends Highlighter {
}
if (document != null && document.equals(textBuffer.getDocument())) {
- Match[] matches= new Match[fMatchesToAnnotations.keySet().size()];
+ Match[] matches= new Match[fMatchesToAnnotations.size()];
fMatchesToAnnotations.keySet().toArray(matches);
removeAll();
addHighlights(matches);
diff --git a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/MarkerHighlighter.java b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/MarkerHighlighter.java
index bda8a0b83..a09950514 100644
--- a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/MarkerHighlighter.java
+++ b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text/MarkerHighlighter.java
@@ -115,7 +115,7 @@ public class MarkerHighlighter extends Highlighter {
protected void handleContentReplaced(IFileBuffer buffer) {
if (!buffer.getLocation().equals(fFile.getFullPath()))
return;
- Match[] matches= new Match[fMatchesToAnnotations.keySet().size()];
+ Match[] matches= new Match[fMatchesToAnnotations.size()];
fMatchesToAnnotations.keySet().toArray(matches);
removeAll();
addHighlights(matches);
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceRefactoring.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceRefactoring.java
index ad1ab219f..de099fdac 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceRefactoring.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceRefactoring.java
@@ -260,7 +260,7 @@ public class ReplaceRefactoring extends Refactoring {
}
public int getNumberOfFiles() {
- return fMatches.keySet().size();
+ return fMatches.size();
}
public int getNumberOfMatches() {
diff --git a/org.eclipse.ui.genericeditor.examples/src/org/eclipse/ui/genericeditor/examples/dotproject/HighlightStrategy.java b/org.eclipse.ui.genericeditor.examples/src/org/eclipse/ui/genericeditor/examples/dotproject/HighlightStrategy.java
index 3d43e9964..46922c78d 100644
--- a/org.eclipse.ui.genericeditor.examples/src/org/eclipse/ui/genericeditor/examples/dotproject/HighlightStrategy.java
+++ b/org.eclipse.ui.genericeditor.examples/src/org/eclipse/ui/genericeditor/examples/dotproject/HighlightStrategy.java
@@ -105,7 +105,7 @@ public class HighlightStrategy implements IReconcilingStrategy, IReconcilingStra
annotationModel.addAnnotation(mapEntry.getKey(), mapEntry.getValue());
}
}
- fOccurrenceAnnotations = annotationMap.keySet().toArray(new Annotation[annotationMap.keySet().size()]);
+ fOccurrenceAnnotations = annotationMap.keySet().toArray(new Annotation[annotationMap.size()]);
}
}
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultWordHighlightStrategy.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultWordHighlightStrategy.java
index f7385d781..517422c32 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultWordHighlightStrategy.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultWordHighlightStrategy.java
@@ -117,7 +117,7 @@ public class DefaultWordHighlightStrategy implements IReconcilingStrategy, IReco
annotationModel.addAnnotation(mapEntry.getKey(), mapEntry.getValue());
}
}
- fOccurrenceAnnotations = annotationMap.keySet().toArray(new Annotation[annotationMap.keySet().size()]);
+ fOccurrenceAnnotations = annotationMap.keySet().toArray(new Annotation[annotationMap.size()]);
}
} else {
fOccurrenceAnnotations = null;

Back to the top