ITeye博客

Billy Ao

Billy_Ao · 共 4 篇文章

Install Mysql-Python on Windows

收入两个安装关于安装MySQLdb的URL http://stackoverflow.com/questions/645943/mysql-for-python-in-windows As Python newbie learning the Python ecosystem I've just completed this. Install setuptools instructions Install MySQL 5.1. Download the 97.6MB MSI from here You can't use the essentials version because it d…

2010-03-10 15:59 · Python · 评论(0)

java code Format工具Jalopy介绍

在产品开发中,需要用到使用模板来生成.java文件,这就需要使用Jalopy等Format工具来实现代码的格式设置,Jalopy就是一种强大的Java code Format工具,下面简单介绍一下他的是用: import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.net.URL; import de.hunsicker.jalopy.Jalopy; public class FormatJava { static URL convention = nu…

2006-06-27 11:42 · Java · 评论(0)

Gef中MultiPageEditorPart中属性页和Outline的使用

当使用Eclipse的多页签Editor时,如果按照单个Editor的Property页和Outline的设计,会出现两个Editor使用同一个CommandStack和多页签的Outline不能切换的问题,经过试验以两个页签为例使用下面的解决方案:建立在于MultPageEditorPart级别的IPropertySheetPage和IContentOutlinePage然后通过获取MultiPageEditorPart的pageChange(int index)方法来动态的设置相应的Property和Outline。具体是先步骤: 1.建立MultiPageEditorPart的子类Fo…

2006-06-27 11:42 · Eclipse Plugin · 评论(0)

Velocity简单例子

建立hello.vm内容如下: Hello $name! Welcome to $site world! main方法如下: import java.io.File; import java.io.StringWriter; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.VelocityEngine; public class HelloWorld{ public static void main( String a…

2006-04-07 11:44 · Java · 评论(0)