9910

          單飛

             :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
          重載getAdapter方法:
          public Object getAdapter(Class required) {
                  if (org.eclipse.ui.views.properties.IPropertySheetPage.class
                          .equals(required){
                    org.eclipse.wst.sse.ui.views.properties.PropertySheetConfiguration cfg = createPropertySheetConfiguration();
                          if (cfg != null) {
                              PropertySheet propertySheetPage = new PropertySheet(
                                      this);
                              propertySheetPage.setConfiguration(cfg);
                          }
                     
                  }

          public class PropertySheet extends Page implements
                  IPropertySheetPage {
          public void selectionChanged(IWorkbenchPart part, ISelection selection) {
              //change form part
          }

          posted on 2007-04-24 15:17 單飛 閱讀(437) 評(píng)論(0)  編輯  收藏 所屬分類: Eclipse Plugin
          主站蜘蛛池模板: 隆尧县| 易门县| 永胜县| 丽江市| 巴楚县| 伊金霍洛旗| 府谷县| 荥经县| 江北区| 彭水| 榕江县| 兰州市| 株洲市| 无锡市| 海门市| 江达县| 泉州市| 山阴县| 青海省| 大理市| 宜黄县| 安龙县| 永宁县| 镇平县| 芒康县| 新巴尔虎右旗| 探索| 鹰潭市| 南乐县| 黄石市| 渭南市| 观塘区| 中西区| 平罗县| 门源| 西昌市| 开平市| 德清县| 进贤县| 如皋市| 兴海县|