锘??xml version="1.0" encoding="utf-8" standalone="yes"?>78色国产精品,高清亚洲高清,国产精品夜夜夜http://www.aygfsteel.com/eagle-daiq/category/40091.htmlzh-cnThu, 18 Jun 2009 08:51:22 GMTThu, 18 Jun 2009 08:51:22 GMT60RCP 甯歌闂瀛︿範鎬葷粨http://www.aygfsteel.com/eagle-daiq/articles/280276.html鏈堜笅瀛ゅ煄鏈堜笅瀛ゅ煄Fri, 05 Jun 2009 13:54:00 GMThttp://www.aygfsteel.com/eagle-daiq/articles/280276.htmlhttp://www.aygfsteel.com/eagle-daiq/comments/280276.htmlhttp://www.aygfsteel.com/eagle-daiq/articles/280276.html#Feedback0http://www.aygfsteel.com/eagle-daiq/comments/commentRss/280276.htmlhttp://www.aygfsteel.com/eagle-daiq/services/trackbacks/280276.html緗戠珯鎺ㄨ崘錛?br /> 1.涓涓猨ava鏂歸潰鐨勫崥瀹紝閲岄潰鏈夊緢澶歟clipse鐨勭瑪璁?
http://liugang594.javaeye.com/category/24822
http://wokanxing.info/2007/05/undo-support-in-rcp/(user:eagle00001)

涓銆丒clipse Product瀵煎嚭浜у搧鍙戠敓涓枃涔辯爜瑙e喅鏂規硶錛?br />     鍦╞uild.properties鏂囦歡涓姞涓?#8220;javacDefaultEncoding..=UTF-8”銆?/p>

浜屻佽rcp寮鍙戠殑浜у搧鎴栨彃浠跺湪姣忔鍚姩紼嬪簭鏃朵繚鎸佹渶鍚庨鍑虹姸鎬侊紝濡備綍瀹炵幇?
    鍦ˋpplicationWorkbenchAdvisor.class綾諱腑閲嶆瀯
    public void initialize(IWorkbenchConfigurer configurer) {
                ...
                //浠ヤ笅鏄柊澧炰唬鐮?br />                 //鏄惁淇濆瓨鏈鍚庣▼搴忕獥鍙g姸鎬?br />                 configurer.setSaveAndRestore(true);
                ...
      }

    涓夈丒clispe Application鏍峰紡璁劇疆(鍨冨溇鍥炴敹鍣ㄦ樉紺恒佺壒鏁堟晥鏋溿乼ab欏甸潰嫻佺嚎鏄劇ず)?
           
        鍦ˋpplicationWorkbenchAdvisor涓坊鍔?/p>

            public void initialize(IWorkbenchConfigurer configurer) {
           
                 IPreferenceStore preStore = PlatformUI.getPreferenceStore();
                //鏄劇ず鐗規晥
                //preStore.setDefault(IWorkbenchPreferenceConstants.ENABLE_ANIMATIONS, true);
                //涓嶆樉紺轟紶緇焧ab鏍峰紡
                preStore.setDefault(IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS,                                         false);
                //鍦ㄧ姸鎬佹爮鏄惁鏄劇ず鍨冨溇鍥炴敹鍣ㄥ姛鑳?br />                 preStore.setDefault(IWorkbenchPreferenceConstants.SHOW_MEMORY_MONITOR, true);
            }

 鍥涖?涓篈ction娣誨姞Command鍛戒護銆佸湪Command鍛戒護binding蹇嵎閿佸茍鍦≒referencePage緋葷粺灞炴т腑緇熶竴璁劇疆Command鍜?nbsp;               Key鐨勬槧灝勩?nbsp;
               
           plugin.xml鏂囦歡璁劇疆Section濡備笅鎵紺猴細

     //澹版槑搴旂敤'棣栭夐」'閰嶇疆欏甸潰
     <extension
         point="org.eclipse.ui.preferencePages">
        //棣栭夐」涓鑸郴緇熷弬鏁拌緗?br />       <page
            class="rcpdemo.preferences.GeneralPreferencePage"
            id="rcpdemo.preferences.GeneralPreferencePage"
            name="General">
      </page>
        //鍦ㄩ閫夐」欏甸潰涓坊鍔犲簲鐢ㄥ叏灞Action蹇嵎閿緗〉闈?br />       <page
            class="org.eclipse.ui.internal.keys.NewKeysPreferencePage"
            id="rcpdemo.preferences.keys"
            name="Keys"/>
   </extension>
   <extension
         point="org.eclipse.core.runtime.preferences">
      <initializer
            class="rcpdemo.preferences.PreferenceInitializer">
      </initializer>
   </extension>
    //澹版槑action鍛戒護   
   <extension
         point="org.eclipse.ui.commands">
        //鍛戒護鍒嗙被鐩綍澹版槑
      <category
            description="Generic Commands Category"
            id="rcpdemo.genericCmdCategory"
            name="甯哥敤鍛戒護鐩綍"/>
        /**鍛戒護澹版槑:id瀵瑰簲鐩稿簲Action綾諱腑鐨勫敮涓鏍囧織id.
         * 娉ㄦ剰錛氶氳繃鏄犲皠浜唊ey鐨凙ction鍦ˋpplicationActionBarAdvisor.java涓殑makeActions鏂?nbsp;
         * 娉曚腑涓瀹氳閫氳繃register鏂規硶娉ㄥ唽璇ction.
        */      
      <command
            categoryId="rcpdemo.genericCmdCategory"
            description="CustomerViewActionCommand"
            id="rcpdemo.actions.CustomerViewAction"
            name="瀹㈡埛瑙嗗浘鍛戒護"/>
        //key緇戝畾commandId鎸囧畾鐨凜ommand.keySequence鎸囧畾鍛戒護蹇嵎閿?鍏朵腑
        //M鏄閿洏鍔熻兘閿法緋葷粺騫沖彴鐨勯氱敤澶勭悊(M1錛欳trl;M2: Shift;M3:Alt).
      <keyBinding
            commandId="rcpdemo.actions.CustomerViewAction"
            keyConfigurationId="org.eclipse.ui.defaultAcceleratorConfiguration"
            keySequence="M1+M2+A"/>  
      <keyBinding
            commandId="org.eclipse.ui.file.exit"
            keyConfigurationId="org.eclipse.ui.defaultAcceleratorConfiguration"
            keySequence="M1+Q"/>        
   </extension>

   
 浜斻丷CP涓竴浜涘彲閲嶇敤鐨凙ctions銆乸ages銆乿iews銆?br />        
       1.閲嶇敤鐨凙ctions鍙湪ActionFactory綾諱腑鎵懼埌銆?br />        2.閲嶇敤鐨刾ages銆乿iews鍙湪ExtensionFactory綾諱腑鎵懼埌銆?br />         <extension point="org.eclipse.ui.views">
          <view
               class="org.eclipse.ui.ExtensionFactory:progressView"
               icon="icons/progress.gif"
               id="org.eclipsercp.hyperbola.views.progress"
               name="Progress"/>
        </extension>
        浠ヤ笂鏄湪plug-in.xml涓紩鐢ㄧ殑閰嶇疆淇℃伅銆傚叾涓璿iew鑺傜偣鐨刢lass灞炴?
        "org.eclipse.ui.ExtensionFactory:progressView"
        -----'org.eclipse.ui.ExtensionFactory':ExtensionFactory綾昏礬寰勩?br />         -----'progressView':ExtensionFactory綾諱腑瀵瑰簲闈欐佺啛鎮夊紁ropressView.



]]>
主站蜘蛛池模板: 万州区| 衡水市| 盐池县| 霍州市| 博湖县| 娄底市| 高台县| 镇江市| 长兴县| 卢氏县| 砚山县| 佛学| 平泉县| 安福县| 长兴县| 和龙市| 高唐县| 云梦县| 建瓯市| 高清| 华宁县| 泰安市| 浦东新区| 嵊州市| 出国| 绥宁县| 葫芦岛市| 二连浩特市| 阳曲县| 资源县| 出国| 建宁县| 兴义市| 赤峰市| 郓城县| 绵竹市| 昭觉县| 广西| 张家口市| 南陵县| 开化县|