How to compare 2 classes, with the diff tool?

I can't find the way to compare 2 classes with the diff tool,, although
I can see the "Compare Files" entry in the context menu "Compare/Merge/.
Whenever I open the menu, the entry is always grayed out.
Is this feature enabled yet?

Alain

5 comments
Comment actions Permalink

"Alain Ravet" <alain.ravet.list@wanadoo.be> wrote in message
news:bjfo2v$eh5$1@is.intellij.net...

I can't find the way to compare 2 classes with the diff tool,, although


There are 3 ways:
1. Select two files in Project View or Commander the select Compare/Merge |
Compare Files from context menu.
2. Open one file in editor and select a file in Project View/Commander then
use Compare/Merge | Merge File with Editor
3. Useful when classes you want to compare are nested or not alone in file.
Copy one class to clipboard then select other class in editor and use
Compare with Clipboard from editors context menu.

In all these cases editing and merging features are allowed for writable
files (clipboard content is read-only).

I can see the "Compare Files" entry in the context menu "Compare/Merge/.
Whenever I open the menu, the entry is always grayed out.
Is this feature enabled yet?


I think you've tried to use it when selecting one or more than two files.

>

Alain

>

--
Best regards,
Dmitry Peshehonov
JetBrains, Inc, http://www.intellij.com

"Develop with pleasure!"


0
Comment actions Permalink

Dmitry

Thanks. I was mislead by the wording in the menu : 'Compare' vs 'Merge'.
- Compare Files
- Merge File with editor.

AFAIK, now, they trigger the same action, depending on the context, and
"Merge" doesn't merge anything.

I think the 2nd entry should be captioned : "Compare File with Editor".
Actually, I even think the 2nd entry is pointless, and could be removed,
as it only makes sense when only 1 file is selected.


Suggestion :
1/ remove 2nd entry
2/
- if only 1 file is selected, caption the entry
"Compare File with editor"

- if 2 files are selected, caption the entry
"Compare 2 files"

- if 3+ files are selected,
"Compare 2 files"

Alain

0
Comment actions Permalink

"Alain Ravet" <alain.ravet.list@wanadoo.be> wrote in message
news:bjg6ke$c70$1@is.intellij.net...

Dmitry

>

Thanks. I was mislead by the wording in the menu : 'Compare' vs 'Merge'.
- Compare Files
- Merge File with editor.

>

AFAIK, now, they trigger the same action, depending on the context, and
"Merge" doesn't merge anything.

>

I think the 2nd entry should be captioned : "Compare File with Editor".
Actually, I even think the 2nd entry is pointless, and could be removed,
as it only makes sense when only 1 file is selected.

>
>

Suggestion :
1/ remove 2nd entry
2/
- if only 1 file is selected, caption the entry
"Compare File with editor"

>

- if 2 files are selected, caption the entry
"Compare 2 files"

>

- if 3+ files are selected,
"Compare 2 files"

>

Alain

>
Done in build #922.
With one difference: there still is context when both 'Compare Two Files'
and 'Compare with Editor' are sensible: two files selected in Commander.

--
Best regards,
Dmitry Peshehonov
JetBrains, Inc, http://www.intellij.com

"Develop with pleasure!"


0
Comment actions Permalink

Dmitry Peshehonov (JetBrains) wrote:

>Done in build #922.
>With one difference: there still is context when both 'Compare Two Files'
>and 'Compare with Editor' are sensible: two files selected in Commander.

>

Which of the 2 selected files would be compared with the editor?

Alain

0
Comment actions Permalink

"Alain Ravet" <alain.ravet.list@wanadoo.be> wrote in message
news:bji1j9$s7t$1@is.intellij.net...

Dmitry Peshehonov (JetBrains) wrote:

>

>Done in build #922.
>With one difference: there still is context when both 'Compare Two Files'
>and 'Compare with Editor' are sensible: two files selected in Commander.
>
>

>

Which of the 2 selected files would be compared with the editor?

>

Alain

>

The file on focused panel. The absolutely same "confusion" happens if try to
create new directory with Commander.


--
Best regards,
Dmitry Peshehonov
JetBrains, Inc, http://www.intellij.com

"Develop with pleasure!"


0

Please sign in to leave a comment.