Bug 205276 - [compare] "compare with > each other" not available when one or both of the selection is a .class file
Summary: [compare] "compare with > each other" not available when one or both of the s...
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 207666 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-03 06:35 EDT by Ketan Padegaonkar CLA
Modified: 2019-09-06 16:04 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ketan Padegaonkar CLA 2007-10-03 06:35:53 EDT
Build ID: (3.3) I20070625-1500 

Steps To Reproduce:
1. Select a .class resource that has a source attached to it.
2. Select another java file (or .class file that has source attached to it)
3. Right click on the selection containing the two resources.
4. The "compare with" context menu is not available for this selection.

More information:
none.
Comment 1 Martin Aeschlimann CLA 2007-10-04 05:09:13 EDT
The compare with each other action is from platform search and seems to require IFile. Class files are in archives and we could provide source.

Moving to platform search for comments
Comment 2 Martin Aeschlimann CLA 2007-10-08 04:54:10 EDT
I meant "The 'compare with each other' action is from platform/compare..."
Comment 3 Tomasz Zarna CLA 2007-10-08 04:57:45 EDT
Ketan, are the .class resources you're trying to compare located in archives (jars)? What do you think should happen when of the files does not have a source attached?
Comment 4 Ketan Padegaonkar CLA 2007-10-08 05:09:02 EDT
(In reply to comment #3)
> Ketan, are the .class resources you're trying to compare located in archives
> (jars)? What do you think should happen when of the files does not have a
> source attached?

Tomasz,
Yes, the .class resources I'm comparing are inside jar files. I'm trying to compare the sources of some classes in eclipse plugins, with some plugins that I have in my workspace.

I feel that the comparison mechanism should be intelligent enough to decide when comparison should work. If there's source attached to a .class file, it should use that source, else it should not display itself.

I think the problem is mostly because the filter for the "compare with" contribution deals works with multiple IFiles; but not on an IClass/whatever and an IFile or two IClass(es)/whatever.
Comment 5 Tomasz Zarna CLA 2008-01-04 09:40:58 EST
*** Bug 207666 has been marked as a duplicate of this bug. ***
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:04:34 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.