<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 閱讀(439) 評論(0)  編輯  收藏 所屬分類: Eclipse的相關
    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(3)

    隨筆檔案

    文章分類

    文章檔案

    相冊

    搜索

    •  

    最新評論

    主站蜘蛛池模板: 中文字幕一区二区免费| 免费一级毛片在线播放视频免费观看永久 | 国产精品亚洲精品观看不卡| 亚洲精品国产综合久久久久紧| 国产视频精品免费视频| 亚洲av再在线观看| 免费亚洲视频在线观看| 高清在线亚洲精品国产二区| 特级毛片A级毛片100免费播放| 免费观看久久精彩视频| 国产免费观看视频| 亚洲日韩在线视频| 99在线精品视频观看免费| 亚洲制服在线观看| 免费看美女让人桶尿口| 特级aa**毛片免费观看| 日韩欧毛片免费视频| 亚洲av无码一区二区乱子伦as| 日韩在线视精品在亚洲| 免费看片在线观看| 亚洲高清有码中文字| 免费人成在线观看网站视频| 国产精品午夜免费观看网站| 亚洲av综合av一区| a在线视频免费观看在线视频三区 a毛片成人免费全部播放 | 日本免费大黄在线观看| 亚洲爽爽一区二区三区| 国产一精品一AV一免费| 亚洲喷奶水中文字幕电影| av永久免费网站在线观看 | 国产精品成人啪精品视频免费| 成人免费网站在线观看| 亚洲天堂久久精品| 女人被弄到高潮的免费视频| 一级黄色免费大片| 亚洲高清在线mv| 国产成人精品123区免费视频| 亚洲狠狠色丁香婷婷综合| 亚洲中文字幕无码永久在线| 精品国产亚洲一区二区三区在线观看 | 老司机永久免费网站在线观看|