Eclipse RCPをVista対応のメモ

Eclipseは3.22からVista対応になっている。
JavaはJava6がベター(Java5は不明)

String os=System.getProperty("os.name");//osにはWindows Vista
Vistaかどうか確認する

代表的なフォルダーへのアクセスはXPだとこうなのが
System.getProperty("user.home")+"\\デスクトップ
System.getProperty("user.home")+"\\My Documents
System.getProperty("user.home")+"\\My Documents\\My Videos

Vistaだとこうなる
System.getProperty("user.home")+"\\desktop
System.getProperty("user.home")+"\\Documents
System.getProperty("user.home")+"\\Videos