
Eclipse Rcp学习笔记
3boy
这个作者很懒,什么都没留下…
展开
-
RCP用户登录验证
//重构dlg的初始化类@使用IShellProvider获取Shell;public UserLogin(IShellProvider parentShell) { super(parentShell); }// Display display = PlatformUI.createDisplay(); UserLogin userdlg=new UserLogin(ne原创 2010-01-25 12:18:00 · 984 阅读 · 0 评论 -
RCP实用技巧
RCP实用技巧关键字: rcp实用技巧 1.最大化窗口: 在ApplicationWorkbenchWindowAdvisor中,书写如下方法:Java代码 public void postWindowCreate() { super.postWindowCreate(); getWindowConfigurer().getWindow().转载 2010-03-30 01:27:00 · 1643 阅读 · 0 评论 -
ToolBarManager的问题
Its difficult to tell from your question, but it sounds like you may be attempting to add a ControlContribution to the toolbar and returning a Button. This would make the button on the toolbar appear转载 2010-03-30 01:24:00 · 1482 阅读 · 0 评论 -
最大化窗口
实现在RCP程序启动后将窗口最大化,其中一种方式是覆写ApplicationWorkbenchWindowAdvisor 类的父类的postWindowCreate() 方法,使其在应用启动后让窗口自动最大化:/** * 这个方法在窗口恢复到以前保存的状态(或者新建一个窗口)之后, * 打开窗口之前(调用). */ public void postWindowCreate(转载 2010-03-30 01:22:00 · 905 阅读 · 0 评论 -
SWT.IMAGE
Interfaces Drawable ImageLoaderListenerClasses Color Cursor Device DeviceData Font FontData FontMetrics GC GCData Image ImageData ImageLoader ImageLoaderEvent PaletteData Point R原创 2010-03-30 01:21:00 · 1791 阅读 · 0 评论 -
在Eclipse中用JDBC连接Sql Server
在Eclipse中用JDBC连接Sql Server在Eclipse中用JDBC连接Sql Server 关键字: jsp 将JDBC解压缩到任意位置,比如解压到C盘program files下面,并在安装目录里找到sqljdbc.jar文件,得到其路径开始配置环境变量 在环境变量classpath 后面追加 C:/Program Files/Microsoft SQL Serv转载 2010-03-29 16:56:00 · 1114 阅读 · 1 评论 -
获取当前选中的TABLE行的某列数据
table.addMouseListener(new MouseAdapter() { @Override public void mouseDoubleClick(MouseEvent e) { int selIndex=table.getSelectionIndex(); TableItem item=table.getItem(selIndex);//组数据 tex原创 2010-01-29 22:09:00 · 1915 阅读 · 0 评论 -
数据库读取到grid
当按下按钮的时候提取数据库信息 public void widgetSelected(SelectionEvent e) { try { table.removeAll(); //table. Statement stmt=pfzhao.ychis.app.books.db.mysqlconn.getConnection().createStatement(); S原创 2010-01-29 20:57:00 · 833 阅读 · 0 评论 -
JFace模式窗体TITLE设置
public UserLogin(Shell parentShell) { super(parentShell); setShellStyle(SWT.TITLE); } protected Control createDialogArea(Composite parent) { parent.setBackground(SWTResourceManager.getCo原创 2010-01-25 17:35:00 · 815 阅读 · 0 评论 -
SWT经验技巧
查看文章 SWT经验技巧2007年03月09日 星期五 下午 03:44在SWT中调用Dialog如何指定Dialog弹出时的位置? 1. 纯swt的Dialog(org.eclipse.swt.widgets.Dialog) shell.setLocation(getInitialLocation(shell)); protected Point get原创 2010-03-30 17:20:00 · 2065 阅读 · 0 评论