public class Myplugin implements plugin { public Myplugin() { } public void destroy() { System.out.println("Myplugin is stoping!!!!!!!!!!!!!!!!!!!!!!!!!!"); } public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { System.out.println("myplugin is starin...
by kingkongII - Java文档中心 - 2007-04-29 22:22:00 阅读(626) 回复(0)
public class Myplugin implements plugin { public Myplugin() { } public void destroy() { System.out.println("Myplugin is stoping!!!!!!!!!!!!!!!!!!!!!!!!!!"); } public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { System.out.println("myplugin is staring!!!!!!!!!!!!!!!!!!!!!!!!!!"); 用于系统启动时加载信息 DBManage.context = servlet.getServletCont...
我想为我的blog程序添加plugin的功能。这样以后,别的程序员可以自己扩充功能。 可是如何规划结构,使plugin能够方便添加,删除和扩展。大家有没有什么经验? 比如wordpress的plugin好像就做的不错。经常可以看到为他写plugin的消息。
详细的流程在这里, 有空再翻译: https://developer.mozilla.org/en/XEmbed_Extension_for_Mozilla_plugins 另外的方法是如mplayer-plugin一样使用XReparentWindow的方式实现。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/69656/showart_1923556.html
在学习plugin的过程中发现的一些好的文章,内容,整理起来。 1,一个可以提出问题 http://www.ceclipse.org/bbs 2,一个相对系统的rcp开发教程,pdf格式。入门的好资料。 http://www.ceclipse.org/bbs/read-cec-tid-4457.html 3,eclipse向导中自动生成的几个工程,每个都是入门者的好的参考 4,一个很好的blog,主题是插件开发 http://www.cnblogs.com/bjzhanghao/category/46044.html 5,一个简单、实用、成熟的开源的例子,如果想更近...
原文出处: http://bsd.huangdong.com/dev/eclipseplugin/HellopluginXml/index.html 前言 之前我们在 Eclipse插件开发之新手入门 中使用了一个最简单的过程建立了一个Eclipse的插件。 但是我们没有就任何的细节问题进行说明。我们接下来会就一些细节问题一一深入。 在本文中使用一个例子来说明插件中最为重要的一个文件:plugin.xml的书写方法及其作用。 插件结构 一个Eclipse的插件由哪几部分组成呢?其实很简单的,它由以下...
发现indent格式化以回车换行为行尾的dos格式文件时会导致很乱,现在我只好通过ultraedit来转换成unix文件格式,用indent格式化后,再转换回去,大家有没有好办法呢
int main(int argc, char **argv) { int i; if (argc != 2) { fprintf(stderr, "Usage: %s string\n\a", argv[0]); exit(1); } } 上面这段代码,用indent如何把它格式整理成下面这种? 主要就是希望按层次缩进4个空格,把变量定义和其它部分用一个空行分开。 int main(int argc, char **argv) { int i; if (argc != 2) { fprintf(stderr, "Usage: %s string\n\a", argv[0]); exit(1); } }