RAP开发入门-运行过程简析(三)
2015-05-28 22:03
405 查看
今天通过标准的RAP程序来简单分析下RAP的启动过程
1、新建一个标准的rap plugin-in 项目:
得到的项目结构大概如下:
run confi..->..add bundle(配置好bundle 运行结果如下):
全屏控制代码:
/** * Configures the initial size and appearance of a workbench window. * 配置初始大小和显示workbench的窗口样式 * -看来以后的主题应该在这里设置了 */ public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { //启动设置最大化 @Override public void postWindowCreate() { Shell shell = getWindowConfigurer().getWindow().getShell(); shell.setMaximized(true); } public void preWindowOpen() { IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); //底部一栏? // configurer.setShowFastViewBars(true); // configurer.setShowProgressIndicator(true); //设置初始窗体大小 // configurer.setInitialSize(new Point(600, 400)); configurer.setShowCoolBar(true);//控制快捷按钮,(工具栏)显示 configurer.setShowStatusLine(false); configurer.setTitle("RAP Mail Template"); //SWT.NO_TRIM不显示整个标题栏 //SWT.TITLE只显示标题不显示-最大,最小,关闭 //http://eclipsesource.com/blogs/2007/11/12/hiding-the-window-in-rap-applications/ configurer.setShellStyle(SWT.TITLE); } }
相关文章推荐
- python基础教程学习笔记---(4)字典
- (转)多进程 & 多线程的区别与适用场景
- 【从0到1学Web前端】CSS定位问题二(float和display的使用) 分类: HTML+CSS 2015-05-28 22:03 812人阅读 评论(1) 收藏
- 【VBA】 通过VBA脚本将EXCEL的数据导入 ORACLE
- 一些项目——抱歉
- 创建基线或发行基线的主要步骤
- 第二次冲刺(4)
- 【转载】failed to create virtual machine
- 携程瘫痪非偶然 国内互联网企业漠视数据管理
- leetcode | Letter Combinations of a Phone Number
- C#程序开发中经常遇到的10条实用的代码
- Merge Sorted Array
- Java Servlet学习笔记(五)Servlet服务器Http响应
- 在Visual Studio 的 “一般处理程序 ” .ashx 文件中如何创建Session 对象
- App项目开发流程图解
- 黑马程序员----反射
- iPhone屏幕知识点解析
- A*寻路算法浅析
- [翻译] JHChainableAnimations
- 团队项目 SRS文档