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 169626 - API for Moving Projects
Summary: API for Moving Projects
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks: 165532 166866
  Show dependency tree
 
Reported: 2009-07-31 08:20 UTC by Jan Becicka
Modified: 2009-09-03 13:23 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2009-07-31 08:20:39 UTC
Please implement API for moving projects.
Ideally blocking method
move(Project p, FileObject destination)
Comment 1 Jan Becicka 2009-08-31 10:06:12 UTC
Milane, any progress on this?
Comment 2 Milan Kubec 2009-08-31 13:01:52 UTC
Yes, working on it. Not as easy as it looked for the first sight.
Comment 3 Milan Kubec 2009-09-01 10:19:29 UTC
I can provide somewhat partial solution. Project move cannot be implemented generally for all project types. Each
project type can have its own impl. of move operation that is accessible from UI. But there is default impl for those
projects that doesn't need anything special and it would be the same for this API call. Such projects that use default
implementation of the operation have particular class in its lookup. Proposed solution would look for the class in
project lookup and if the class is available then move operation would do the same as default impl. just without
dialogs. And if the class is not available in project lookup then move operation would end up with exception.
Comment 4 Milan Kubec 2009-09-03 13:23:52 UTC
After talk with Maros we decided not to implement it this way.