This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 330524 - [Refactoring] Moving diagrams doesn't update associated package
Summary: [Refactoring] Moving diagrams doesn't update associated package
Status: VERIFIED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Diagrams (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-17 16:41 EST by Navid Mehregani CLA
Modified: 2010-12-06 16:46 EST (History)
2 users (show)

See Also:


Attachments
330524 patch (6.09 KB, patch)
2010-12-06 06:33 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-17 16:41:03 EST
Build Identifier: 

When a class diagram file is moved from one package to another, the associated package is not updated.

Reproducible: Always

Steps to Reproduce:
1. Create a model project with two packages in its src folder: com.mycompany and com.mypackage
2. Create a class diagram file under com.mycompany
3. Right click on project > Diagrams > Audit all diagrams > You should get a message saying: 'No discrepancy was found.'
4. Now move class diagram file from com.mycompany to com.mypackage.  Audit the diagram again as indicated in step#3.  An error message is generated indicating that there are discrepancies.  Error Log file indicates the following:
Invalid base package 'com.mycompany' (located in 'com.mypackage')
Comment 1 Anton Salnik CLA 2010-12-06 06:33:34 EST
Created attachment 184583 [details]
330524 patch

Issue fixed. Patch attached.
Comment 2 Yuri Strot CLA 2010-12-06 09:38:49 EST
Anton's patch applied.
Comment 3 Navid Mehregani CLA 2010-12-06 16:46:01 EST
Verified. Thanks!