From: Joe E. <jo...@em...> - 2005-02-19 10:54:13
|
Hiroo Hayashi wrote: >Rib, > >Rib> > I think the refactoring feature in Eclipse may reduce the work a lot, >Rib> > but I'm not sure. >Rib> >Rib> Yeah. Most of it should probably take an hour or so using eclipse. >Rib> Splitting the synthdrivers into manufacturer packages might be harder, >Rib> though. > >Could you teach me where this feature is described in Eclipse help? > > I could look around. What version of Eclipse are you using? I just tried it in IDEA and it is *obscenely* easy. You just select file(s), right-click, and select "Refactor->Move...". It then prompts you with a list of all of the existing packages. I could probably do it in a little over a minute. It shouldn't be too difficult, however, to do it with a global search-replace. You'd need to do four of them: search for "package core" and replace with "package org.jsynthlib" search for "import core" and replace with "import org.jsynthlib" search for "package synthdrivers" and replace with "package synthdrivers" search for "import synthdrivers" and replace with "import org.jsynthlib.synthdrivers" Then, drag all files and folders "core/" into "org/jsynthlib/" and drag the synthdrivers/ directory into "org/jsynthlib/" as well. That would get you 90% of the way there. The nice thing about it is that it should work for stuff with text *after* it. For example "package synthdrivers.Alesis5M" would also get turned into "package org.jsynthlib.synthdrivers.Alesis5M", etc. - Joe |