??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品一区毛片,欧美在线一二三四区,亚洲成av人影片在线观看http://www.aygfsteel.com/nemo-zhp/category/5439.html只有甘愿做生zM的小丑,才不会被生活腐蚀zh-cnThu, 28 Jun 2007 14:44:44 GMTThu, 28 Jun 2007 14:44:44 GMT60在Eclipse RCP中用ResourceNavigatorhttp://www.aygfsteel.com/nemo-zhp/archive/2007/06/28/Eclipse-ResourceNavigator.htmlnemonemoWed, 27 Jun 2007 16:30:00 GMThttp://www.aygfsteel.com/nemo-zhp/archive/2007/06/28/Eclipse-ResourceNavigator.htmlhttp://www.aygfsteel.com/nemo-zhp/comments/126688.htmlhttp://www.aygfsteel.com/nemo-zhp/archive/2007/06/28/Eclipse-ResourceNavigator.html#Feedback0http://www.aygfsteel.com/nemo-zhp/comments/commentRss/126688.htmlhttp://www.aygfsteel.com/nemo-zhp/services/trackbacks/126688.html阅读全文

nemo 2007-06-28 00:30 发表评论
]]>
XMLMemento对象的相兛_?/title><link>http://www.aygfsteel.com/nemo-zhp/archive/2007/04/26/Eclipse_XMLMemento.html</link><dc:creator>nemo</dc:creator><author>nemo</author><pubDate>Thu, 26 Apr 2007 10:00:00 GMT</pubDate><guid>http://www.aygfsteel.com/nemo-zhp/archive/2007/04/26/Eclipse_XMLMemento.html</guid><wfw:comment>http://www.aygfsteel.com/nemo-zhp/comments/113871.html</wfw:comment><comments>http://www.aygfsteel.com/nemo-zhp/archive/2007/04/26/Eclipse_XMLMemento.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nemo-zhp/comments/commentRss/113871.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nemo-zhp/services/trackbacks/113871.html</trackback:ping><description><![CDATA[     摘要: 1.分析Eclipse官方包中XMLMementoc,介绍XMLMemento的用; <br>2.提出Eclispe官方发布的XMLMementocȝ~陷与限Ӟ <br>3.提供解决q些~陷与限制的ҎQƈ指出XMLMementocȝ使用场合Q作为XML文g解析器;创徏cMDOM的文件模型?nbsp; <a href='http://www.aygfsteel.com/nemo-zhp/archive/2007/04/26/Eclipse_XMLMemento.html'>阅读全文</a><img src ="http://www.aygfsteel.com/nemo-zhp/aggbug/113871.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nemo-zhp/" target="_blank">nemo</a> 2007-04-26 18:00 <a href="http://www.aygfsteel.com/nemo-zhp/archive/2007/04/26/Eclipse_XMLMemento.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用ResourceNavigator出现的问题解?/title><link>http://www.aygfsteel.com/nemo-zhp/archive/2007/03/29/107134.html</link><dc:creator>nemo</dc:creator><author>nemo</author><pubDate>Thu, 29 Mar 2007 02:09:00 GMT</pubDate><guid>http://www.aygfsteel.com/nemo-zhp/archive/2007/03/29/107134.html</guid><wfw:comment>http://www.aygfsteel.com/nemo-zhp/comments/107134.html</wfw:comment><comments>http://www.aygfsteel.com/nemo-zhp/archive/2007/03/29/107134.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nemo-zhp/comments/commentRss/107134.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nemo-zhp/services/trackbacks/107134.html</trackback:ping><description><![CDATA[ <p> <font face="Arial" size="2"> <span id="wmqeeuq" class="submitted">problem loading ResourceNavigator</span> </font> </p> <p> <font face="Arial" size="2"> <span id="wmqeeuq" class="submitted">关键词:Eclipse RCP, ResourceNavigator</span> </font> </p> <p> <font face="Arial" size="2"> <span id="wmqeeuq" class="submitted">解决者:Eingetragen von Volker Wegert. | So, 04/02/2007 - 13:17</span> </font> </p> <p> <font face="Arial" size="2">When starting an eclipse instance (using the current development version) that uses the ResourceNavigator plugin, you might experience an exception during startup.<br /></font> </p> <font face="Arial" size="2"> <font face="Courier New"> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <span style="color: rgb(0, 0, 0);">!</span> <span style="color: rgb(0, 0, 0);">ENTRY org.eclipse.equinox.registry </span> <span style="color: rgb(0, 0, 0);">4</span> <span style="color: rgb(0, 0, 0);"> </span> <span style="color: rgb(0, 0, 0);">1</span> <span style="color: rgb(0, 0, 0);"> </span> <span style="color: rgb(0, 0, 0);">2007</span> <span style="color: rgb(0, 0, 0);">-</span> <span style="color: rgb(0, 0, 0);">02</span> <span style="color: rgb(0, 0, 0);">-</span> <span style="color: rgb(0, 0, 0);">04</span> <span style="color: rgb(0, 0, 0);"> </span> <span style="color: rgb(0, 0, 0);">13</span> <span style="color: rgb(0, 0, 0);">:</span> <span style="color: rgb(0, 0, 0);">12</span> <span style="color: rgb(0, 0, 0);">:</span> <span style="color: rgb(0, 0, 0);">21.150</span> <span style="color: rgb(0, 0, 0);"> <br /> </span> <span style="color: rgb(0, 0, 0);">!</span> <span style="color: rgb(0, 0, 0);">MESSAGE Unable to create view ID org.eclipse.ui.views.ResourceNavigator: Plug</span> <span style="color: rgb(0, 0, 0);">-</span> <span style="color: rgb(0, 0, 0);">in </span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">org.eclipse.ui.ide</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);"> was unable to instantiate </span> <span style="color: rgb(0, 0, 255);">class</span> <span style="color: rgb(0, 0, 0);"> </span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">org.eclipse.ui.views.navigator.ResourceNavigator</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">.<br /></span> <span style="color: rgb(0, 0, 0);">!</span> <span style="color: rgb(0, 0, 0);">STACK </span> <span style="color: rgb(0, 0, 0);">0</span> <span style="color: rgb(0, 0, 0);"> <br />java.lang.IllegalStateException<br />    at org.eclipse.core.runtime.Platform.getPluginRegistry(Platform.java:</span> <span style="color: rgb(0, 0, 0);">748</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:</span> <span style="color: rgb(0, 0, 0);">723</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.views.navigator.ResourceNavigator.initLinkingEnabled(ResourceNavigator.java:</span> <span style="color: rgb(0, 0, 0);">413</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.views.navigator.ResourceNavigator.</span> <span style="color: rgb(0, 0, 0);"><</span> <span style="color: rgb(0, 0, 0);">init</span> <span style="color: rgb(0, 0, 0);">></span> <span style="color: rgb(0, 0, 0);">(ResourceNavigator.java:</span> <span style="color: rgb(0, 0, 0);">241</span> <span style="color: rgb(0, 0, 0);">)<br />    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:</span> <span style="color: rgb(0, 0, 0);">39</span> <span style="color: rgb(0, 0, 0);">)<br />    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:</span> <span style="color: rgb(0, 0, 0);">27</span> <span style="color: rgb(0, 0, 0);">)<br />    at java.lang.reflect.Constructor.newInstance(Constructor.java:</span> <span style="color: rgb(0, 0, 0);">494</span> <span style="color: rgb(0, 0, 0);">)<br />    at java.lang.Class.newInstance0(Class.java:</span> <span style="color: rgb(0, 0, 0);">350</span> <span style="color: rgb(0, 0, 0);">)<br />    at java.lang.Class.newInstance(Class.java:</span> <span style="color: rgb(0, 0, 0);">303</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:</span> <span style="color: rgb(0, 0, 0);">170</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:</span> <span style="color: rgb(0, 0, 0);">787</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:</span> <span style="color: rgb(0, 0, 0);">243</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:</span> <span style="color: rgb(0, 0, 0);">51</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:</span> <span style="color: rgb(0, 0, 0);">234</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:</span> <span style="color: rgb(0, 0, 0);">69</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:</span> <span style="color: rgb(0, 0, 0);">305</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:</span> <span style="color: rgb(0, 0, 0);">210</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:</span> <span style="color: rgb(0, 0, 0);">566</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:</span> <span style="color: rgb(0, 0, 0);">3881</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:</span> <span style="color: rgb(0, 0, 0);">2905</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:</span> <span style="color: rgb(0, 0, 0);">1948</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:</span> <span style="color: rgb(0, 0, 0);">2888</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:</span> <span style="color: rgb(0, 0, 0);">1696</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.Workbench.access$</span> <span style="color: rgb(0, 0, 0);">11</span> <span style="color: rgb(0, 0, 0);">(Workbench.java:</span> <span style="color: rgb(0, 0, 0);">1681</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.Workbench$</span> <span style="color: rgb(0, 0, 0);">18</span> <span style="color: rgb(0, 0, 0);">.run(Workbench.java:</span> <span style="color: rgb(0, 0, 0);">1560</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:</span> <span style="color: rgb(0, 0, 0);">37</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:</span> <span style="color: rgb(0, 0, 0);">1504</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:</span> <span style="color: rgb(0, 0, 0);">183</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:</span> <span style="color: rgb(0, 0, 0);">751</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.Workbench.init(Workbench.java:</span> <span style="color: rgb(0, 0, 0);">1109</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:</span> <span style="color: rgb(0, 0, 0);">1878</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:</span> <span style="color: rgb(0, 0, 0);">425</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:</span> <span style="color: rgb(0, 0, 0);">149</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:</span> <span style="color: rgb(0, 0, 0);">95</span> <span style="color: rgb(0, 0, 0);">)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:</span> <span style="color: rgb(0, 0, 0);">39</span> <span style="color: rgb(0, 0, 0);">)<br />    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:</span> <span style="color: rgb(0, 0, 0);">25</span> <span style="color: rgb(0, 0, 0);">)<br />    at java.lang.reflect.Method.invoke(Method.java:</span> <span style="color: rgb(0, 0, 0);">585</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:</span> <span style="color: rgb(0, 0, 0);">522</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:</span> <span style="color: rgb(0, 0, 0);">147</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:</span> <span style="color: rgb(0, 0, 0);">104</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:</span> <span style="color: rgb(0, 0, 0);">74</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:</span> <span style="color: rgb(0, 0, 0);">354</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:</span> <span style="color: rgb(0, 0, 0);">170</span> <span style="color: rgb(0, 0, 0);">)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:</span> <span style="color: rgb(0, 0, 0);">39</span> <span style="color: rgb(0, 0, 0);">)<br />    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:</span> <span style="color: rgb(0, 0, 0);">25</span> <span style="color: rgb(0, 0, 0);">)<br />    at java.lang.reflect.Method.invoke(Method.java:</span> <span style="color: rgb(0, 0, 0);">585</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:</span> <span style="color: rgb(0, 0, 0);">339</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.launcher.Main.basicRun(Main.java:</span> <span style="color: rgb(0, 0, 0);">283</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.launcher.Main.run(Main.java:</span> <span style="color: rgb(0, 0, 0);">984</span> <span style="color: rgb(0, 0, 0);">)<br />    at org.eclipse.core.launcher.Main.main(Main.java:</span> <span style="color: rgb(0, 0, 0);">959</span> <span style="color: rgb(0, 0, 0);">)</span> </div> <br /> </font>This causes the navigator view to display nothing but a grey box. It took me some time to figure out what went wrong here, especially since the validation of the plug-in set did not show any problems. You have to enable</font> <br /> <font face="Courier New" size="2"> <br /> </font> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <span style="color: rgb(0, 0, 0);">org.eclipse.core.runtime.compatibility  <br /></span> </div> <font face="Arial" size="2"> <br />in order to get the resource navigator working.<br />------------------------<font size="2"><br /><font size="2">卛_ResourceNavigator在RCPE序中无法正常调用时Q需要在依赖中增加一个兼Ҏ插?/font></font></font> <font size="2"> <span style="color: rgb(0, 0, 0);">org.eclipse.core.runtime.compatibility。这个办法很好地解决了我遇到的问题?/span> </font> <img src ="http://www.aygfsteel.com/nemo-zhp/aggbug/107134.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nemo-zhp/" target="_blank">nemo</a> 2007-03-29 10:09 <a href="http://www.aygfsteel.com/nemo-zhp/archive/2007/03/29/107134.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Eclipse的插件第三种安装Ҏhttp://www.aygfsteel.com/nemo-zhp/archive/2006/04/05/39366.htmlnemonemoWed, 05 Apr 2006 05:44:00 GMThttp://www.aygfsteel.com/nemo-zhp/archive/2006/04/05/39366.htmlhttp://www.aygfsteel.com/nemo-zhp/comments/39366.htmlhttp://www.aygfsteel.com/nemo-zhp/archive/2006/04/05/39366.html#Feedback10http://www.aygfsteel.com/nemo-zhp/comments/commentRss/39366.htmlhttp://www.aygfsteel.com/nemo-zhp/services/trackbacks/39366.html|上有不关于link方式安装Eclipse插g的方法,但不知ؓ什么,照着做了许多ơ,只能以此方式增加一个插件目录,再增加第二个目录时就无论如何找不C。不知道是我的版本有问题q是其他问题QM不知错在哪里Q实在太ȝ?br />q不得已Qؓ了管理我那巨量的eclipse插gQ我采用了另外一U方法:使用配制理选项卡来增加插g?br />具体做法如下Q?br />打开帮助-〉Y件更?〉管理配Ӟ单击EclipseSDK弹出右键菜单栏后Q选择d-〉扩展位|: 
 Snap1.bmp

Ҏ提示Q我们现在创建如下文件结构(文gҎ处位|Q意,但必d含eclipse文g夹及features和plugins子文件夹Q: 

Snap3.bmp

接着在eclipse/目录下创?eclipseextension文gQ注意在windows下不能直接创建此cLӞ需要打开C本,在另存ؓ中保存类?选择all files才可以保存?br />?eclipseextension文g中加入如下代码:
id=org.eclipse.platform name=Eclipse Platform
version
=3.1.1

其中version为所使用的Eclipse版本受?br />然后你希望安装的插件放入eclipse目录下,覆盖features和plugins文g夏V?br />在管理配|中dq个新创建好的扩展位|,重启卛_?br />如果不想用此扩展位置Q只需要将此位|禁用即可?br />是不是比link方式要方便灵zM?



nemo 2006-04-05 13:44 发表评论
]]>
导出Eclipse RCP目心得http://www.aygfsteel.com/nemo-zhp/archive/2006/03/31/38460.htmlnemonemoFri, 31 Mar 2006 05:18:00 GMThttp://www.aygfsteel.com/nemo-zhp/archive/2006/03/31/38460.htmlhttp://www.aygfsteel.com/nemo-zhp/comments/38460.htmlhttp://www.aygfsteel.com/nemo-zhp/archive/2006/03/31/38460.html#Feedback4http://www.aygfsteel.com/nemo-zhp/comments/commentRss/38460.htmlhttp://www.aygfsteel.com/nemo-zhp/services/trackbacks/38460.html

         搞了整整两天才终于将目?/span> Eclipse 中导了出来,|上虽然有许多可供参考的标准导出步骤Q但对于具体的项目来说可能会因ؓ版本的不同或者是插g的不同生各U各L问题。下面是我在导出 RCP E序q程中的一些心得,希望对大?/span> 有些帮助?/font>

  1. 有样学样法则真的是很重要Q特别是当你无法马上理解 Eclipse 内部机制的时候更是如此。自׃个h摸烦很久q不如照着现成的去做更加有效率。可以在导出 RCP 目时察看示例源?/span> Hyperbola Q是一个聊天程序, Eclipse.Rich.Client.Platform.Designing.Coding.and.Packaging.Java.Applications 书中的示例。该书网上有 chm 版本的下载。源码下载链接: http://eclipsercp.org/book/cd.php ?/span> 注意Q当出现错误时一定要照着源码的配|一一的查,重点是检?/span> .product 文g?/span> PDE ?/span> Build MENIFEST.MF 。许多时候一个非常细的差别往往使程序导出失败?/span>
  1. 在发?/span> RCP 以及导出插g包时Q其他相关的插gQ?/span> Required Plugins Q必L包后加蝲q?/span> Eclipse 插g中(可以采用 Link 方式Q,而不能作?/span> WorkSpace 中打开的项目加载在插g依赖中Q这h能顺利将插g?/span> RCP 目导出。或者不加蝲q?/span> Eclipse 插g中,只要其作ؓW三ҎӞ?/span> PDE ?/span> runtime 选项l添加该插g再打包。或者在 WorkSpace 该插仉目中新增加一个文件夹Q在其中攑օ所依赖的插仉。然后在 PDE ?/span> Build 选项l二q制构徏子选项l中其包含也可?/span>
  1. ?/span> PDE ?/span> Build 选项l中的运行时信息Q默认名是一个?/span> . ”,意思是直接?/span> plugins 目录下生?/span> jar 文gQ如果给它v自己的名U的话,会Ҏ那个名称?/span> plugins 目录下生成一个文件夹Q然后在该文件夹里才会有自己?/span> jar 文g。在导出 Eclipse RCP 目ӞL件应该保持默认名Q其生成的 jar 文g?/span> plugins 目录下便存在Q否则便会出现应用程序找不到的错误?/span>
  1. MENIFEST.MF 里面的代码跟最l的l果关系很大。下面把其中的格式复制出来,以便有一些参考性的东西?/span>
 1 Manifest - Version:  1.0
 2 Bundle - ManifestVersion:  2
 3 Bundle - Name: MyProject Plug - in
 4 Bundle - SymbolicName: MyProject; singleton: = true
 5 Bundle - Version:  1.0 . 0
 6 Bundle - Localization: plugin
 7 Require - Bundle: org.eclipse.ui,
 8 org.eclipse.core.runtime,
 9 org.eclipse.core.resources,
10 org.eclipse.ui.ide,
11 Eclipse - AutoStart:  true
12 Export - Package: myProject,
13Bundle-Activator: myProject.MyProjectPlugin

 

 

其中Q?/span>12?/span>Export-PackageҎ你希望外部可见的包,写不写对导出目没有影响?/span>
下面W?/span>13MENIFEST.MF中可能会自动生成Q在导出插g时要注意其LQ否则会产生错误。(具体原因q未知,希望高h指点qh|Q?/span>其他的应该不用说了吧Q!



nemo 2006-03-31 13:18 发表评论
]]>
Eclipse3.0开发的插gE序升到Eclipse3.1l常遇到的一个问?/title><link>http://www.aygfsteel.com/nemo-zhp/archive/2005/12/03/22347.html</link><dc:creator>nemo</dc:creator><author>nemo</author><pubDate>Sat, 03 Dec 2005 09:10:00 GMT</pubDate><guid>http://www.aygfsteel.com/nemo-zhp/archive/2005/12/03/22347.html</guid><wfw:comment>http://www.aygfsteel.com/nemo-zhp/comments/22347.html</wfw:comment><comments>http://www.aygfsteel.com/nemo-zhp/archive/2005/12/03/22347.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nemo-zhp/comments/commentRss/22347.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nemo-zhp/services/trackbacks/22347.html</trackback:ping><description><![CDATA[<P><FONT face=宋体 size=2>最q学?SPAN lang=EN-US>RCP</SPAN>Q于是需要查看一些源码。有些源码在<SPAN lang=EN-US>Eclipse3.0</SPAN>下一炚w题都没有Q可是将<SPAN lang=EN-US>Eclipse SDK</SPAN>更新?SPAN lang=EN-US>3.1</SPAN>后,好多源码都报错,无法q行。而且大多数是同一个错误。具体错误是?SPAN lang=EN-US>META-INF</SPAN>目录下的<SPAN lang=EN-US>MENIFEST.MF</SPAN>中出现的。如下图所C:</FONT><SPAN lang=EN-US><BR><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype><IMG height=82 alt=o_Eclipse3.0-3.1-6.bmp src="http://www.aygfsteel.com/images/blogjava_net/nemo-zhp/5546/o_Eclipse3.0-3.1-6.bmp" width=479 border=0><BR></SPAN><FONT face=宋体 size=2>改了半天也不知道是什么方面的原因。把鼠标攑֜出错提示处,发现有如下图所C的提示Q?/FONT><SPAN lang=EN-US><BR><IMG height=71 alt=o_Eclipse3.0-3.1-11.bmp src="http://www.aygfsteel.com/images/blogjava_net/nemo-zhp/5546/o_Eclipse3.0-3.1-11.bmp" width=480 border=0><BR><BR></SPAN><FONT face=宋体 size=2>然后查找了大量资料,又用<SPAN lang=EN-US>3.1</SPAN>版的<SPAN lang=EN-US>Eclipse</SPAN>自动生成?SPAN lang=EN-US>MENIFEST.MF</SPAN>文gQ看了一下开_比这个插件的开始处?SPAN lang=EN-US>Bundle-SymbolicName</SPAN>中多了这么一:</FONT><SPAN lang=EN-US><BR><FONT face=宋体 size=2>Bundle-SymbolicName:Test; singleton:=true<BR></FONT></SPAN><FONT face=宋体 size=2>那就这句话加上吧!</FONT><SPAN lang=EN-US><BR><IMG height=82 alt=o_Eclipse3.0-3.1-33.bmp src="http://www.aygfsteel.com/images/blogjava_net/nemo-zhp/5546/o_Eclipse3.0-3.1-33.bmp" width=479 border=0><BR><BR></SPAN><FONT face=宋体 size=2>满以ơ应该没什么问题了Q可谁知q是出错。具体报的错误是q样的:</FONT><SPAN lang=EN-US><BR><BR><IMG height=67 alt=Eclipse3.0-3.1-222.bmp src="http://www.aygfsteel.com/images/blogjava_net/nemo-zhp/Eclipse3.0-3.1-222.bmp" width=478 border=0><BR><BR></SPAN><FONT face=宋体 size=2>上面说声明扩展或扩展点的插g必须?SPAN lang=EN-US>"singleton"</SPAN>属性设|ؓ<SPAN lang=EN-US>"true"</SPAN>Q查了所有的扩展和扩展点,都没有发现提CZ所说的<SPAN lang=EN-US>singleton</SPAN>属性,也就当然不知道如何设|ؓ<SPAN lang=EN-US>"true"</SPAN>了?/FONT><SPAN lang=EN-US><BR></SPAN><FONT face=宋体 size=2>后来只好一步一步来Q重新创Z个插件工E,把原来的源代码全部拷q去Q手工添加所有的扩展和扩展点(累呵Q)最后终于找C两个非常l小的差别。相?.0版本的MENIFEST.MFQ?.1版的增加了下面两:<BR>Bundle-ManifestVersion: 2<BR>?BR>Bundle-Localization:plugin。将q两加入MENIFEST.MF文g之后Q错误解决了Q!Q?BR><IMG height=107 alt=o_Eclipse3.0-3.1-55.bmp src="http://www.aygfsteel.com/images/blogjava_net/nemo-zhp/5546/o_Eclipse3.0-3.1-55.bmp" width=483 border=0><BR>I竟是哪一导致上q错误呢Q只LBundle-ManifestVersion:2q一后Q发现错误重新出玎ͼ而只LBundle-Localization:plugin后,错误没有出现?BR>所以我们在遇到上述问题Ӟ可以做如下操作:<BR>1.讄singleton:=trueQ如果仍然没有解决问题:<BR>2.dBundle-ManifestVersion:2<BR>我就是这样将错误修复的。但愿有cMl历的同胞不再受q个问题的困扰?BR>但是Q由于对OSGI以及Eclipse底层的机制不了解Q所以不清楚Z么会出现上述问题Q以及ؓ什么增加此行后׃再报错。希望各位了解的能够指点qh|Q?BR></FONT><SPAN lang=EN-US><BR><BR><BR><o:p></o:p></SPAN></P><img src ="http://www.aygfsteel.com/nemo-zhp/aggbug/22347.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nemo-zhp/" target="_blank">nemo</a> 2005-12-03 17:10 <a href="http://www.aygfsteel.com/nemo-zhp/archive/2005/12/03/22347.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在EclipseRCP中正的加蝲囑փ文ghttp://www.aygfsteel.com/nemo-zhp/archive/2005/11/29/21862.htmlnemonemoTue, 29 Nov 2005 11:21:00 GMThttp://www.aygfsteel.com/nemo-zhp/archive/2005/11/29/21862.htmlhttp://www.aygfsteel.com/nemo-zhp/comments/21862.htmlhttp://www.aygfsteel.com/nemo-zhp/archive/2005/11/29/21862.html#Feedback1http://www.aygfsteel.com/nemo-zhp/comments/commentRss/21862.htmlhttp://www.aygfsteel.com/nemo-zhp/services/trackbacks/21862.html最q一位同事也在用RCP开发,对图像文件的加蝲头疼不已?BR>惌v几个月前我在开发时也有cM的事情发生,于是单ȝ了一下,希望对大家有些用处?BR>׃Eclipse RCP 需要面向不同的q_Q所以不能用一般的Ҏ来加载图元,我们可以使用ImageDescriptorcL对图元进行加载。而且我们在加载完囑օ之后Q必M自将囑օdispose掉,否则有可能会Dpȝ资源泄漏?BR>实现Ҏ一Q?/FONT>

  1. ?/SPAN>Application文g中添加本工程?/SPAN>IDQStringcdQ只要与plugin.xml中的工程ID相同卛_Q?/SPAN>?/SPAN>
  2. 在想要获得图像文件的cM实现createImageDescriptorFor(String id)Ҏ?/SPAN>

具体实现如下Q?/FONT>

public ImageDescriptor createImageDescriptorFor(String id) //id表示囑Ş文g相对于本工程的默认\?/SPAN>.

{

URL url = Platform.getBundle(pluginId).getEntry(id);//pluginId表示本工E的ID.
return ImageDescriptor.createFromURL(url);

}
实现Ҏ二:
调用org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin(String pluginId, String imageFilePath)Ҏ?BR>仍然需要定义pluginId?BR>举例Q假设我们的囑փ文g为本工程?icons/image.gif?BR>那么我们要加载图元可以用一下语句:
Image image1 = org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, "/icons/image.gif");



nemo 2005-11-29 19:21 发表评论
]]>
往Eclipse RCP视图中添加右键弹单(一Q?/title><link>http://www.aygfsteel.com/nemo-zhp/archive/2005/11/29/21861.html</link><dc:creator>nemo</dc:creator><author>nemo</author><pubDate>Tue, 29 Nov 2005 11:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/nemo-zhp/archive/2005/11/29/21861.html</guid><wfw:comment>http://www.aygfsteel.com/nemo-zhp/comments/21861.html</wfw:comment><comments>http://www.aygfsteel.com/nemo-zhp/archive/2005/11/29/21861.html#Feedback</comments><slash:comments>12</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nemo-zhp/comments/commentRss/21861.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nemo-zhp/services/trackbacks/21861.html</trackback:ping><description><![CDATA[<P><FONT size=2>往eclipse的默认NavigationView中,d右键菜单Ҏ非常Ҏ的,甚至不需要自己写代码Q只要在plugin.xml中添加扩展项便可以了?BR>但是q远q达不到我们的要求。如果要我们在自qrcpE序的View中添加右键弹单就不是很容易了。现在我介绍一下如何在一个树视图中针对不同的TreeObjectd不同的右键弹单的Ҏ?BR>如果不清楚如何构Z个树Q请参?/FONT><A ><FONT size=2>http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/CatalogSWT-JFace-Eclipse.htm</FONT></A><FONT size=2>, q里有很多关于eclipse Tree的实例。简单将来,Eclipse中创建树有两U,一U是使用SWT提供的树Q依照一定的格式l其提供数据Q我自己只用q种Ҏ创徏一些简单的、静态的树。另一U方法,针对于RCPE序Q可以用JFace提供的TreeViewerc,非常灉|q且易于扩展。用TreeViewer需要实现ITreeContentProvider接口和ITreeLableProvider接口。由于我的时间有限,不能向大家提供具体的实现ҎQ请原谅。可以参考以下文章:</FONT><A ><FONT size=2>http://eclipse.org/articles/treeviewer-cg/TreeViewerArticle.htm</FONT></A><BR><FONT size=2>在大体了解了如何构造一个树之后Q我们下面就来介l右键弹单context menu的实现方法?BR>一个TreeViewer 必须l承ViewPartҎQƈ且重写其中的createPartControl(Composite parent)cR?/FONT><BR><BR><FONT style="BACKGROUND-COLOR: #ffffff" face=Tahoma color=#000080><FONT size=2><FONT style="BACKGROUND-COLOR: #9acd32" color=#000080>1  </FONT>   public void createPartControl(Composite parent) {<BR><FONT style="BACKGROUND-COLOR: #9acd32">2  </FONT><BR><FONT style="BACKGROUND-COLOR: #9acd32">3  </FONT>   /* Set the imput data and image model of the tree viewer,<BR><FONT style="BACKGROUND-COLOR: #9acd32">4  </FONT>    * and layout the viewer on the left part of the composite.<BR><FONT style="BACKGROUND-COLOR: #9acd32">5  </FONT>    */<BR><FONT style="BACKGROUND-COLOR: #9acd32">6  </FONT>    viewer = new TreeViewer(parent);<BR><FONT style="BACKGROUND-COLOR: #9acd32">7  </FONT>    viewer.setContentProvider(new ViewContentProvider());<BR><FONT style="BACKGROUND-COLOR: #9acd32">8  </FONT>    viewer.setLabelProvider(new ViewLabelProvider());<BR><FONT style="BACKGROUND-COLOR: #9acd32">9  </FONT>    viewer.setInput(createDummyModel());<BR><FONT style="BACKGROUND-COLOR: #9acd32">10</FONT><BR><FONT style="BACKGROUND-COLOR: #9acd32">11</FONT>   createActions();<BR><FONT style="BACKGROUND-COLOR: #9acd32">12</FONT>   createMenus();<BR><FONT style="BACKGROUND-COLOR: #9acd32">13</FONT>   createContextMenu(parent);<BR></FONT></FONT><FONT style="BACKGROUND-COLOR: #ffffff" face=Tahoma color=#000080><FONT size=2><FONT style="BACKGROUND-COLOR: #9acd32">14</FONT><BR><FONT style="BACKGROUND-COLOR: #9acd32">15</FONT>   //handles the actions related with treeviewer.<BR><FONT style="BACKGROUND-COLOR: #9acd32">16</FONT>   makeActions(parent);<BR></FONT></FONT><FONT style="BACKGROUND-COLOR: #000080"><FONT face=Tahoma><FONT style="BACKGROUND-COLOR: #ffffff" color=#000080><FONT size=2><FONT style="BACKGROUND-COLOR: #9acd32">17</FONT> }<BR></FONT><FONT color=#000000><FONT size=2>其中Q第7?行ؓ讄TreeViewer的内Ҏ供器、图像提供器、以及初始化时的输入数据。第13行ؓ创徏右键弹出菜单?BR><BR></FONT><FONT color=#000080><FONT size=2><FONT style="BACKGROUND-COLOR: #9acd32">1  </FONT>   private void createContextMenu(Composite parent) { <BR><FONT style="BACKGROUND-COLOR: #9acd32">2  </FONT><BR><FONT style="BACKGROUND-COLOR: #9acd32">3  </FONT>       MenuManager mgr = new MenuManager(); <BR><FONT style="BACKGROUND-COLOR: #9acd32">4  </FONT>       mgr.setRemoveAllWhenShown(true); <BR><FONT style="BACKGROUND-COLOR: #9acd32">5  </FONT>       mgr.addMenuListener(new IMenuListener() { <BR><FONT style="BACKGROUND-COLOR: #9acd32">6  </FONT>           public void menuAboutToShow(IMenuManager manager) { <BR><FONT style="BACKGROUND-COLOR: #9acd32">7  </FONT>              fillContextMenu(manager); <BR><FONT style="BACKGROUND-COLOR: #9acd32">8  </FONT>           } <BR><FONT style="BACKGROUND-COLOR: #9acd32">9  </FONT>       }); <BR><FONT style="BACKGROUND-COLOR: #9acd32">10</FONT><FONT style="BACKGROUND-COLOR: #ffffff">     Menu menu = mgr.createContextMenu(viewer.getControl()); </FONT><BR><FONT style="BACKGROUND-COLOR: #9acd32">11</FONT>     viewer.getControl().setMenu(menu); <BR><FONT style="BACKGROUND-COLOR: #9acd32">12</FONT>     getSite().registerContextMenu(mgr, viewer); <BR><FONT style="BACKGROUND-COLOR: #9acd32">13</FONT>   }<BR></FONT><FONT face="Times New Roman" color=#000000><FONT size=2>W?行代码中QsetRemoveAllWhenShown(true)的作用是清空以前昄的菜单项Q当触发了menu事gӞ重新填充QfillContextMenuQ,所以如果不把removeAllWhenShow|ؓtrue的话Q每点一下右键你׃看到菜单多Z倍来。Menu是swt的控Ӟ而Menumanager是Jface中的控gQ不象SWT那样直接同底层打交道。用MenuManager可以创徏Z个Menu对象。第十行</FONT><FONT face=Tahoma color=#000080><FONT size=2>mgr.createContextMenu(viewer.getControl());</FONT><FONT face="Times New Roman" color=#000000><FONT size=2>q里的viewer即ؓ上面的viewer。第十一行,然后我们树的setMenuҎ树控g与Menu控g联系在一起就好了?BR>最重要的是W十二行Q这是context menu能不能显C的关键。一个视图中可以有多个context menu, 而每一个context menu都必L册给workbench。这需要通过调用</FONT><FONT face=Tahoma color=#000080><FONT size=2>org.eclipse.ui.IWorkbenchPartSite.registerContextMenu(MenuManager menuManager, ISelectionProvider selectionProvider)<FONT face="Times New Roman" color=#000000>或者(当有多个注册的context menuӞ</FONT>org.eclipse.ui.IWorkbenchPartSite.registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider) </FONT><FONT face="Times New Roman" color=#000000><FONT size=2>增加的参数menuId用于区分不同的context menu?BR>接下来,我们有两U方法来创徏右键弹出菜单V第一U,实现fillContextMenu()Ҏ。典型的实现代码如下Q?BR></FONT><FONT color=#000080><FONT face=Tahoma><FONT size=2><FONT style="BACKGROUND-COLOR: #9acd32">1  </FONT>   protected void fillContextMenu(IMenuManager manager) {<BR><FONT style="BACKGROUND-COLOR: #9acd32">2  </FONT><BR><FONT style="BACKGROUND-COLOR: #9acd32">3  </FONT>       manager.add(openAction);<BR><FONT style="BACKGROUND-COLOR: #9acd32">4  </FONT>       manager.add(removeAction);<BR><FONT style="BACKGROUND-COLOR: #9acd32">5  </FONT>       manager.add(addAction);<BR><FONT style="BACKGROUND-COLOR: #9acd32">6  </FONT>            }  <BR></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT><BR><FONT size=2>q些Action都可p己定义创建?BR>另外的方法,可以~辑plugin.xml文g。不需要自己写M代码便可以显C出自己惌的弹出项?BR>q次先讲到这里,下次介绍另外的一U实现方式。(主要是由于刚创徏BlogQ不知道如何插入囄Q这么写太费劲也太枯燥了Q相信大家一定不能忍了吧Q咱们下ơ再?/FONT><IMG height=19 src="http://www.aygfsteel.com/Emoticons/regular_smile.gif" width=19 border=0>Q?/P><img src ="http://www.aygfsteel.com/nemo-zhp/aggbug/21861.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nemo-zhp/" target="_blank">nemo</a> 2005-11-29 19:14 <a href="http://www.aygfsteel.com/nemo-zhp/archive/2005/11/29/21861.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">üɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̫</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank">÷</a>| <a href="http://" target="_blank">dz</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¡</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">齭</a>| <a href="http://" target="_blank">ڰ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">Ϲ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˼</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">֬</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>