Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330524

Summary: [Refactoring] Moving diagrams doesn't update associated package
Product: [Technology] Tigerstripe Reporter: Navid Mehregani <nmehrega>
Component: DiagramsAssignee: Project Inbox <tigerstripe.diagram-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: chrhartl, yuri
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
330524 patch none

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!