[
https://issues.jboss.org/browse/TEIIDDES-2376?page=com.atlassian.jira.plu...
]
Barry LaFond commented on TEIIDDES-2376:
----------------------------------------
When I renamed the *SourceModel_AAAAA.xmi* to *SourceModel_XXXXX* it appears that the
modelImport *name* attribute isn't updated as shown below.
<modelImports xmi:uuid="mmuuid:cb26ab75-2877-4cee-8efa-5de4732d18f7"
name="SourceModel_AAAAA" modelLocation="SourceModel_XXXXX.xmi"
On Windows the rename will incorrectly changed the
<modelImports xmi:uuid="mmuuid:cb26ab75-2877-4cee-8efa-5de4732d18f7"
name="SourceModel_AAAAA" modelLocation="SourceModel_AAAAA.xmi"
to
<modelImports xmi:uuid="mmuuid:cb26ab75-2877-4cee-8efa-5de4732d18f7"
name="SourceModel_AAAAA" modelLocatiSourceModel_XXXXX.xmi.xmi"
So it's OFF by *4* characters
There's an <annotatedObject> href that's hosed too:
<annotatedObject
href="SourceModel_AAAAA.xmi#mmuuid/7291fb4c-da39-4bbc-9787-d2edd9b9551c"/>
becomes
SourceModel_XXXXX.xmif="SourceModel_AAAAA.xmi#mmuuid/7291fb4c-da39-4bbc-9787-d2edd9b9551c"/>
I tracked the character offsets in the *RefactorResourcesUtils.calculateTextChanges()*
method and for the modelImport line above, the offsets are the same on Windows AND Linux
On windows environment, renamig a source model file's name using
JBDS will broke a view model which uses the renamed source model
---------------------------------------------------------------------------------------------------------------------------------
Key: TEIIDDES-2376
URL:
https://issues.jboss.org/browse/TEIIDDES-2376
Project: Teiid Designer
Issue Type: Bug
Components: Eclipse Integration
Affects Versions: 8.3.4
Environment: - JBDS 7.1.1
- JBDSIS 7.0.3
- Windows 7
Reporter: hisao furuichi
Assignee: Barry LaFond
Fix For: 8.6.1, 9.0.1, 9.0
On windows environment, renamig a source model file's name using JBDS will broke a
view model which uses the renamed source model
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)