Java Eclipse Visual Editor(VE) Plugin 的安装方法
2009-04-27 20:56
567 查看
20090427 晚上参考了下 网上有位 同仁的 资料 ,必须详细指出,所有的解压都是copy到eclipse中对应的plugins 和 features 文件夹中
相对比较新的说明都在这里.E文 http://wiki.eclipse.org/Visual_Editor_Project How To Install VE 1.4 for Eclipse Ganymede (subject to change, unsupported) How To Install VE 1.3 for Eclipse 3.3 Europa / Eclipse 3.4 Ganymede (subject to change, unsupported) Roadmap for the VE 1.3 Release 英文的简单使用说明:http://www.eclipse.org/vep/WebContent/docs/newAndNoteworthy/1.2-M2/ 到目前为止,这是我感觉最好用的Free的编辑工具~~如果您有更好的Free的,可以留言给我。 Visual Editor Java 的窗体可视化程序插件http://hi.baidu.com/xianle 网站:http://www.eclipse.org/vep/WebContent/main.php 我的安装环境及下载地址http://hi.baidu.com/xianle 1.安装JDK 下载 JAVA 1.6.0_05 http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/java_ee_sdk-5_04-windows-ml.exe?BundledLineItemUUID=KktIBe.pVHEAAAEYn60ivve1&OrderID=o3FIBe.piPoAAAEYka0ivve1&ProductID=8l5IBe.o9BIAAAEY.TA9Oqj7&FileName=/java_ee_sdk-5_04-windows-ml.exe 默认安装到C:/sun/SDK下 设置安装环境变量 JAVA_HOME=C:/Sun/SDK/jdk PATH内加入 %JAVA_HOME%/bin; 2.安装ECLIPSEhttp://hi.baidu.com/xianle 下载 Eclipse 3.3.2 Build id: M20080221-1800 http://ftp.jaist.ac.jp/pub/eclipse/eclipse/downloads/drops/R-3.3.2-200802211800/eclipse-SDK-3.3.2-win32.zip 解压到任意地址就OK 然后运行eclips.exe 可以看到正常启动画面(这个地方我没成功。重启WINDOWS,然后删除解压文件,重新解压后,才成功) 3.下载Visual Editor及相关插件 原始下载地址 1.2.3_jem 我选的是该版本 http://download.eclipse.org/tools/ve/downloads/index.php 具体下载地址如下: 下载下面三个 Eclipse build eclipse-SDK-3.2 http://ftp.jaist.ac.jp/pub/eclipse/tools/ve/downloads/drops/R-1.2.3_jem-200701301117/VE-SDK-1.2.3_jem.zip EMF build 2.2.0 http://archive.eclipse.org/modeling/emf/emf/downloads/drops/2.2.0/R200606271057/emf-sdo-runtime-2.2.0.zip GEF Build 3.2 http://ftp.jaist.ac.jp/pub/eclipse/tools/gef/downloads/drops/R-3.2-200606270816/GEF-runtime-3.2.zip 下载后,全部解压到Eclipse 目录下,重启Eclipse即可http://hi.baidu.com/xianle 如果以上安装后还不找不到 VisualEditor 可以试试下载这个 http://update.soyatec.org/org.eclipse.ve_1.3.0.200802040250.zip 全部解压到Eclipse 目录下,重启Eclipse即可 http://hi.baidu.com/xianle 关于Visual Editor的使用,我也仅是学习阶段 1.新建一个java工程 2.工程上右键属性->Java Build Path -> Add Library -> Standard Widget Toolkit (SWT) 然后 下一步 选择 Include Support For JFace library ,完成即可 3.工程上右键 ->New -> Other 选JAVA 下的Visual Class,Page自己随便写个。Name也随便写个 左下角 Style 里选 -> Swt ->Shell 完成新建类 看到窗口了吧,http://hi.baidu.com/xianle 自己可以随便加些TextBox 什么的了。。 设置一下视图: 1.Window -> Show View -> Other 选 Java -> Java Beans 2.Window -> show View -> Other 选 General -> Properties 我设置好后的样子 这样设置完以后,就可以像 .net 那样调整控件的属性了 但调整之前,最好点一下Form ,Layout 调成Null ,要不然,控件是不能拖放的,也不能调大小 package xl.test; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Menu; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.graphics.Rectangle; public class first { private Shell sShell = null; // @jve:decl-index=0:visual-constraint="16,17" private Button button = null; private Menu menuBar = null; private Text text = null; /** * This method initializes sShell */ public void createSShell() { sShell = new Shell(SWT.SHELL_TRIM); sShell.setText("XL"); sShell.setLayout(null); sShell.setSize(new Point(584, 335)); menuBar = new Menu(sShell, SWT.BAR); sShell.setMenuBar(menuBar); text = new Text(sShell, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP | SWT.H_SCROLL); text.setOrientation(50554600); text.setToolTipText("Tips"); text.setEchoChar('d'); text.setText("t"); text.setBackground(new Color(Display.getCurrent(), 0, 255, 255)); text.setBounds(new Rectangle(3, 3, 526, 166)); text.setForeground(new Color(Display.getCurrent(), 255, 0, 0)); button = new Button(sShell, SWT.NONE); button.setText("MyButton"); button.setBounds(new Rectangle(461, 249, 60, 22)); button.setForeground(new Color(Display.getCurrent(), 109, 148, 95)); button.addMouseListener(new org.eclipse.swt.events.MouseAdapter() { public void mouseDown(org.eclipse.swt.events.MouseEvent e) { System.out.println("mouseDown()"); // TODO Auto-generated Event stub mouseDown() MessageDialog.openInformation(null, "Hello", "Hello World!"); } }); } public Shell getSShell() { return sShell; } } package xl.test; import org.eclipse.swt.widgets.Display; public class TestMain { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub first fst = new first(); Display display = new Display(); fst.createSShell(); fst.getSShell().open(); while (!fst.getSShell().isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } System.out.println("finishing..."); display.dispose(); } } 如果你觉得好。就给我顶一个。。 |
相关文章推荐
- Poechant 教你如何安装Eclipse的Visual Editor(VE),只需要复制粘贴,其实就那么简单
- eclipse GUI 项目: visual editor 安装 (用Eclipse进行可视化Java界面设计)
- eclipse 3.2的插件Visual Editor的安装方法
- Poechant 教你如何安装Eclipse的Visual Editor(VE),只需要复制粘贴,其实就那么简单
- eclipse GUI 项目: visual editor 安装 (用Eclipse进行可视化Java界面设计)
- java_Eclipse中SVN的安装步骤(两种)和使用方法
- Eclipse plugin - Visual Interface Designer for JAVA™
- Eclipse Plug in 开发 学习点滴(2) - 安装VisualEditor1.5的主义事项
- Eclipse3.3.2安装插件方法(以tomcatPlugin、jinto、lomboz为例)
- GEF,EMF,RCP,Eclipse's plugin的几个问题(6) 推荐使用新版本的VE(Visual Editor)
- 阿里开发的Java代码规约扫描eclipse插件安装和使用方法
- jsp开发所需要的eclipse插件(lomboz、tomcatplugin)及其安装、配置方法
- Eclipse3.5 下VisualEditor1.4的安装
- eclipse 安装 json Editor Plugin的方法
- Eclipse Tomcat plugin安装方法
- JAVA学习提高之---- Tomcat集成到Eclipse的方法(插件安装及配置)
- eclipse插件安装列表,JSP/html 编辑器 Bravo JSP editor 安装方法
- Eclipse 4.7(Oxygen)安装Tomcat Plugin 后没有小猫图标解决方法
- Eclipse下的Java反编译插件Java Decompiler(JD) Eclipse Plugin的下载与安装
- 【JavaWeb开发】Maven的安装配置方法(eclipse)