Re: Change JavaXPCOM interfaces package name?
Micael Gallego Carrillo <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <_aOdnQJsXqmvKd_YnZ2dnUVZ_sednZ2d__23376.5216697522$1161999682$gmane$org@mozilla.org> |
Javier Pedemonte escribió: > mica wrote: >> I have posted a refactoring script with instructions in >> https://bugzilla.mozilla.org/show_bug.cgi?id=330256 (Comment 3) > > Does this script change all references of "org.mozilla.xpcom" to > "org.mozilla.interfaces"? Because while most are changing, the classes > in MozillaGlue.jar (i.e. Mozilla.java) would still remain under > "org.mozilla.xpcom". > If you apply this script with the instructions posted in bug, you only will change references to interfaces in MozillaInterfaces.jar. References to other classes or interfaces will not change. In fact, the refactoring can be done with Eclipse refactoring very easily following the steps: * Create a Eclipse Java Project named MozillaInterfaces with source files in MozillaInterfaces-src.jar * Remove the dependence to old MozillaInterfaces.jar (with "org.mozilla.xpcom" package) in your Java Project that uses xpcom. * Add reference to the MozillaInterfaces project in your Java Project that uses xpcom. * Create a package named "org.mozilla.interfaces" and move all xpcom interfaces from "org.mozilla.xpcom" to "org.mozilla.interfaces". * Add the dependence to new MozillaInterfaces.jar (with "org.mozilla.interfaces" package) in your Java Project that uses xpcom. * Delete the MozillaInterfaces project. Javier, what classes remain under "org.mozilla.xpcom" ? Maybe the classes founded in this CVS's directory: http://lxr.mozilla.org/mozilla/source/extensions/java/xpcom/interfaces/org/mozilla/xpcom/ ?? If it is correct, the classes that remain under "org.mozilla.xpcom" are: GREVersionRange.java IAppFileLocProvider.java IGRE.java IMozilla.java INIParser.java IXPCOM.java Mozilla.java ProfileLock.java VersionComparator.java XPCOMException.java XPCOMInitializationException.java Regards Micael Gallego