9910

          單飛

             :: 首頁 :: 聯系 :: 聚合  :: 管理
          重載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 單飛 閱讀(442) 評論(0)  編輯  收藏 所屬分類: Eclipse Plugin
          主站蜘蛛池模板: 玉林市| 河源市| 兴隆县| 新疆| 霍州市| 秦安县| 沙湾县| 枣阳市| 辰溪县| 大庆市| 金湖县| 宜都市| 万源市| 襄樊市| 宜良县| 米易县| 井研县| 林州市| 黄梅县| 明光市| 德令哈市| 仁布县| 正阳县| 奎屯市| 汉川市| 图片| 无锡市| 阿拉尔市| 晋州市| 无为县| 昭觉县| 精河县| 托克托县| 阳春市| 青龙| 紫云| 时尚| 尉犁县| 柯坪县| 贡山| 布尔津县|