Book a Demo

Author Topic: Handling of Classes Not Found During Import  (Read 6992 times)

BKV

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Handling of Classes Not Found During Import
« on: December 01, 2007, 11:12:51 am »
Hello,
I have tried everything, but I can`t to get the "Handling of Classes Not Found During Import" dialog to show!!!!
After what exactly operation it is available?
I am using EA with Visual Studio 2005 Integration and I can`t to get the "Handling of Classes Not Found During Import" dialog to show during "Synchronize package with Code...".

What I am doing wrong?
Thanks

BKV

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #1 on: December 04, 2007, 02:19:21 am »
Could somebody help me to deal with a problem?
How to remove a classes from model during synchronization, if those classes were not found in sources?


thomaskilian

  • Guest
Re: Handling of Classes Not Found During Import
« Reply #2 on: December 04, 2007, 03:15:36 am »
I would say: either manually or by writing a special add-in. Sorry, can't help much in that area.

BKV

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #3 on: December 05, 2007, 12:09:57 am »
But according to manual:
"Code Engineering -> Reverse Engineering and Synchronizing
-> Handling of Classes Not Found During Import" chapter it is possible!!!  
But I can`t to get it to work!!!
Pls help!!!
 

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #4 on: December 05, 2007, 02:00:18 am »
Not doing this myself, but perhaps look at options -> source code engineering -> attribute / operations. Maybe deselecting the delete on sync will enable the dialog? just a guess really :)

BKV

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #5 on: December 05, 2007, 03:33:31 am »
Changing  "options -> source code engineering -> attribute" was the first thing I tried.
But no results  :(


gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #6 on: December 05, 2007, 03:56:35 am »
Ok. Plan B :)
I just tried to import and there's an option in "remove classes not found in code" to "prompt for action". After selecting this and setting the delete options previously discussed (all checked) - I got the dialogue when trying to forward engineer (model->src). Funnily trying to reverse engineer (src->model) seemed to have no effect - missing classes were ignored.
I would guess that the "prompt for action" option must get stored and used in sync (as it isn't required for an import?) - Maybe this helps? sorry I can't help further, but this isn't something I'm using at the moment.

BKV

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #7 on: December 06, 2007, 12:18:34 am »
Thanks for your answers.
But I still can`t to get "Handling of Classes Not Found During Import" to work.
Does somebody ever use this functionality?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #8 on: December 06, 2007, 12:56:01 pm »
Try running Import Source Directory (since that's where the option is) from EA instead of Visual Studio.  See if it works for you then.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #9 on: December 06, 2007, 01:44:27 pm »
The topic is Import a Directory Structure:

http://www.sparxsystems.com.au/EAUserGuide/index.html?revengtree.htm

At the end of the dialog is a set of three options. Prompt for Action will, when the import is executed, display the Handling of Classes Not Found dialog, so that you can manually delete or ignore the missing Classes. (This is what GPC and Simon are directing you to.)

I have amended the Help to make it clearer how to manually select missing classes to be deleted or ignored.
Best Regards, Roy

BKV

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #10 on: January 17, 2008, 07:39:45 am »
So, finally I can`t make "Remove classes not found in code" to work.
What is interesting:
In my case packages were created and connected to VS2005 projects using MDG Integration. In this case, if i run "Import source directory" the "Remove classes not found in code" functionality doesnt work at all.
If I create a new package in EA and "Import source directory" to this package, than the "Remove classes not found in code" is working.
What could be a probkem?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Handling of Classes Not Found During Import
« Reply #11 on: January 17, 2008, 08:17:10 am »
I suspect (without proof) that the absolute file paths may have changed somewhere along the way. EA uses these as a criterion to determine if there is extant source code. If there is no file path match EA assumes the file is something else and proceeds with a 'normal' import (or whatever).

In your case when you re-imported the project you reset all the file paths. Now it works.
No, you can't have it!