<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 1,  comments - 25,  trackbacks - 0

    For eclipse quick fix. There are lots of articles introduce how to add a marker but no reference to how to implement the Proposal .
    Now i will give the solution:
    First. Add the marker. It's the sample one:
    1. Declare the marker extension point : org.eclipse.core.resources.markers, //Here should be clear: there are some args should be declared in pulg.in. xml file. which will be used in your code.
         and implement the IMarkerResolutionGenerator2 interface. //Generate the generator.
    2. User IResource.createMarker(....) API to create the marker. // Here will give your delcared marker type.
    3. Your editor must have a configure file which extends from SourceViewerConfiguration. There is a important API for our quick fix function is: getQuickAssistAssistant();
    4. So you should implement the IQuickAssistAssistant, ( I extends from JavaCorrectionAssistant the in my code) and regesit it at step 4.
    5. The class implement the IQuickAssistAssistant which will set a IQuickAssistProcessor instance for execute qiuck fix. API is setQuickAssistProcessor();
    6. in IQuickAssistAssistant  interface the most important API is computeQuickAssistProposals(IQuickAssistInvocationContext). which will be return ICompletionProposal[]  this API is used to finish your business.
    7. So some body will ask that when we will use the eclipse extension point : org.eclipse.ui.ide.markerResolution
       Now. see the  ICompletionProposal[]  return type at step 6? There have a implement class called MarkerResolutionProposal(), Let 's say it's constructor
     public MarkerResolutionProposal(IMarkerResolution resolution, IMarker marker)
     See here the org.eclipse.ui.ide.markerResolution extension point is used here. but the MarkerResolutionProposal seems only used in java syntax.
    So if your have another grammer. please new a interface to extends from ICompletionProposal.
    8. The details implement will be finished in class which implement IMarkerResolution. at run() API

    If i have some time i will update some class diagram for this function.

    posted on 2009-06-09 20:46 Daniel 閱讀(445) 評論(0)  編輯  收藏 所屬分類: Eclipse的相關
    <2025年7月>
    293012345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    常用鏈接

    留言簿(3)

    隨筆檔案

    文章分類

    文章檔案

    相冊

    搜索

    •  

    最新評論

    主站蜘蛛池模板: 产传媒61国产免费| 大桥未久亚洲无av码在线 | 久久99亚洲综合精品首页| 亚洲综合一区国产精品| 欧洲乱码伦视频免费| 亚洲成人免费网址| 99久久久精品免费观看国产 | 亚洲第一区精品观看| 男女猛烈激情xx00免费视频| 人人狠狠综合久久亚洲高清| 免费很黄无遮挡的视频毛片| 亚洲欧洲国产成人综合在线观看| 免费人成动漫在线播放r18| 亚洲成A人片在线观看无码3D| caoporn国产精品免费| 亚洲午夜久久久久久久久久| 在线观看黄片免费入口不卡| 久久亚洲免费视频| 免费在线观看h片| 亚洲国产精品精华液| 亚洲 另类 无码 在线| 久久久久国色AV免费观看| 亚洲A∨无码一区二区三区| 永久在线观看www免费视频| 亚洲香蕉久久一区二区| 免费观看大片毛片| 一级做a爰片久久毛片免费看 | 亚洲国产精久久久久久久 | 成人免费一区二区三区在线观看| 亚洲av无码专区在线观看下载| 亚洲高清偷拍一区二区三区| 国产成人无码区免费内射一片色欲| 亚洲婷婷综合色高清在线| 午夜爱爱免费视频| 久久久免费观成人影院| 亚洲国产精品综合久久久| 日韩一级免费视频| 精品视频一区二区三区免费| 亚洲人成网国产最新在线| 亚洲人成无码www久久久| 18禁止看的免费污网站 |