This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207488

Summary: Project API should be java.io.File independent
Product: projects Reporter: Alexander Simon <alexvsimon>
Component: Generic InfrastructureAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED WONTFIX    
Severity: normal CC: issues
Priority: P3 Keywords: API
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 207496    
Bug Blocks: 206634    
Attachments: Patch in progress

Description Alexander Simon 2012-01-19 06:00:26 UTC
Following methods should be deprecated and replaced by methods with FileObject/URL/URI parameters
CopyOperationImplementation.notifyCopied(Project original, File originalPath, String nueName)
MoveOperationImplementation.notifyMoved(Project original, File originalPath, String nueName)
ProjectOperations.notifyCopied(Project original, Project nue, File originalPath, String name)
ProjectOperations.notifyMoved(Project original, Project nue, File originalPath, String name)
Comment 1 Jesse Glick 2012-01-19 20:41:19 UTC
Can replace File with URI in these APIs. DefaultProjectOperationsImplementation (called from DefaultProjectOperations) will still use File for those parts of the GUI where the user must enter a new path (move & copy), since there is no general file chooser for remote files. It is questionable how valuable the resulting API change would be - the only reason to implement MoveOperationImplementation and CopyOperationImplementation is either if you are calling DefaultProjectOperations, or are part of a compound project which uses these to coordinate copies/moves of subprojects. Renaming (i.e. move within the same parent folder) could work on a remote project using DPO.
Comment 2 Jesse Glick 2012-01-19 20:46:54 UTC
Created attachment 115097 [details]
Patch in progress

Patch for experimentation. Not submitting for API review until you can confirm that this is actually useful for CND remote projects.
Comment 3 Milos Kleint 2012-07-26 11:53:08 UTC
please comment
Comment 4 Martin Balin 2016-07-07 08:37:37 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss