Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315938

Summary: Cut'n'paste of files is broken
Product: [Eclipse Project] Platform Reporter: Aaron Digulla <digulla>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: remy.suen
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Error log none

Description Aaron Digulla CLA 2010-06-07 04:40:39 EDT
Build Identifier: 20100603-0907

Pasting a file to a folder which already contains a file with the same name resulted in a rename file dialog. With 3.6RC3, I get:

java.lang.NoClassDefFoundError: org/eclipse/jface/dialogs/InputDialog$1
at org.eclipse.jface.dialogs.InputDialog.createDialogArea(InputDialog.java:170)
at org.eclipse.jdt.internal.ui.refactoring.reorg.NewNameQueries$3.createDialogArea(NewNameQueries.java:130)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at org.eclipse.jdt.internal.ui.refactoring.reorg.NewNameQueries$2.getNewName(NewNameQueries.java:135)
at org.eclipse.jdt.internal.corext.refactoring.reorg.MonitoringNewNameQueries$4.getNewName(MonitoringNewNameQueries.java:80)
at org.eclipse.jdt.internal.corext.refactoring.changes.CopyResourceChange.getNewResourceName(CopyResourceChange.java:126)
at org.eclipse.jdt.internal.corext.refactoring.changes.CopyResourceChange.perform(CopyResourceChange.java:71)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)


Reproducible: Always

Steps to Reproduce:
1. Select a file
2. Copy the file
3. Paste with the file still selected
Comment 1 Prakash Rangaraj CLA 2010-06-07 04:59:20 EDT
I can't reproduce this. Does this happen on a fresh workspace without any plugins installed?
Comment 2 Aaron Digulla CLA 2010-06-07 05:14:09 EDT
No. I'll try all my plug-ins one by one unless there is a faster solution to find out which plug-in could cause the problem.
Comment 3 Prakash Rangaraj CLA 2010-06-07 05:23:23 EDT
(In reply to comment #2)
> No. I'll try all my plug-ins one by one unless there is a faster solution to
> find out which plug-in could cause the problem.

   Did you find any errors in the Error Log? That might help you to pinpoint which plugin caused this.
Comment 4 Aaron Digulla CLA 2010-06-07 07:27:20 EDT
Created attachment 171254 [details]
Error log
Comment 5 Prakash Rangaraj CLA 2010-06-07 08:04:27 EDT
Error log didn't help. May I know what are the third party plugins that you add to RC3?
Comment 6 Paul Webster CLA 2010-06-07 08:20:46 EDT
His error log indicates it can't find InputDialog$1 ... I checked, and the class is in M6 through RC4.

You can check your org.eclipse.jface_3.6.0*.jar file for InputDialog.  On linux it was:
bash$  jar tf org.eclipse.jface_3.6.0.I20100526-1400.jar \
  | grep dialogs.InputDialog
org/eclipse/jface/dialogs/InputDialog$1.class
org/eclipse/jface/dialogs/InputDialog.class

The only other thing I can suggest is to check the integrity of the epp package you downloaded.  There should have been an md5 sum associated with it on the download page.

PW
Comment 7 Aaron Digulla CLA 2010-06-08 03:23:40 EDT
I tried to recreate the situation and failed. What I did:

1. I compared the JAR file with the file from the .tar.gz archive I downloaded. They were the same.
2. There is no other plugin which defines org.eclipse.jface.dialogs.InputDialog

The only "odd" thing I did is to install all plugins at once (without restarting between the installs but opening the install wizard N times) and then restarted once. Also, I used a workspace created with 3.5.

Since I'm out of ideas, I'll close this as WORKSFORME. Let me know if this is OK.
Comment 8 Prakash Rangaraj CLA 2010-06-08 03:49:03 EDT
Sure. Feel free to reopen if you could find the steps to reproduce.