Book a Demo

Author Topic: Proberbly a rework needed for "Local Path&quo  (Read 3119 times)

orientphoebus

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Proberbly a rework needed for "Local Path&quo
« on: December 12, 2005, 06:43:07 am »
What I'd like is a menu under "Code Generation" , which allows to choose or type in a directory (if the typed in one is not existing, it shall create a new directory with prompt) as the path of generating code files for all the classes under the package.

If the classes has filenames already, change the path of the filename, sure a warning will be necessary. If the classes has no filenames, by default it use the choosed directory + class name + source code type file extention.

The reason is when user use the "Clear filename" function of "Code Engineering" instead of "Local Path", all the filenames are lost, the ways to get it back is really tricky and not convenient: either set them back one by one; or generate to an empty folder and then manipulate "Local path" to replace them.

Although my aproach won't deal with "One file has multiple classes", that is not happening often, and sure is not a very good practice in most of the cases.

Even with the new approach, "Local Path" can still be kept. It's quite useful in some cases.

I myself can create a add-in for this task, but it will be nice if Sprax can integrate the function with "Reset options for the package" menu item under "Code Engineering".

Please see related discussion in :
http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=Automation;action=display;num=1134139300

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re:Probably a rework needed for 'Local Path'
« Reply #1 on: December 12, 2005, 07:19:18 am »
... with the possibility to use an environment variable instead of / as well as a plain directory name, to allow more effective customisation for projects and users.

orientphoebus

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Proberbly a rework needed for "Local Path
« Reply #2 on: December 12, 2005, 08:09:31 am »
hi, mikewhit

I agree. Acctually I like it. But just it's kind of an advance method. And it's not a "direct" approach for users' common habbit.

And my last point is, if user clear the path of all the classes of a package, it's not convenient to set them back, at leas not straight forward.

A good UI shall be easy to use first, then provides advance methods.