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 - Project API should be java.io.File independent
Summary: Project API should be java.io.File independent
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords: API
Depends on: 207496
Blocks: 206634
  Show dependency tree
 
Reported: 2012-01-19 06:00 UTC by Alexander Simon
Modified: 2016-07-07 08:37 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch in progress (35.56 KB, patch)
2012-01-19 20:46 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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