Skip to content

Commit

Permalink
Fix Occurences marking
Browse files Browse the repository at this point in the history
  • Loading branch information
ssharks committed Oct 5, 2014
1 parent b9e8514 commit 54e1733
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
Binary file added src/icons/searchm_obj.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 2 additions & 19 deletions src/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@
point="org.eclipse.ui.editors.markerAnnotationSpecification">
<specification
annotationType="net.sourceforge.veditor.occurrences"
label="%OccurrenceAnnotation.label"
icon="$nl$/icons/full/obj16/searchm_obj.gif"
label="Occurrence (Veditor)"
icon="$nl$/icons/searchm_obj.gif"
textPreferenceKey="occurrenceIndication"
textPreferenceValue="false"
highlightPreferenceKey="occurrenceHighlighting"
Expand All @@ -496,23 +496,6 @@
textStylePreferenceKey="occurrenceTextStyle"
textStylePreferenceValue="NONE">
</specification>
<specification
annotationType="net.sourceforge.veditor.occurrences.write"
label="%WriteOccurrenceAnnotation.label"
textPreferenceKey="writeOccurrenceIndication"
textPreferenceValue="false"
highlightPreferenceKey="writeOccurrenceHighlighting"
highlightPreferenceValue="true"
overviewRulerPreferenceKey="writeOccurrenceIndicationInOverviewRuler"
overviewRulerPreferenceValue="true"
verticalRulerPreferenceKey="writeOccurrenceIndicationInVerticalRuler"
verticalRulerPreferenceValue="false"
colorPreferenceKey="writeOccurrenceIndicationColor"
colorPreferenceValue="240,216,168"
presentationLayer="4"
textStylePreferenceKey="writeOccurrenceTextStyle"
textStylePreferenceValue="NONE">
</specification>
</extension>

</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void selectionChanged(SelectionChangedEvent event) {
// for single finds do not highlight
if ((findList.size() > 1) && (findList.size() < maxHits)) {
for (int i=0;i < findList.size(); i++) {
Annotation annotation = new Annotation( "org.eclipse.jdt.ui.occurrences", false, "Description" );
Annotation annotation = new Annotation( "net.sourceforge.veditor.occurrences", false, "Description" );
model.addAnnotation( annotation, new Position( findList.get(i), textSelection.getLength() ) );
annotationArray.add(annotation);
}
Expand Down

0 comments on commit 54e1733

Please sign in to comment.