
Hi, everybody. I've started to work on an Eclipse plug-in for Cal10n (as you had probably guessed by reading the subject, I know). Here's a breakdown of the currently implemented features: - enum types parsing (if the @BaseName annotation is present); - Properties file parsing (only those explicitly mentioned through a @Locale annotation in some enum type); - potential problems highlighting (both in the editor and the Markers view); - the potential problems mirror those in Cal10nError.ErrorType, with the exception of MISSING_BN_ANNOTATION - since if @BaseName is missing no parsing is performed on the enum type; - quick fix suggestions on all problems (using Ctrl-1 in the editor) - but only one currently working, see below; - Levenshtein distance measurement and suggestions offered for property keys not found in the corresponding enum type. Lots of things to be done, still. I'd say that implementing the other quick fixes is a priority. Moreover, right now the parsing is triggered by a full build only, while of course it should kick in on an incremental build (I should probably have an IResourceChangeListener, too, for property files). As it happens, the time I'm able to dedicate to the project varies wildly, though the next few weeks may allow me some spare hours of coding time. *If* there's still actual interest, obviously - I have no idea of the current Cal10n's user base, or of the plans for Cal10n's future. Any feedback is much appreciated, of course. Regards, Angelo

Hi Angelo, Thank you for volunteering to work on the eclipse plug-in. The functionality you describe in your email is very promising. Is the code visible somewhere? I think cal10n provides very useful functionality and would like to see cal10n massively adopted by java developers. An eclipse plug-in would really help achieve such adoption. Would you like to see the eclipse plug-in incorporated into the cal10n code base or would you rather develop it as a closely related but still *separate* project? I would be happy either way. On 23/07/2010 1:07 AM, Angelo Tata wrote:
Hi, everybody.
I've started to work on an Eclipse plug-in for Cal10n (as you had probably guessed by reading the subject, I know). Here's a breakdown of the currently implemented features:
- enum types parsing (if the @BaseName annotation is present);
- Properties file parsing (only those explicitly mentioned through a @Locale annotation in some enum type);
- potential problems highlighting (both in the editor and the Markers view);
- the potential problems mirror those in Cal10nError.ErrorType, with the exception of MISSING_BN_ANNOTATION - since if @BaseName is missing no parsing is performed on the enum type;
- quick fix suggestions on all problems (using Ctrl-1 in the editor) - but only one currently working, see below;
- Levenshtein distance measurement and suggestions offered for property keys not found in the corresponding enum type.
Lots of things to be done, still. I'd say that implementing the other quick fixes is a priority. Moreover, right now the parsing is triggered by a full build only, while of course it should kick in on an incremental build (I should probably have an IResourceChangeListener, too, for property files).
As it happens, the time I'm able to dedicate to the project varies wildly, though the next few weeks may allow me some spare hours of coding time. *If* there's still actual interest, obviously - I have no idea of the current Cal10n's user base, or of the plans for Cal10n's future.
Any feedback is much appreciated, of course.
Regards,
Angelo

Hi, Ceki. The code is in a Subversion repository at XP-Dev.com. You can browse the code and see Trac tickets at these URLs: http://svn2.xp-dev.com/svn/ECal10n/trunk http://trac2.xp-dev.com/ECal10n/report/18 The SVN URL should also work for an anonymous checkout, though I didn't test it myself. If you'd like read/write access you'll have to create an account there (http://www.xp-dev.com/register) and tell me your username, so that I can add you to the project. With regard to the code base, for now I'd keep it separate, just for the sake of simplicity (meaning: I won't have to migrate the source from SVN to git). Sometime in the future such migration could be done, though; I have no problem with that. Angelo ----- Messaggio originale ----- Da: Ceki Gülcü <ceki@qos.ch> A: CAI10N developers list <cal10n-dev@qos.ch> Inviato: Ven 23 luglio 2010, 10:57:16 Oggetto: Re: [cal10n-dev] Eclipse plugin volunteer Hi Angelo, Thank you for volunteering to work on the eclipse plug-in. The functionality you describe in your email is very promising. Is the code visible somewhere? I think cal10n provides very useful functionality and would like to see cal10n massively adopted by java developers. An eclipse plug-in would really help achieve such adoption. Would you like to see the eclipse plug-in incorporated into the cal10n code base or would you rather develop it as a closely related but still *separate* project? I would be happy either way. On 23/07/2010 1:07 AM, Angelo Tata wrote:
Hi, everybody.
I've started to work on an Eclipse plug-in for Cal10n (as you had probably guessed by reading the subject, I know). Here's a breakdown of the currently implemented features:
- enum types parsing (if the @BaseName annotation is present);
- Properties file parsing (only those explicitly mentioned through a @Locale annotation in some enum type);
- potential problems highlighting (both in the editor and the Markers view);
- the potential problems mirror those in Cal10nError.ErrorType, with the exception of MISSING_BN_ANNOTATION - since if @BaseName is missing no parsing is performed on the enum type;
- quick fix suggestions on all problems (using Ctrl-1 in the editor) - but only one currently working, see below;
- Levenshtein distance measurement and suggestions offered for property keys not found in the corresponding enum type.
Lots of things to be done, still. I'd say that implementing the other quick fixes is a priority. Moreover, right now the parsing is triggered by a full build only, while of course it should kick in on an incremental build (I should probably have an IResourceChangeListener, too, for property files).
As it happens, the time I'm able to dedicate to the project varies wildly, though the next few weeks may allow me some spare hours of coding time. *If* there's still actual interest, obviously - I have no idea of the current Cal10n's user base, or of the plans for Cal10n's future.
Any feedback is much appreciated, of course.
Regards,
Angelo
cal10n-dev mailing list cal10n-dev@qos.ch http://qos.ch/mailman/listinfo/cal10n-dev

On 23/07/2010 12:28 PM, TBlack wrote:
Hi, Ceki.
The code is in a Subversion repository at XP-Dev.com. You can browse the code and see Trac tickets at these URLs:
Thanks. I checked out the code and intend to look at it closely. In the mean time, is there are build of the plugin somewhere that I can fetch?
http://trac2.xp-dev.com/ECal10n/report/18
The SVN URL should also work for an anonymous checkout, though I didn't test it myself.
I can confirm that anonymous checkout works.
If you'd like read/write access you'll have to create an account there (http://www.xp-dev.com/register) and tell me your username, so that I can add you to the project.
Thank you for the offer but that's not necessary for the moment. However, I might take up the offer at a later stage.
With regard to the code base, for now I'd keep it separate, just for the sake of simplicity (meaning: I won't have to migrate the source from SVN to git). Sometime in the future such migration could be done, though; I have no problem with that.
Alright. Even the source code for ecal1n is under svn, you might like to publicize ecal10n via the cal10n web-site, i.e. http://cal10n.qos.ch. Would you be interested that?
Angelo

No builds yet. I should be able to prepare an update site during the weekend - no promises, though. I don't know if you're familiar with plug-in development, but if you import the project in Eclipse you should be able to test it. Just "run" the plug-in, and a new Eclipse instance will open, with a new workspace. In that workspace you could create/import a Java project which uses Cal10n, and test the plug-in. Actually, I admit that plug-in usage should be at least described in a blog post, which is on my to-do list. I hope sooner rather than later. Publicity on Cal10n web site would be great, by the way. Maybe we could arrange an announcement with a link to that blog post I was talking about, describing the plug-in. Again.. as soon as I am able to write it. I'll let you know about that. As an aside, note that the code you checked out contains classes which I am not actually using anymore (those under the net.tatablack.ecal10n.sync.ceki package, for example, or the second Levenshtein implementation). Expect some clean-up in the next few days. Angelo ----- Messaggio originale ----- Da: Ceki Gülcü <ceki@qos.ch> A: CAI10N developers list <cal10n-dev@qos.ch> Inviato: Ven 23 luglio 2010, 13:09:09 Oggetto: Re: [cal10n-dev] Eclipse plugin volunteer On 23/07/2010 12:28 PM, TBlack wrote:
Hi, Ceki.
The code is in a Subversion repository at XP-Dev.com. You can browse the code and see Trac tickets at these URLs:
Thanks. I checked out the code and intend to look at it closely. In the mean time, is there are build of the plugin somewhere that I can fetch?
http://trac2.xp-dev.com/ECal10n/report/18
The SVN URL should also work for an anonymous checkout, though I didn't test it myself.
I can confirm that anonymous checkout works.
If you'd like read/write access you'll have to create an account there (http://www.xp-dev.com/register) and tell me your username, so that I can add you to the project.
Thank you for the offer but that's not necessary for the moment. However, I might take up the offer at a later stage.
With regard to the code base, for now I'd keep it separate, just for the sake of simplicity (meaning: I won't have to migrate the source from SVN to git). Sometime in the future such migration could be done, though; I have no problem with that.
Alright. Even the source code for ecal1n is under svn, you might like to publicize ecal10n via the cal10n web-site, i.e. http://cal10n.qos.ch. Would you be interested that?
Angelo
_______________________________________________ cal10n-dev mailing list cal10n-dev@qos.ch http://qos.ch/mailman/listinfo/cal10n-dev
participants (3)
-
Angelo Tata
-
Ceki Gülcü
-
TBlack