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

    隨筆檔案

    文章分類

    文章檔案

    相冊

    搜索

    •  

    最新評論

    主站蜘蛛池模板: 亚洲成?v人片天堂网无码| 免费日本黄色网址| 亚洲av永久无码精品漫画| 一级成人a做片免费| 亚洲国产成人久久一区WWW| 免费人成大片在线观看播放电影 | 亚洲精品无码久久| 免费无码A片一区二三区| 亚洲国产模特在线播放| 国产成人精品免费视频大全麻豆| 久久精品亚洲精品国产色婷| 99精品国产成人a∨免费看| 中文字幕亚洲精品资源网| 国产一卡二卡四卡免费| 麻豆狠色伊人亚洲综合网站| AV片在线观看免费| 亚洲精品宾馆在线精品酒店| 四虎影视精品永久免费| 三级黄色在线免费观看| 亚洲AV无码1区2区久久| 亚欧色视频在线观看免费| 亚洲heyzo专区无码综合| 亚洲精品高清在线| 成人性做爰aaa片免费看| 亚洲日韩在线视频| 日韩电影免费在线观看视频| 亚洲精品视频免费| 亚洲综合一区二区精品久久| 好吊妞在线新免费视频| 五级黄18以上免费看| 无码乱人伦一区二区亚洲一| 日韩毛片免费无码无毒视频观看| 亚洲大码熟女在线观看| 国产亚洲av人片在线观看| 亚洲成人在线免费观看| 性色av极品无码专区亚洲| 亚洲理论电影在线观看| 欧美在线看片A免费观看| 亚洲免费无码在线| 亚洲AV无码成人专区| 久久精品国产精品亚洲人人|