Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 404566 - Add tie-breaking to editorInfoProvider extension point.
Summary: Add tie-breaking to editorInfoProvider extension point.
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 6.0.6   Edit
Assignee: Chris Recoskie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-28 10:52 EDT by Mike Kucera CLA
Modified: 2013-04-11 11:08 EDT (History)
2 users (show)

See Also:


Attachments
patch (5.04 KB, patch)
2013-03-28 11:00 EDT, Mike Kucera CLA
recoskie: iplog+
Details | Diff
Fix to previous patch (564 bytes, patch)
2013-04-11 10:56 EDT, Mike Kucera CLA
recoskie: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kucera CLA 2013-03-28 10:52:44 EDT

    
Comment 1 Mike Kucera CLA 2013-03-28 11:00:57 EDT
Created attachment 229159 [details]
patch
Comment 2 Chris Recoskie CLA 2013-04-02 12:48:12 EDT
Patch applied to ptp_6_0 and master.
Comment 3 Mike Kucera CLA 2013-04-11 10:55:22 EDT
There's a mistake in my patch, the tie breaking code doesn't do the right thing. Its a dumb mistake on my part so I apologize. In RemoteCInfoProviderUtilities.getApplicableEditorInfoProvider() the local variable highestVal never gets updated so the last provider in the list always wins.
Comment 4 Mike Kucera CLA 2013-04-11 10:56:02 EDT
Created attachment 229623 [details]
Fix to previous patch
Comment 5 Chris Recoskie CLA 2013-04-11 11:08:02 EDT
Committed your additional fix.