`
soleegn
  • 浏览: 145802 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
阅读更多

下午正式开始RCP开发,于是乎轻车熟路的开始打基础框架。
       
       1. 建RCP项目
       2. 复制Form的jar包
       3. 写第一次使用时需要维护信息的Wizard和WizardPage
       4. 写用户登录窗口
       5. 在ApplicationWorkbenchWindowAdvisor中增加最大化代码,在ApplicationWorkbenchAdvisor中增加保存用户配置的代码

1    public void postWindowOpen(){
2        this.getWindowConfigurer().getWindow().getShell().setMaximized(true);
3    }

 

1    public void initialize(IWorkbenchConfigurer configurer) {
2         configurer.setSaveAndRestore(true);
3    }


       5. 写Perspective们

       6. 写View们
       7. 给Perspective们分配View们
    run一下看看~晕,什么都不出来~Why!

    寻了一大圈才发现问题出在第五步给ApplicationWorkbenchAdvisor中增加保存用户配置的代码上~注释掉configurer.setSaveAndRestore(true);就一切正常了。

    非常之不解,难道是我再给Perspective们分配View们之前已经run过了,所以记录了我的布局方式了?不至于这么白痴吧~
希望知道的大哥给解释一下~
分享到:
评论

相关推荐

    Perspective切换

    在IT行业中,"Perspective切换"是一个非常关键的概念,尤其在使用集成开发环境(IDE)如Eclipse时。Perspective可以被理解为一种工作空间布局,它定义了用户界面中各个视图和编辑器的位置、大小以及它们如何交互。这...

    perspective.js:变换图像的透视图并将其绘制在画布上

    Perspective.js Perspective.js是一个JavaScript库,可让您将矩形图像转换为画布元素上四边形的任意形式。 它用于在画布上使用透视图绘制图像。 这是原始的Futomi Hatano的Perspective.js的衍生作品可在。 从NPM安装...

    perspective_effect效果展示

    透视效果(Perspective Effect)是一种视觉艺术技巧,它在计算机图形学中被广泛应用于图像处理,尤其是使用OpenCV这样的库来实现。OpenCV是一个强大的开源计算机视觉库,它提供了多种功能,包括图像处理、特征检测、...

    Computer Systems A Programmer's Perspective(2nd) 无水印pdf

    Computer Systems A Programmer's Perspective(2nd) 英文无水印pdf 第2版 pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自...

    Machine Learning-A Bayesian and Optimization Perspective.pdf

    根据提供的文件信息,这份文件的标题为 "Machine Learning-A Bayesian and Optimization Perspective.pdf",描述部分为 "Mechine Learning A Bayesian and optimization perspective",标签为 "Mechine Learning",...

    OpenGL视角LooAt及Perspective理解

    OpenGL视角LooAt及Perspective理解 glm::mat4 projection = glm::perspective(fovyInRadians, aspect, zNear, zFar); void gluLookAt(GLdouble eyeX, GLdouble eyeY, GLdouble eyeZ, GLdouble centerX, ...

    Modern Compressible Flow With Historical Perspective 3rd

    1. 书籍信息:《Modern Compressible Flow With Historical Perspective 3rd》(《具有历史视角的现代可压缩流动 第三版》)是由John D. Anderson, Jr. 所著。本书属于McGraw-Hill系列,该系列专注于航空与航天工程...

    Digital Integrated Circuits-A-Design-Perspective(第二版)

    《Digital Integrated Circuits - A Design Perspective》第二版是由Jan M Rabaey编著的一本经典教材,涵盖了数字集成电路设计的全面知识。这本书以其深入浅出的讲解方式,为读者提供了现代数字集成电路设计的综合...

    Computer Systems A Programmer's Perspective Third Edition.pdf

    Computer Systems A Programmer's Perspective Third Edition.pdf 深入理解计算机系统(原书第2版)的英文版本. 程序员必读经典著作!理解计算机系统*书目,10万程序员共同选择。 作者:(美)兰德尔?E.布莱恩特...

    Machine learning A Probabilistic Perspective

    Machine learning A Probabilistic Perspective 机器学习原版书

    perspective-el, Emacs的透视图.zip

    perspective-el, Emacs的透视图 面向对象的透视图描述这个包提供了Emacs中的标记工作区,类似于 Windows 管理器中的工作区,例如Awesome和 XMonad ( 与Gnome中的多个桌面或者 OS X 中的空间有些类似) 。perspective....

    Computational Complexity A Conceptual Perspective

    《计算复杂性:一个概念视角》是Oded Goldreich教授撰写的一部深入探讨计算理论核心概念的著作。本书由Weizmann科学研究所的计算机科学与应用数学部门出版,旨在为读者提供一个理解计算复杂性的全面视角。...

    Code Reading The Open Source Perspective

    Code Reading The Open Source PerspectiveCode Reading The Open Source Perspective

    Operating Systems: A Modern Perspective chapter11

    Operating Systems: A Modern Perspective chapter11

    Machine Learning: A Probabilistic Perspective 源码

    Machine Learning: A Probabilistic Perspective 源码

Global site tag (gtag.js) - Google Analytics