RSS
 

Archive for novembre, 2007

RCP with Guice

27 nov

To make my RCP application a little SOA oriented i choose Guice. It’s easy and quick to implement. To call a service you use :

Guice.createInjector().getInstance(aClass);

aClass is not a service but an object using injected services, then you can’t create a ViewPart including service, you must use an intermediate object : a controller.
For example you have a ViewPart (MissionViewPart), a controller (MissionViewController) and a service (MissionService). The declaration look like this :
Read the rest of this entry »

  • Share/Bookmark
 
Commentaires fermés

Posted in Anglais, Eclipse

 

RCP et Guice

26 nov

Pour orienter vers du SOA mon application RCP j’ai choisi Guice. C’est simple et rapide à implémenter.
Pour appeler un service on fait :

Guice.createInjector().getInstance(aClass);

aClass n’est pas le service en lui-même mais un objet qui va utiliser des services qu’on lui injectera. De ce fait on ne peut créer un ViewPart qui inclut des services auto-injectés, nous devons utiliser une classe intermédiare : un controleur.
Prenons un exemple avec les classes suivantes : une ViewPart (MissionViewPart), un controleur (MissionViewController), un service (MissionService). Les déclarations ressembleront à :
Read the rest of this entry »

  • Share/Bookmark
 
Commentaires fermés

Posted in Eclipse, Français

 

How to run IE3,IE4, IE5…IE6 on the same computer

22 nov

By reading this ticket of Fred Cavazza I sart looking to the site free tools and I found what I seek for a long time: a simple way to run several versions of IE on my PC. It is important to have this fonctionality to make sure that Rialto is always compatible progressively with its evolution. A great cheer to Multiple IE installer. Only have to to validate the IE versions.

  • Share/Bookmark
 
Commentaires fermés

Posted in Anglais, Javascript

 

Comment avoir IE3,IE4, IE5…IE6 sur le même PC

22 nov

En lisant ce billet de Fred Cavazza j’ai donc été me balader sur le site free tools et j’y ai trouvé ce que je cherche depuis longtemps: une façon simple de faire tourner plusieurs versions d’IE sur mon PC. C’est en effet vital pour pouvoir s’assurer que Rialto est toujours compatible au fur et à mesure de son évolution. Un grand bravo donc à Multiple IE installer. Reste à valider les différentes versions d’IE.

  • Share/Bookmark
 
Commentaires fermés

Posted in Javascript

 

XML SWT Design

20 nov

After Dave J. Orme XSWT for SWT in XML, Tom Schindl extend it with EXSWT. When i choose RCP to develop my applications, i began directly with XML to design my UI. I think it’s a good way because it reduce your code (even if now you can mask it with your Java editor), but the most important reason is the loosely coupled aspect and the capacity to have more than one version of your UI. For example if you have one application and many customers, it’s sure that some customers want different design or evolution of the UI. An XML UI is the best way to personalize the UI. For example, adding XInclude in your EXSWT file give you the ability to choose within different version of a part of your UI by managing the resolution of the « href » attribute.
Read the rest of this entry »

  • Share/Bookmark
 
 

XML SWT Design

20 nov

Après XSWT par Dave J. Orme pour SWT en XML, Tom Schindl l’a fait evoluer avec EXSWT.
Lorsque j’ai choisi RCP pour développer mes applications riches, j’ai commencé directement par créer mes UI avec du XML. Je pense que c’est la bonne méthode car ça réduit considérablement la taille de code (bien qu’aujourd’hui les editeurs Java le masque facilement), mais la plus importante raison est l’aspect couplage lâche et la capacité à avoir plusieurs version d’interfaces utilisateur. Par exemple si votre application est destinée à différents clients il est probable que certains utilisateurs voudront bénéficier de certaines parties personnalisées de l’interface. Une UI en XML est la meilleure approche pour répondre à cette attente. Par exemple l’utilisation de XInclude dans un fichier EXSWT vous donne la possibilité d’avoir une version spécifique d’une partie de votre UI en gérant la résolution de l’attribut « href ».
Read the rest of this entry »

  • Share/Bookmark
 
 

Java & Bluetooth

17 nov

Aprés un mois intensif de boulot je reviens au blog pour vous faire profiter de ce que j’ai appris. Le projet sur lequel je travaille en ce moment est sur de l’embarqué avec des tablettes PC. Cela m’a permis d’aborder la techno Bluetooth en Java. Après avoir parcouru le net et lu quelques articles l’utilisation de cette techno en Java est relativement simple. Le souci est simplement de trouver une implémentation qui va bien. En effet la JSR 82 reste récente et les implémentations open source ne sont pas nombreuses. J’en ai choisie 2 qui fonctionnent bien en s’appuyant sur l’API bluetooth de Windows : BlueCove et BlueSock.
Read the rest of this entry »

  • Share/Bookmark
 
Commentaires fermés

Posted in Français, Java

 

Java & Bluetooth

17 nov

After an intensive month of work i’m back to my blog to give you what i learn. My actual project concerns embedded systems with tablet PC. Then i had to use Bluetooth in Java. After i read a few articles, using this technology is easy. The problem is to find the an implementation. The JSR 82 is recent and there’s not a lot of open source implementations. I choose 2 which worked great and use the Windows Bluetooth API : BlueCove and BlueSock.
Read the rest of this entry »

  • Share/Bookmark
 
Commentaires fermés

Posted in Anglais, Java

 

DebugBar v5.0 beta 1

14 nov

I have already spoken about them here and here . And here come the version 5.0 of the debugbar.

The new features concern essentially the possibilities of dynamic inspect of components of your page. I particularly appreciated the tab « compute style » that allows to inspect the style properties of an element in runtime (that is the resulting style after all the css rules and inline rules are applied).

It is thus one tools more and more succeeds that proposes us DebugBar. Just use it.

db5.GIF

  • Share/Bookmark
 
Commentaires fermés

Posted in Javascript

 

DebugBar v5.0 beta 1

14 nov

J’ai déjà parlé d’eux ici et la. Et voila la version 5.0 de la debugbar.

Les nouveautés concernent essentiellement les possibilités d’analyse dynamique des composants de votre page. J’ai particulièrement apprécié l’onglet « compute style » qui permet d’observer les propriétés de style d’un élément en temps réel (C’est à dire après application des règles css ou des règles « inline ».

C’est donc un outils de plus en plus aboutit que nous propose DebugBar. L’essayer c’est l’adopter

db5.GIF

  • Share/Bookmark
 
Commentaires fermés

Posted in Français, Javascript