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 80566

Summary: renaming/deleting/copying EA's modules should affect also the EA's metadata
Product: javaee Reporter: Lukasz Grela <lgrela>
Component: EARAssignee: issues@javaee <issues>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Lukasz Grela 2006-07-19 12:54:28 UTC
#200607190000
1) create ea project
2) rename ejb-module or web-module, after renaming the ea project is "red"
points at reference to project already renamed is missing

I think that main ea module should be updated, so it should refers to new module
name.
Comment 1 Martin Krauskopf 2006-07-19 16:31:46 UTC
And you are definitely right. The same for deleting and maybe copying. There are
already some relative issues I think. But this is not possible with the current
API without some hacks. Hopefully it will be for next release after an RFE is
implemented in Project APIs - not currently sure if it is already filed, I'll do
so if I do not find it (it should be possible to listen on the operations).

But even with that API I'm not sure how much it is solvable. Since modules do
not know about EAs containing them. So if an EA which contains a module which is
just being renamed/deleted:

1) *is* open in the IDE it can listen to the operation or can be notified and
   adjust appropriately its metadata

2) *is not* open in the IDE it can't be notified nor listen so even such an API
   would not help
   
3) submodule's project metadata could contain "links" to their EAs - probably
   will not be accepted?

...needs to be elaborated a little bit more. I'm making this an enhancement
since I believe it has a better chance to get more attention in the future
planning than P4 defect.
Comment 2 Martin Krauskopf 2006-09-11 16:29:37 UTC
J2EE team support ends, thus returning the issue back.