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
          主站蜘蛛池模板: 通许县| 湄潭县| 龙井市| 涿州市| 新闻| 来宾市| 永胜县| 浦城县| 无为县| 长宁县| 和顺县| 宁乡县| 安多县| 宝鸡市| 武乡县| 乡宁县| 鄂尔多斯市| 旬阳县| 调兵山市| 闻喜县| 乌兰县| 高雄市| 西安市| 南康市| 淳安县| 新源县| 龙陵县| 无棣县| 沁源县| 武鸣县| 巴彦淖尔市| 九龙城区| 内黄县| 威信县| 景宁| 长春市| 辽阳县| 颍上县| 长沙市| 夹江县| 达尔|