Community
Participate
Working Groups
========== project paste ================= . launch 2 eclipse on 2 different workspace . select a project on first eclipse workspace. right click and copy . select the second eclipse, right click and paste raised exception : java.lang.Throwable: File does not exist at org.eclipse.hyades.test.ui.UiPlugin.logError(UiPlugin.java:343) at org.eclipse.hyades.test.ui.internal.navigator.refactoring.PasteFileChange.perform(PasteFileChange.java:162) at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278) at org.eclipse.hyades.test.ui.internal.navigator.refactoring.CompositeListenerChange.perform(CompositeListenerChange.java:39) at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278) .... ========== folder paste ================= . launch 2 eclipse on 2 different workspace . select a folder on first eclipse workspace. right click and copy . select a project in the second eclipse workspace, right click and paste operation is cancelled because no resource change is detected ================================================= it seems that pasting external item is always seen as a file pasting, that could explain theses error.
after some testing, pasting a folder seems to works well (i made a mistake on my first testing, folder was already existing in target workspace) some problems still exists for projects, investigating
update : in case of a paste of external resource, the change created is performed there : org.eclipse.hyades.test.ui.internal.navigator.refactoring.PasteFileChange in this configuration, file is null and externalFileName contains in fact a folder/project name the call to : InputStream source = new FileInputStream(externalFileName); raise an exception (it is supposed to be used on a real file name, not on a container) todo : . find a way to check that name contained inside the clipboard is a container and not a file . create a constructor for "PasteProjectChange" that can use clipboard entry instead of a classic IFolder updating estimated time, some few work to make this
Created attachment 177623 [details] patch this patch add a new kind of change to be able to make an external paste of folder (external mean copy from outside current workspace, as from another eclipse or file explorer)
Paul, could you review this patch please ? no hurry, i will not push it today (lots of testing remaining) and it is not urgent enough to pass PMC many thanks in advance
Reviewed. I would suggest not using a translated string, if at all possible since the target release will not be translated.
Created attachment 177847 [details] patch V2 this patch replace previous one, fixed following Paul comments manual test added under CVS will push this patch and update "allTest" + wiki when we'll no longer under PMC approval, this fix is not vital enough to be pushed at the moment
alltest updated and pushed under CVS wiki updated patch delivered under CVS
This defect had been resolved as FIXED for more than 1 month. Please verify with the latest TPTP 4.7.2 driver. If this defect is still left unverified by February 25, we'll close it on the originator's behalf. TPTP 4.7.2 driver can be downloaded from: http://www.eclipse.org/tptp/home/downloads/?ver=4.7.2
closing