Groovy还是JRuby? 这也是我经常问自己的问题. 现在看看别人的讨论.
[zz]
http://blog.csdn.net/hivon/archive/2008/04/25/2328189.aspx
java.lang.ClassFormatError: Invalid pc in LineNumberTable in class file ....
代码在开发的Eclipse上怎么都是正常的, 但一旦将其编译成jar文件后,进入改代码对应的功能页面后,就抛这个错误.[无论开发还是测试的电脑上都会有]
上网查了下,应该是源代码的行数过多造成的.
这个类的代码有6k多行,不停的重构,不停的测试,终于在3.5k的时候不抛异常了.[具体jdk可以支持多少行就不清楚了]
终于知道pc是什么意思了,在编译过后的.class文件中,可以看到类似下面的内容.
189 return
...
偶翻出来,还是蛮有感触的. 见附件:
GraphicalEditor中,需要申明要开启网格和吸附功能.
protected void configureGraphicalViewer() {
...
viewer.setProperty(SnapToGrid.PROPERTY_GRID_ENABLED,Boolean.TRUE); // 网格功能可用
viewer.setProperty(SnapToGrid.PROPERTY_GRID_VISIBLE,Boolean.TRUE); // 网格可视
viewer.setProperty(SnapToGeometry.P ...
[zz from http://wz.csdn.net/url/989477/]
COMPONENT_ROLE
大多数EditPart应该有这个基本的Role,一个component在它的parent中,并且可以从它的parent中删除。更一般地,它可以是只涉及此EditPart的任何事物(不涉及view,因为它是non-graphical的)。在Logic例子中,LEDEditParts在Component Role中有一个知道怎样增加LED对象的值的专门EditPolicy。
CONNECTION_ROLE
ConnectionEditPart应该具有的基本Role(而不是COMP ...
public class WebSpider {
public static void main(String[] args) throws Exception {
String urlString = "http://lggege.javaeye.com/blog/173840";
URL url = new URL(urlString);
Object contentObj = url.getContent();
if (contentObj instanceof InputStream) {
new InputStreamReader ...
http://www.masswerk.at/jsuix/index.html
提供了虚拟的vi编辑器,可以在上面做练练手.
单例模式(Singleton)
鼎鼎大名的Singleton模式,就是为了在一个JVM内只有一个实例对象存在.
public class SingletonClass {
// 饿汉式单例模式
private static SingletonClass action = new SingletonClass ();
private SingletonClass () { }
public static SingletonClass getInstance() {
return action;
}
}
上面就是Single ...
/**
* Internal constructor for already-normalized pathname strings.
* The parameter order is used to disambiguate this method from the
* public(File, String) constructor.
*/
private File(String child, File parent) {
assert parent.path != null;
asser ...
目前网上GEF的例子和文章还是比较稀少的,将一些常见的资源汇总如下(根据个人喜好,进行了筛检):
Eclipse GEF官网
http://www.eclipse.org/gef/
可以在上面找到GEF的下载地址,上面也可以找到Eclipse提供的例子,当然,后面的文章都是基于这几个例子上的.
使用图形编辑框架创建基于 Eclipse 的应用程序
中文版http://www.ibm.com/developerworks/cn/linux/opensource/os-gef/
英文版http://www.ibm.com/developerworks/opensource/library/ ...
- 浏览: 6465 次
- 性别:

- 来自: 上海

- 详细资料
搜索本博客
我的相册
IndexCardGenerator
共 13 张
共 13 张
最近加入圈子
最新评论
-
RAP[1] RAP开发环境的安装
Eclipse RAP的客户端渲染是基于qooxdoo,一个很优秀的开源java ...
-- by Quake Wang -
惊艳!!! Swt 上的Ribbon.
dev.java.net上早有ribbon的实现了,不过是swing的:http ...
-- by diggywang -
.net终于被java同化了
支持Java
-- by love2008 -
Groovy的Eclipse插件
多谢,在这里找到插件了
-- by wdlfellow

![lggege的博客: [203] lG 槛~ 迈过去! 用户头像](http://www.javaeye.com/upload/logo/user/18674/d58959b8-54ec-376e-b9f2-5d3a36beaa2f.jpg?1206674671)




评论排行榜