Bug 293471 - Pressing 'Next Annotation' changes originally selected occurrences
Summary: Pressing 'Next Annotation' changes originally selected occurrences
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 12:44 EDT by Michael Rennie CLA
Modified: 2019-09-06 15:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2009-10-27 12:44:28 EDT
I20091027-0100

With occurrences support turned on in the Ant editor if you have an occurrence 
selected and then hit 'Next Annotation', which takes you to an occurrence that is part of a token the selection / occurrences are changed to that complete token.

Steps:

1. use the sample build file below

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="Foo" name="Testing">
    <path id="Testing.classpath">
        <path refid="Plug-in Dependencies.libraryclasspath"/>
        <pathelement location="bin"/>
    </path>
    <target name="Foo">
        <java classname="Foo" failonerror="true" fork="yes">
            <classpath refid="Testing.classpath"/>
        </java>
    </target>
    <target name="Test">
        <java classname="Test" failonerror="true" fork="yes">
            <jvmarg line="-Xmx16m"/>
            <classpath refid="Testing.classpath"/>
        </java>
    </target>
    <target name="HitCountLooper">
        <java classname="HitCountLooper" failonerror="true" fork="yes">
            <classpath refid="Testing.classpath"/>
        </java>
    </target>
</project>

2. turn on mark occurrences in the Ant editor
3. add occurrences to the 'Next Annotation' command (via the drop-down on the toolbar or the Annotation preference page)
4. select "Test" in the buildfile on this line: "<java classname="Test" failonerror="true" fork="yes">"
5. all occurrences of "Test" are highlighted (OK)
6. press the 'Next Annotation' button (or hit Ctrl+.)
7. The occurrence of "Test" in this line will be highlighted: "<classpath refid="Testing.classpath"/>". Immediately following that though the occurrence selection will expand to "Testing.classpath" and all occurrences of "Testing.classpath" will be highlighted (BAD)

I would expect that on step 7 the selected occurrences would stay "Test" and not be changed.
Comment 1 Eclipse Webmaster CLA 2019-09-06 15:30:25 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.