Book a Demo

Author Topic: MDG Integration keeps using old workspace  (Read 3255 times)

albertdenialle

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
MDG Integration keeps using old workspace
« on: May 02, 2009, 12:04:08 am »
Hi everyone!

Just installed MDG integration and I'm thinking of buying it.
Unfortunately I'm having many problems :-(

One of those is: I have recently changed the path of my Eclipse workspace; I've removed all old projects and I've created a new one in the new workspace to be synced with EA; I've linked the new Eclipse project with a class diagram but.... whenever I click on "Generate code" or "Sync code" EA writes files in the OLD workspace...

How can I change that?
Thank you!

Albert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: MDG Integration keeps using old workspace
« Reply #1 on: May 04, 2009, 08:42:50 am »
Each class in the model stores the path to its file.

In order to get EA to use the new workspace you will need to update the filename of each class.  This can be done using the dockable properties window.  (View | Properties)
 
A bulk update of class filenames when a directory path has changed can be made using local paths (See http://www.sparxsystems.com.au/EAUserGuide/index.html?localpaths.htm) as follows.
 
Open the local paths dialog. (Settings | Local Paths) In the path field enter the path that EA currently thinks your files are at, or part of it.
In the ID field enter something like "Source_Path".
In the type field select your source code language.
Click "Apply Path"
This will substitute the path you entered for the ID in all classes containing that path.
Edit the path field to your new path.
EA will now find the files in their new paths.
If you want to you can now click "Expand Path" and then delete that path.
That will remove the relative paths that were created before, setting them back to absolute paths.

albertdenialle

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: MDG Integration keeps using old workspace
« Reply #2 on: May 04, 2009, 11:05:03 pm »
Thank you, that worked like a charm!

Albert