Thursday, July 30, 2009

Apache Wink Site

I'm glad to announce that Apache Wink has finally an official site.

It would be great if you share this information, so the search engines would be able to increase the site's rating.

Here are some links to Apache Wink's site: Apache Wink JAXRS implementation JAX-RS implementation JAX RS implementation JSR-311 implementation JSR 311 implementation JSR311 JSR 311 JSR-311 JAX-RS JAXRS JAX RS

Encoder 0.5.1

I'd like to announce the release of Encoder 0.5.1 with the fix of Issue 24 (thanks to Anton for pointing this out)

In addition I've finally moved the build of Encoder's distribution to maven, so 0.5.1 contains both the Eclipse plugin and the standalone version.

Enjoy :)

Tuesday, July 21, 2009

Eclipse: Adding Custom Code Templates Programmatically

Here comes the small tip how to add/remove the code templates programmatically.

Warning! This tip includes using the Eclipse internal API. It works fine in 3.5, but may not work in other versions!

First get access to the TemplateStore:
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jface.text.templates.persistence.TemplateStore;
...
public TemplateStore getCodeTemplateStore() {
return JavaPlugin.getDefault().getTemplateStore();
}


Delete template:
TemplateStore codeTemplateStore = getCodeTemplateStore();
TemplatePersistenceData templateData = codeTemplateStore.getTemplateData("template.id");
if (templateData != null) {
codeTemplateStore.delete(templateData );
}


Add new template:
String template = // template text
codeTemplateStore.add(new TemplatePersistenceData(new Template("template name", "Description", "java-members", template, true),true, "template.id"));


Save store:
codeTemplateStore.save();

Monday, July 20, 2009

tarlog-plugins 1.3.1

tarlog-plugins were enhanced with the support of Slf4j.

The switch between commons-logging and slf4j occurs using Preferences -> Tarlog Plugins -> Logger.
The same template "logger" is reused for both frameworks.

I needed this feature, since it was decided to use Slf4j for Wink. Hope more people will find it useful.

Tuesday, July 7, 2009

Wink is in the Air

So Wink is in the air! Well, almost...
Till now it was accepted as Apache Incubator project and HP's implementation was selected as the code base, which were the great news for our team :)
During the previous week a lot of small bugs were found and fixed to make the code JAX-RS (JSR 311) compliant and even more, so basically I think that Wink is ready for 0.1 release. Hopefully we'll succeed to release it till the end of July.