<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)

    隨筆檔案

    文章分類

    文章檔案

    相冊

    搜索

    •  

    最新評論

    主站蜘蛛池模板: 亚洲av无码一区二区三区在线播放 | 97se亚洲综合在线| 热99RE久久精品这里都是精品免费 | 午夜视频免费成人| 中文字幕亚洲精品无码| 69成人免费视频| 亚洲国产成人综合| 成人免费a级毛片| 亚洲AV无码成人精品区日韩 | 国产成人3p视频免费观看| 久久精品国产亚洲AV未满十八 | 国产麻豆一精品一AV一免费| 亚洲人成网亚洲欧洲无码久久| 国产高清对白在线观看免费91| 亚洲人成人网站色www| 三级黄色片免费看| 久久精品国产亚洲AV大全| 18禁美女裸体免费网站| 国产精品久久亚洲不卡动漫| 日韩在线免费看网站| 一级a性色生活片久久无少妇一级婬片免费放| 免费一级毛片清高播放| 中文在线观看永久免费| 亚洲男女性高爱潮网站| 免费精品一区二区三区在线观看| 牛牛在线精品观看免费正| 久久精品国产精品亚洲艾| 一区二区无码免费视频网站| 日韩亚洲翔田千里在线| 亚洲av日韩av高潮潮喷无码| 69成人免费视频| 丁香六月婷婷精品免费观看| 久久久久亚洲精品无码系列| 久久久久久久91精品免费观看| 国产亚洲一卡2卡3卡4卡新区| 相泽亚洲一区中文字幕| 麻豆一区二区免费播放网站| 九一在线完整视频免费观看| 亚洲欧洲国产视频| 亚洲国产精品人人做人人爽| 中文字幕免费在线看线人|