如何在自己的透视图(Perspective)里面加入eclipse自带视图,如Project Explorer视图

如何在自己的透视图(Perspective)里面加入eclipse自带视图,如Project Explorer视图

ID:47895769

大小:37.00 KB

页数:5页

时间:2019-10-20

如何在自己的透视图(Perspective)里面加入eclipse自带视图,如Project Explorer视图_第1页
如何在自己的透视图(Perspective)里面加入eclipse自带视图,如Project Explorer视图_第2页
如何在自己的透视图(Perspective)里面加入eclipse自带视图,如Project Explorer视图_第3页
如何在自己的透视图(Perspective)里面加入eclipse自带视图,如Project Explorer视图_第4页
如何在自己的透视图(Perspective)里面加入eclipse自带视图,如Project Explorer视图_第5页
资源描述:

《如何在自己的透视图(Perspective)里面加入eclipse自带视图,如Project Explorer视图》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、如何在自己的透视图(Perspective)里面加入eclipse自带视图,如ProjectExplorer视图呵呵 不好意思,这里我先前理解错了,加入eclipse自带视图直接addView("org.eclipse.ui.views.ResourceNavigator");就可以了下面我先前理解错了,不过有些代码对我还有点价值,这里也不删除了……大家见谅!!!由于这个是用于自己记忆的文章,这里写的可能粗略了点,大家见谅,如果看起来不太理解大家可以直接查看jdk源码中org.eclipse.ui.ide.applica

2、tion的源码,里面代码很少,不难理解,point="org.eclipse.ui.perspectives"这个扩展点便是了。          

3、ass="org.eclipse.ui.internal.ide.application.ResourcePerspective"           id="org.eclipse.ui.resourcePerspective">                   %Perspective.resourceDescription                

4、g.eclipse.ui.perspectiveExtensions">      //这里可以查看扩展点API,org.eclipse.ui.perspectiveExtensions扩展点,id-将添加至透视图的“导航”菜单的“显示在...”提示器的视图的唯一标识。         

5、ui.navigator.ProjectExplorer">                packageorg.eclipse.ui.internal.ide.application;importorg.eclipse.ui.IFolderLayout;importorg.eclipse.ui.IPageLayout;importorg.eclipse.ui.IPerspectiveFactory;importorg.ecl

6、ipse.ui.navigator.resources.ProjectExplorer;importorg.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard;importorg.eclipse.ui.wizards.newresource.BasicNewFolderResourceWizard;/** */publicclassResourcePerspectiveimplementsIPerspectiveFactory{    /**    *Con

7、structsanewDefaultlayoutengine.    */   publicResourcePerspective(){       super();   }   /**    *Definestheinitiallayoutforaperspective.      */   publicvoidcreateInitialLayout(IPageLayoutlayout){       defineActions(layout);       defineLayout(layout);   }   /*

8、*    *Definestheinitialactionsforapage.     *@paramlayoutThelayoutwearefilling    */   publicvoiddefineActions(IPageLayoutlayout){       //Add"newwizards".    

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。