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 126773 - Provide option to delete partner link imports when partner is deleted
Summary: Provide option to delete partner link imports when partner is deleted
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks: 134608
  Show dependency tree
 
Reported: 2008-02-05 23:26 UTC by lpolycarpou
Modified: 2009-04-17 02:06 UTC (History)
0 users

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 lpolycarpou 2008-02-05 23:26:30 UTC
When a PL is deleted from the swimlane, its WSDL/XSDs in the Partners folder are left behind.  Users may manually need
to remove these since these will be included in their built project and are not necessary.  I would suggest that when a
user tries to delete a partner link (for an invoke at least) that NB6 prompts the user if they want to also delete the
imported WSDL if it exists locally in the Partners folder (and not by project reference).  Any other import statements
for this WSDL should also be cleaned up.

Furthermore, an option should exist to perform a clean up of partner WSDLs / XSDs that are not being used in the model.
 Items created by the user in Process Files should be left alone.
Comment 1 Sergey Lunegov 2008-02-06 10:22:44 UTC
Alexey, also keep in mind cases with cross-project references
Comment 2 Alexey Yarmolenko 2008-03-24 18:10:16 UTC
Ok, as a part of effort to make all cross-project references consistent across all project type, DnDin WSDL to diagram
will no longer cause a local copy to be created. In this case cross-project reference will be used to access this WSDL
from the project it was taken from. Project dependencies will be added automatically to support such reference.

Removing unused imports from bpel file automatically is also questionable idea, because imports can be added and removed
explicitly and user can be confused with implicit removing of imports. The better solution here I see is to provide new
validation rule to warn user about unused import with "quick fix" action to remove such import. But this looks more like
feature request for post-sierra release.

Turning this bug into feature request which will be closed as soon as our cross-project reference story will be
completed for bpel projects.

Comment 3 Sergey Lunegov 2008-05-07 16:08:59 UTC
Added to umbrella list.
Comment 4 Vladimir Yaroslavskiy 2009-03-02 10:10:45 UTC
Now a references to wsdl/xsd are used instead of copy,
so there is no anymore Partners folder.
Comment 5 terrybraun 2009-04-17 02:06:09 UTC
Umbrella enhancement 153059 still has a some work, but with

  a) the implementation of: "Fix Imports - Ctrl+Shift+I" enhancement
and
  b) the completed implemenation of referenced resources

the issues in this ticket completely satisfy and QA declares this issue verified. The umbrella enhancement 153059 will 
be followed.