??xml version="1.0" encoding="utf-8" standalone="yes"?>一区二区三区视频国产日韩,992tv在线成人免费观看,国产精品国产一区二区http://www.aygfsteel.com/stamp/archive/2005/09/23/13861.htmlstampstampFri, 23 Sep 2005 12:57:00 GMThttp://www.aygfsteel.com/stamp/archive/2005/09/23/13861.htmlhttp://www.aygfsteel.com/stamp/comments/13861.htmlhttp://www.aygfsteel.com/stamp/archive/2005/09/23/13861.html#Feedback0http://www.aygfsteel.com/stamp/comments/commentRss/13861.htmlhttp://www.aygfsteel.com/stamp/services/trackbacks/13861.html    在进行文本编辑器的开发时候,l常会遇到对相关内容的提C,可以通过如下代码实现SourceViewerConfiguration?BR>public IContentAssistant getContentAssistant(ISourceViewer sourceViewer)
 {
     ContentAssistant assistant = new ContentAssistant();
     assistant.setContentAssistProcessor   (new   XMLCompletionProcessor (),  XMLPartitionScanner.XML_TAG);
     assistant.enableAutoActivation(true);
     assistant.setAutoActivationDelay(250);
     assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
     assistant.setProposalSelectorBackground(ColorManager.background);
     assistant.setProposalSelectorForeground(ColorManager.foreground);
     return assistant;
 }
其中XMLCompletionProcessor 主要实现IContentAssistProcessor接口Q内容辅助主要实现接口中?BR>public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset)
 {
    for (int i = 0; i < 5;i++)
   {
        result[i] = new CompletionProposal("bbb", documentOffset, 0, 3, null,     
                   "aaa",null, "");
   }  
   return result;
 }
此时会在辅助框中出现5个aaa,当确定后Q补充到文本~辑器的相应位置是bbb,具体参数的说明请见API说明?/P>

stamp 2005-09-23 20:57 发表评论
]]>
xml~辑?/title><link>http://www.aygfsteel.com/stamp/archive/2005/09/19/13446.html</link><dc:creator>stamp</dc:creator><author>stamp</author><pubDate>Mon, 19 Sep 2005 11:56:00 GMT</pubDate><guid>http://www.aygfsteel.com/stamp/archive/2005/09/19/13446.html</guid><wfw:comment>http://www.aygfsteel.com/stamp/comments/13446.html</wfw:comment><comments>http://www.aygfsteel.com/stamp/archive/2005/09/19/13446.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/stamp/comments/commentRss/13446.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/stamp/services/trackbacks/13446.html</trackback:ping><description><![CDATA[     今天惛_一个xml~辑器,首先要解决的是能够定错误节点在文件中的行Q开始想参考一下plugin.xml~辑器的实现方式Q可是机器M挣气Q调试到里面Q过一D|间就报内存不뀂后来,想了惻I能否在进行xml解析的过E中Q把行号存储到节点对象中Q终于发现在org.apache.xerces.impl包中有具体的实现。可是这样在文g保存的时候,q行xml校验是可行的。{而一惻I如果在编辑文件的时候验证xml的合法行Q如果L重新解析内存文gQ把行号存储到节点中Q是不是最佳的ҎQ不知道plugin.xml的哪个model是什么样的,是否在每ơ进行文件编辑的时候,都要重新updateq个modelQ如果这PN不媄响编辑效率吗Q看来只有l努力了?BR>    <img src ="http://www.aygfsteel.com/stamp/aggbug/13446.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/stamp/" target="_blank">stamp</a> 2005-09-19 19:56 <a href="http://www.aygfsteel.com/stamp/archive/2005/09/19/13446.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>eclipse的linkhttp://www.aygfsteel.com/stamp/archive/2005/09/09/12593.htmlstampstampFri, 09 Sep 2005 12:28:00 GMThttp://www.aygfsteel.com/stamp/archive/2005/09/09/12593.htmlhttp://www.aygfsteel.com/stamp/comments/12593.htmlhttp://www.aygfsteel.com/stamp/archive/2005/09/09/12593.html#Feedback0http://www.aygfsteel.com/stamp/comments/commentRss/12593.htmlhttp://www.aygfsteel.com/stamp/services/trackbacks/12593.htmlEclipse插g使用links目录的用法:
 假设把插件安装在d:\myplugin目录中,则myplugin的目录结构一定要是这LQ?BR>  d:\myplugin\eclipse\plugins\插g ?d:\myplugin\eclipse\features\插g
  例如安装EclipseME插g到d:\myplugin目录中,则目录结构d:\myplugin\eclipse\plugins\eclipseme_0.4.5?BR>  再假设eclipse安装在d:\eclipse目录中,则在eclipse目录中创建名UCؓlinks的目录,在links目录中徏立一个link文gQ比如myplugin.linkQ该文g内容为path=d:\myplugin?BR>  启动eclipseQ插件即安装上了Q如果想暂时不启动插Ӟ只需把myplugin.link文g删除卛_?BR>补充说明Q?BR> 1. 插g可以分别安装在多个自定义的目录中?BR> 2. 一个自定义目录可以安装多个插g?BR> 3. link文g的文件名及扩展名可以取Q意名Uͼ比如myplugin.txtQgoodplugin都可以?BR> 4. link文g可以有多行path=插g目录Q对应多个自定义插g目录Q每一行的path参数都将生效?BR> 5. 在links目录也可以有多个link文gQ每个link文g中的path参数都将生效?BR> 6. 插g目录可以使用相对路径Q如果我们把myplugin目录创徏在eclipse安装目录中,如上例中的d:\eclipse目录中,则只需讄path=myplugin卛_



stamp 2005-09-09 20:28 发表评论
]]>
nature和builder的添?/title><link>http://www.aygfsteel.com/stamp/archive/2005/09/06/12249.html</link><dc:creator>stamp</dc:creator><author>stamp</author><pubDate>Tue, 06 Sep 2005 11:48:00 GMT</pubDate><guid>http://www.aygfsteel.com/stamp/archive/2005/09/06/12249.html</guid><wfw:comment>http://www.aygfsteel.com/stamp/comments/12249.html</wfw:comment><comments>http://www.aygfsteel.com/stamp/archive/2005/09/06/12249.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/stamp/comments/commentRss/12249.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/stamp/services/trackbacks/12249.html</trackback:ping><description><![CDATA[    目nature和builder都会?project文g中看刎ͼ如下Q?BR><BUILDSPEC><buildSpec><BR>  <buildCommand><BR>   <name>org.eclipse.jdt.core.javabuilder</name><BR>   <arguments><BR>   </arguments><BR>  </buildCommand><BR>   <buildCommand><BR>   <name>org.eclipse.pde.SchemaBuilder</name><BR>   <arguments><BR>   </arguments><BR>  </buildCommand><BR> </buildSpec><BR> <natures><BR>  <nature>org.eclipse.pde.PluginNature</nature><BR>  <nature>org.eclipse.jdt.core.javanature</nature><BR> </natures><BR> </NATURES><BR>    builder主要在项目构建时使用Qnature主要用来区分目Q项目的图标主要q一个natures来决定,在plugin.xml文g对org.eclipse.core.resources.natures和org.eclipse.core.resources.builders扩展点进行扩展后Q可以通过如下Ҏnatured到项目中Q?buildercM实现,api查看IProjectDescriptionQ?BR> private static boolean addNature(IProject prj) throws Exception {<BR>  IProjectDescription description = prj.getDescription();<BR>  String onatures[] = description.getNatureIds();<BR>  String[] natures = new String[onatures.length + 1];<BR>  natures[0] = "cn.aaa.bbb.natures";  //Ҏplugin.xml文g配置军_<BR>  System.arraycopy(onatures, 0, natures, 1, onatures.length);<BR>  description.setNatureIds(natures);<BR>  prj.setDescription(description, null);<BR>  return true;<BR> }<img src ="http://www.aygfsteel.com/stamp/aggbug/12249.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/stamp/" target="_blank">stamp</a> 2005-09-06 19:48 <a href="http://www.aygfsteel.com/stamp/archive/2005/09/06/12249.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>目属性图?/title><link>http://www.aygfsteel.com/stamp/archive/2005/09/02/11850.html</link><dc:creator>stamp</dc:creator><author>stamp</author><pubDate>Fri, 02 Sep 2005 13:09:00 GMT</pubDate><guid>http://www.aygfsteel.com/stamp/archive/2005/09/02/11850.html</guid><wfw:comment>http://www.aygfsteel.com/stamp/comments/11850.html</wfw:comment><comments>http://www.aygfsteel.com/stamp/archive/2005/09/02/11850.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/stamp/comments/commentRss/11850.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/stamp/services/trackbacks/11850.html</trackback:ping><description><![CDATA[      在进行eclipse开发的时候,你有可能看到一般项目和Java目的区别是Java目的文件夹上有个带J的小图标Q最q在q行插g开发的时候,自己为项目添加了nature和builder属性,Z区别与Java目的区别,也需要在自己的项目上d一个图片,实现Ҏ非常单,只需要在plugin.xml文g中配|如下代码:<BR><extension point="org.eclipse.ui.projectNatureImages"><BR> <image<BR>  id="com.aaa.bbb"<BR>  natureId="com.aaa.bbb.nature"<BR>         icon="icons/nature.gif"><BR> </image><BR></extension><BR>其中natureId是项目具有的属?img src ="http://www.aygfsteel.com/stamp/aggbug/11850.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/stamp/" target="_blank">stamp</a> 2005-09-02 21:09 <a href="http://www.aygfsteel.com/stamp/archive/2005/09/02/11850.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>资源侦听http://www.aygfsteel.com/stamp/archive/2005/08/30/11585.htmlstampstampTue, 30 Aug 2005 12:13:00 GMThttp://www.aygfsteel.com/stamp/archive/2005/08/30/11585.htmlhttp://www.aygfsteel.com/stamp/comments/11585.htmlhttp://www.aygfsteel.com/stamp/archive/2005/08/30/11585.html#Feedback0http://www.aygfsteel.com/stamp/comments/commentRss/11585.htmlhttp://www.aygfsteel.com/stamp/services/trackbacks/11585.html

stamp 2005-08-30 20:13 发表评论
]]>
eclipse随想http://www.aygfsteel.com/stamp/archive/2005/08/29/11499.htmlstampstampMon, 29 Aug 2005 14:10:00 GMThttp://www.aygfsteel.com/stamp/archive/2005/08/29/11499.htmlhttp://www.aygfsteel.com/stamp/comments/11499.htmlhttp://www.aygfsteel.com/stamp/archive/2005/08/29/11499.html#Feedback1http://www.aygfsteel.com/stamp/comments/commentRss/11499.htmlhttp://www.aygfsteel.com/stamp/services/trackbacks/11499.html

stamp 2005-08-29 22:10 发表评论
]]>
վ֩ģ壺 | ̫| | ʡ| | | | | ʡ| | | Ͼ| ̨ǰ| | | | ɽ| ī| ֬| ɰ| Ӷ| â| | | | | | | | | Һ| | Զ| | β| | | | Ȫ| ˫| |