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 单飞 阅读(419) 评论(0)  编辑  收藏 所属分类: Eclipse Plugin

只有注册用户登录后才能发表评论。


网站导航: