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.
Summary: | Changing code name base through GUI | ||
---|---|---|---|
Product: | apisupport | Reporter: | Martin Krauskopf <mkrauskopf> |
Component: | Project | Assignee: | Martin Kozeny <mkozeny> |
Status: | NEW --- | ||
Severity: | blocker | CC: | jchalupa |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Martin Krauskopf
2006-01-11 18:00:07 UTC
> But if we know them it should be hard to adjust those files as well.
Yup, I meant "... it should *not* be hard...". However I'm not quite sure :)
Replacing all occurrences of the CNB in and of itself should not be hard, even if you go into .settings files and so on. But doing this with the IDE open - well, I don't know. Probably difficult to get everything to update cleanly. There are dozens of listeners that would need to get notified of everything, just a mess. BTW Honza - this falls into the category of "things that don't sound hard but that may be impractical because of usage of the listener pattern". > Probably difficult to get everything to update cleanly. There are dozens of
> listeners that would need to get notified of everything, just a mess.
I thought that when you:
1) properly close a project (with ProjectState.notifyDeleted) plus detaching
needed listeners - there is now method NbModuleProject.notifyDeleting which
tries to do something similar, so might need to be enhanced.
Or ideally all listener should be detached automatically when some other
listener noticed that a project going to be deleted, i.e. no need to call
NbModuleProject.notifyDeleting(). (but this is rather implementation detail)
2) then do the "replace"
3) Do the open (ProjectManager.find(), OpenedHook, ...)
that it could work, or not? What else listen after the step1? Might be that
dependen projects would be confused for a while - hmm, that could be problem.
Just curious :)
Don't know in detail, just suspect it will be hard. If you have ideas, don't let me stop you... |