StevenBot-Saltsam

眼睛能装下世界,为何却装不下眼泪? 一只风筝一辈子只为一根线冒险。 那不是一场游戏,为何总有一根线牵着心怀,隐隐作疼? 那不是一段邂逅,为何飘在桥上的影子,总缠进梦乡? 那不是一个梦境,为何你的温柔私语,总是不经意的响起?

导航

<2011年10月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

统计

常用链接

留言簿

随笔分类

随笔档案

文章分类

文章档案

datas link

OSChinal Sources codes Library

搜索

最新评论

阅读排行榜

评论排行榜

2011年10月25日 #

Spring 学习

     摘要: 1.spring属性的注入配置1.      属性的注入配置Bean文件的配置,即为bean的各属性赋值 <bean id="sone" class="edu.yzu.entity.Student" init-method="initialMethod" parent="sbean" ...  阅读全文

posted @ 2011-11-16 01:16 Steven_bot 阅读(513) | 评论 (0)编辑 收藏

Platform来获取一些系统的路径和参数

在Eclipse的插件开发中,可以通过Platform来获取一些系统的路径和参数。 
假定Eclipse的安装路径为:D:/Java/eclipse 
创建的Workspace路径为:D:/Java/eclipse/workspace 

Platform.getNL():zh_CN 
Platform.getWS():win32 
Platform.getOS():win32 
Platform.getOSArch():x86 
Platform.getStateStamp():155 
Platform.getUserLocation().getURL():file:/D:/Profiles/windowsloginname/user/ 
Platform.getInstallLocation().getURL():file:/d:/Java/eclipse/ 
Platform.getConfigurationLocation().getURL():file:/d:/Java/eclipse/configuration/ 
Platform.getInstanceLocation().getURL():file:/D:/Java/eclipse/workspace/ 
Platform.getLocation():D:/Java/eclipse/workspace 
Platform.getLocation().toOSString():D:/Java/eclipse/workspace 
Platform.getLogFileLocation():D:/Java/eclipse/workspace/.metadata/.log 
Platform.getLogFileLocation().toOSString():D:/Java/eclipse/workspace/.metadata/.log 
Platform.getPluginStateLocation(Platform.getPlugin("NamedPlugin")):D:/Java/eclipse/workspace/.metadata/.plugins/NamedPlugin 
Platform.getPlugin("NamedPlugin").getStateLocation():D:/Java/eclipse/workspace/.metadata/.plugins/NamedPlugin 
Platform.getPlugin("NamedPlugin").getDescriptor():NamedPlugin_1.0.0 
Platform.getPlugin("NamedPlugin").getDescriptor().getLabel():Plug-in Name 
Platform.getPlugin("NamedPlugin").getDescriptor().getProviderName():ProviderName 
Platform.getPlugin("NamedPlugin").getDescriptor().getUniqueIdentifier():NamedPlugin 
Platform.getPlugin("NamedPlugin").getDescriptor().getInstallURL():platform:/plugin/NamedPlugin_1.0.0/ 
Platform.getPlugin("NamedPlugin").getDescriptor().getInstallURL().getPath():/plugin/NamedPlugin_1.0.0/

posted @ 2011-10-25 10:49 Steven_bot 阅读(1481) | 评论 (0)编辑 收藏