Thursday, April 8, 2010

Where is DS Annotation?

I used Declarative Service in my application, JAM Circle.
Declarative Service is cool stuff.
It makes to solve bundles startup order.
But I confused a thing.
How do I inject the service at startup time?
I think services needs to initialize at startup.
So I choosed the way to solve by singleton class like below.

scr.xml
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.kompiro.jamcircle.kanban.ui.KanbanUIContext">
<implementation class="org.kompiro.jamcircle.kanban.ui.KanbanUIContext"/>
<reference bind="setKanbanService" cardinality="1..1" interface="org.kompiro.jamcircle.kanban.service.KanbanService" name="KanbanService" policy="static"/>
<reference bind="setScriptingService" cardinality="1..1" interface="org.kompiro.jamcircle.scripting.ScriptingService" name="ScriptingService" policy="static"/>
</scr:component>

and implementation of Context class(The name inspired from "ApplicationContext")

package org.kompiro.jamcircle.kanban.ui;

import org.kompiro.jamcircle.kanban.service.KanbanService;
import org.kompiro.jamcircle.scripting.ScriptingService;

public class KanbanUIContext {

private static KanbanUIContext context;
private KanbanService kanbanService;
private ScriptingService scriptingService;

public KanbanUIContext() {
KanbanUIContext.context = this;
}

public static KanbanUIContext getDefault(){
return context;
}

public KanbanService getKanbanService() {
return kanbanService;
}

public void setKanbanService(KanbanService kanbanService) {
this.kanbanService = kanbanService;
}

public ScriptingService getScriptingService() {
return scriptingService;
}

public void setScriptingService(ScriptingService scriptService) {
this.scriptingService = scriptService;
}

}


It's not good way(T_T)... KanbanUIContext is a singleton class and be used to call ServiceLocator Pattern. It is not easy to test by code...
I haven't know there is no way to inject to use annotation for field injection.
Is there any way to use annotation and field injection?

Wednesday, April 7, 2010

JAM Circle 0.8.0 released

Hi all!

I'm glad to announce to release my RCP application JAM Circle 0.8.0!
Download site
https://sourceforge.net/projects/jamcircle/files/

Project Page
http://kompiro.org/jamcircle

These are New Feature.
* Migrated p2 base Eclipse platform
* Added some Board customize extension point
* JRuby Scripting Console
* improved figures design
* added Japanese resource
* added Eclipes Plug-in Edition
* fixed some bugs

Tuesday, March 9, 2010

[Hack] How to build a product headless using p2 for mac.

I could't to make a build product using p2 for mac for a long time.But I solved the issue on my build product.It's easy hack!

The point is it is wrong to export using normal delta pack.So I added a file at Eclipse.app's same path.

I added a file at delta pack's include "Eclipse.app" directory like below.
/bin/carbon/macos/x86
+Eclipse.app
+test.txt

It's fine to build my product!Cheers!

Sunday, January 3, 2010

Eclipse-tan


My friend, @torazuka made a mascot for Eclipse.What a cute mascot, isn't it?

Her name is "Eclipse-tan"! "She" supports every programmer to write bright code and she bring in more productivity for every developer.(Yes, she can support not only Java developer).So she is a good assistant(nursemaid) for every developer!

Her "capabilities" improves every year as Eclipse new release!! When she find some errors in your code, sometimes she angry,and she may be flushed :)

Sunday, November 8, 2009

Added Scripting Console to My RCP app

I joined at (J)RubyKaigi 2009 on August 18 and 19 and I met the originator of JRuby, Thomas E Enebo.
I was very excited and enjoyed that conference.So I developed a new feature for JAMCircle all night.The feature name is "JAMCircle Scripting Console".

The console is below of MainView and The video shows to control some card using some script.This feature is using JRuby only.Yes I know,e4 supports JavaScript feature like this.How do you think about this feature?

Thursday, March 19, 2009

Font Size Changer: It is a good plug-in for presentation.

My last post, I introduced "EclipSKY"."EclipSKY" is a mini conference to learn about how to develop Eclipse Plug-in and technology.In Japan, There are many mini conferences are held in Japan.Mini conferences are held over 100 each month.
I sometimes do some presentations in the conference.And I often want to explain my code using eclipse and show my code on the screen.
Eclipse is able to change font size on preference page.But it is not convenient to adjust font on the screen.
For this purpose,Ken-ichi Takahashi created convenience plug-in "Font size changer".
This plug-in provides simple feature,if you want font to be big,you push M1+M3+;,or if you want font to be small, you push M1+M3+-.And the plug-in provides tool bar button.

Yes, I saw similar button on Welcome View(Eclipse 3.5 M5).

I hope to support to change fonts using binding in Galileo release.How do you think?

Tuesday, February 17, 2009

EclipSKY200902

I held a session about how to develop Eclipse Plugin on Febrary 15.(a.k.a EclipSKY200902)

We are called the session "EclipSKY"."EclipSKY" is pronounced "Eclipse-KAI"."KAI" means "meeting" in Japan. EclipSKY is always held month by month.(But recently we couldn't do that because I develop 'JAM Circle':-)
These blue books are new books about How to develop Eclipse Plug-in for Ganymede edition.(The red book is old one;-) This book is written by Naoki Takezoe and his friends.(Naoki Takezoe is the best famous Japanese Eclipse Plug-in Programmer.He is a chief developer of AmaterasERD and leader of Project Amateras.)There is a theme for each session.EclipSKY200902's theme is "How to read Eclipse Plug-in code from reading OpenSocial Development Environment(a.k.a OSDE)".OSDE supports to develop OpenSocial Application.Now,It's only one of the IDE to develop OpenSocial Application in the world.OSDE is developed by Yoichiro Tanaka.Yep,right hand's picture is him.