This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 331145 - [TS Explorer] Deleting package will delete all .package files up the hierarchy
Summary: [TS Explorer] Deleting package will delete all .package files up the hierarchy
Status: VERIFIED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 12:41 EST by Navid Mehregani CLA
Modified: 2010-12-06 16:49 EST (History)
1 user (show)

See Also:


Attachments
331145 patch (2.80 KB, patch)
2010-12-03 09:20 EST, Anton Salnik CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Navid Mehregani CLA 2010-11-25 12:41:18 EST
Build Identifier: 

If you have any entity defined under package one.two.three, and you only delete package 'three', the .package file under 'one' and 'two' will also be deleted

Reproducible: Always

Steps to Reproduce:
1. Create a TS model project
2. In TS Explorer > Click on Toolbar menu > Package Presentation > Hierarchical 
3. Create an entity called Ent3 under package one.two.three
4. Create an entity called Ent2 under package one.two
5. Open Navigator view > expand all the package folder > notice under each package folder, a .package file is defined
6. Right click on package 'three' in TS explorer and delete it 
7. Notice that the presentation layout changes to display package 'one' and 'two' as 'one.two' even though hierarchical package presentation is selected.  If you switch back to Navigator view, you'll notice that .package file has been deleted under packages 'one' and 'two', which explains why 'one.two' is displayed as such.

No file under 'one' and 'two' should be deleted when a sub-package (i.e. 'three') is deleted.
Comment 1 Anton Salnik CLA 2010-12-03 09:20:44 EST
Created attachment 184468 [details]
331145 patch

Issue fixed. Patch attached.
Comment 2 Yuri Strot CLA 2010-12-06 09:33:54 EST
Patch applied.
Comment 3 Navid Mehregani CLA 2010-12-06 16:49:28 EST
Verified. Thanks!