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 單飛 閱讀(437) 評論(0)  編輯  收藏 所屬分類: Eclipse Plugin
          主站蜘蛛池模板: 万源市| 九寨沟县| 定远县| 尤溪县| 葫芦岛市| 定结县| 崇信县| 杭锦后旗| 共和县| 客服| 潮州市| 洪泽县| 金阳县| 额济纳旗| 大连市| 琼结县| 萨嘎县| 任丘市| 荣成市| 合作市| 玛多县| 西青区| 聂荣县| 高密市| 平邑县| 修水县| 洞头县| 郓城县| 定州市| 洛扎县| 屏东市| 普定县| 元阳县| 东丰县| 巢湖市| 锡林郭勒盟| 巴塘县| 五华县| 和林格尔县| 淮南市| 黄石市|