Archive for April 4th, 2005
别偏信ria
Posted on April 4, 2005 - Filed Under Uncategorized
别偏信ria
ria没有5年成不了气候
你想做开拓者么
最后还不是落得替别人开路的下场
我还嫌目前的技术不够成熟
新技术?no way
下一代的web
再等10年吧
这10年不用吃饭吗
Jetty Launcher patch for eclipse 3.1M6
Posted on April 4, 2005 - Filed Under Uncategorized
提示出错
Plug-in com.iw.plugins.jettylauncher was unable to load class
com.iw.plugins.jetty.launcher.JettyLaunchConfigurationDelegate.
从cvs下载jetty launcher的代码
导入到eclipse 3.1M6,若干编译错误
遂导入到eclipse 3.1M5a,没有编译错误
看来是3.1M6的API有所变化
对比发现三个问题
1、JavaLocalApplicationLaunchConfigurationDelegate的继承树改了,这个还不是关键,关键是还改名了
这是原来的继承树
AbstractJavaLaunchConfigurationDelegate
|–JavaAppletLaunchConfigurationDelegate
|–JavaLocalApplicationLaunchConfigurationDelegate
| \–JettyLaunchConfigurationDelegate
|–JavaRemoteApplicationLaunchConfigurationDelegate
\–SerialVersionLaunchConfigurationDelegate
这是新的继承树
AbstractJavaLaunchConfigurationDelegate
|–JavaLaunchDelegate
| \–JavaAppletLaunchConfigurationDelegate
|–JavaRemoteApplicationLaunchConfigurationDelegate
\–SerialVersionLaunchConfigurationDelegate
因此将
public final class JettyLaunchConfigurationDelegate extends JavaLocalApplicationLaunchConfigurationDelegate
改成
public final class JettyLaunchConfigurationDelegate extends JavaLaunchDelegate
2、方法
public static void relaunch(ILaunch launch) {
relaunch(launch.getLaunchConfiguration(), launch.getLaunchMode());
}
没了
因此将
RelaunchActionDelegate.relaunch(launch);
改成
RelaunchActionDelegate.relaunch(launch.getLaunchConfiguration(), launch.getLaunchMode());
3、WorkbenchMessages.getString()取消了
改成static String的形式,似乎是认为这样性能比较高
因此将若干WorkbenchMessages.getString()改成static String
例如
WorkbenchMessages.getString(”SelectionDialog.selectLabel”)
改成
WorkbenchMessages.SelectionDialog_selectLabel
将
WorkbenchMessages.getString(”ContainerSelectionDialog.title”)
改成
“ContainerSelectionDialog.title”
因为并没有这个properties,getString()会返回原值
随便把for jetty 5.1.x的patch加上,然后用JDK 1.4模式编译一次
覆盖修改文件进jettylauncher.jar
成功