Bug 6874 - Delete project works differently in packages view than Navigator
Summary: Delete project works differently in packages view than Navigator
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-12 16:23 EST by Nick Edgar CLA
Modified: 2001-12-14 06:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2001-12-12 16:23:20 EST
Build 20011211

I recently made changes to DeleteResourceAction, changing the UI for project 
deletion (and some small changes to the title in the non-project case).

The packages view still gets the old UI, as if it has copied the code.

Is there any reason it can't just reuse DeleteResourceAction?
Comment 1 Adam Kiezun CLA 2001-12-13 11:22:00 EST
there are several reasons why we cannot reuse DeleteResourceAction:
the simplest being that resources are just a fraction of what we have to deal 
with - other than that we have source folders, external and internal jars, 
packages, and sub-cu elements. 

some of them (like) source folders require classpath upadting on deletion,
some do not even have a resource - like external jars (we do not delete the 
external jar - jus tremove it from the classpath).
some (like packages) need special treatment when deleting.
sub-cu elements, like methods, are yet another story.

so, in addition to the 3 kinds of entities that live in the navigator's reality 
we have a whole bunch of other things we have to deal with.
Comment 2 Nick Edgar CLA 2001-12-13 11:27:48 EST
In that case, I recommend delegating to DeleteResourceAction for the project 
case.
Comment 3 Adam Kiezun CLA 2001-12-14 06:17:00 EST
fixed as suggested
build >= 20011214