- 浏览: 93002 次
- 性别:
- 来自: 广州
最新评论
-
cutesunshineriver:
...
url-pattern that excludes subdirectoriesy -
鱼在陆地上跑:
winse 写道鱼在陆地上跑 写道winse 写道鱼在陆地上跑 ...
@Override annotation error(Eclipse导入原有的Android Projects) -
winse:
鱼在陆地上跑 写道winse 写道鱼在陆地上跑 写道LZ,你的 ...
@Override annotation error(Eclipse导入原有的Android Projects) -
鱼在陆地上跑:
winse 写道鱼在陆地上跑 写道LZ,你的解决方法不行啊!我 ...
@Override annotation error(Eclipse导入原有的Android Projects) -
winse:
鱼在陆地上跑 写道LZ,你的解决方法不行啊!我设置的就是1.6 ...
@Override annotation error(Eclipse导入原有的Android Projects)
文章列表
导入eclipse插件,出现错误。
错误提示:
Description:An API baseline has not been set for the current workspace. Type:Unknown Default API Baseline Problem
解决方法:
把 Missing API Baseline option 的级别设置的低一点就可了~~
参考资料:
http://permalink.gmane.org/gmane.comp.ide.eclipse.e4.devel/5341
The option can be changed using ...
在swt中,Hyperlink可以实现 '点击跳转' 的效果。例如,在PDE的MANIFEST.MF的 Activator 点击该标签可以跳转到对应的Activator的类。
org.eclipse.pde.internal.ui.editor.plugin.rows.ReferenceAttributeRow.createLabel(Composite, FormToolkit)
protected void createLabel(Composite parent, FormToolkit toolkit) {
if (!part.isEditable()) {
...
在改一个bug的时刻,把原来的老大写个map.values()改成了map.keyset()。前面通过循环得到一个prepared sql,后面再把对象的数据放入到PreparedStatement中。
下班后,感觉不是很对劲。Map怎么确保得values()和keyset()的顺序是一样的呢?
原来用map都是先取key然后得到value。由于在map上封装了,不能直接取得entryset,只有keyset和values(),getValue(key)。那values()和keyset()中的元素顺序是否对应呢?
首先,写个test,看看顺序是不是一致的:
pu ...
class CopyOfDDDD implements IServiceTaskProcessor {
@Override
public Serializable process(IItemInstance data) throws TaskException {
return null;
}
/*static*/ class CopyOfDDDD implements IServiceTaskProcessor {
@Override
public Serializable process(IItemInstance data) throws ...
同事和我做同一件事情,但是我弄的总有个问题。
对比了我们各自写的文件,在表面上完全没有那里存在问题。
在前段的时间中也遇到相应的问题,原来是加上一个布局就可以了。
setLayoutManager(new ConstrainedToolbarLayout());
再次遇到一样的问题,想查查到底是什么问题。经过对比使用布局和不使用的调试结果后。
大概问题如下:
GEF在用户操作会提供一个“鬼影”的提示。获得的FeedBack的大小由操作的图形的MinSize和操作后的Bounds决定。
org.eclipse.gmf.runtime.diagram.ui ...
问题: http://www.iteye.com/problems/77232
抛出异常:finally中的异常会先于try中的异常。
public static void test11() {
try {
System.out.println("try");
int i = 1 / 0;
} finally {
String s = null;
s.length();
System.out.println("finally");
}
System.out.printl ...
参考:PHP数组的Hash冲突实例 http://www.laruence.com/2011/12/30/2435.html
看到这篇帖子,其实数据结构真实的存在于身边。模仿上文,弄个Java版的。
1、重写hashcode,最好(一定)要重写equals。即hashcode相同则equals返回true
import java.util.HashMap;
public class TestWorstHashMap {
private static final int testSize = 100000;
private static final int s ...
参考:http://www.blogjava.net/chenpengyi/archive/2006/05/04/44492.html
关于String的+操作和StringBuilder#append的效率问题,以前也遇到过,不过没有太多的关注。
1、String+操作,当单行使用时完全不用考虑效率的问题,因为在生成字节码的时刻已经把这种操作优化为StringBuidler。
private String argu = "字符串";
void testOneLineBuilder(String s){
long begin = Sy ...
图形就必然会存在几何的数学问题:点的旋转,求交点。
1、求点A(a,b)旋转β弧度后B的坐标:
/**
* Returns a new transformed Point of the input Point based on the
* transformation values set.
*/
public Point getTransformed(Point p) {
double x = p.x;
double y = p.y;
double temp;
x *= scaleX;
y *= scaleY;
temp ...
问题场景:<quesiton>
通过Annotated java生成genmodel和ecore后,在ecore的EClass下增加了属性。
然后生成代码,一步一步的按照
http://gmfsamples.tuxfamily.org/wiki/doku.php?id=gmf_tutorial5
进行。
从gmfmap生成gmfgen是出现了一下错误提示:
Can't find genFeature for feature 'value' in the class Number.
--同样的问题:
http://www.eclipse.org/for ...
java2html.de使用的详细说明:
http://lavasoft.blog.51cto.com/62575/43548
源码目录结构:
de.java2html 入口
de.java2html.converter 转换,生成对应style(高亮)的对应格式文件
de.java2html.javasource 源文件处理,格式的解析,词法分析
|-IJavaSourceTypeChecker 接口,??
|-JavaSource 源文件的内容,以及一些统计数据
|-JavaSourceIterator 实现对“字符串”的组装
|-JavaSource ...
导入原有程序出现下面的errors提示:
Description Resource Path Location Type
The method onClick(View) of type new View.OnClickListener(){} must override a superclass method DeliverActivity.java /HelloAndroid/src/com/winse/communicate line 20 Java Problem
解决方法:
http://stackoverflow.com/questions/4761888/o ...
(用虚拟接vmware安装,就不说了,这个相对来说没有心理压力。如果没装好,删掉就可以了。)
看了一个视频,热血沸腾的要转Linux,准备了老半天。
1、查了一些资料,有硬盘安装的下载EasyBCD做多系统启动的(Win7下Fedora14硬盘或U盘安装指南http://www.linuxidc.com/Linux/2010-12/30459.htm)。
比较麻烦,手边也有空白光盘。
2、下载了fedora http://fedoraproject.org/zh_CN/get-fedora-options
刻录到光盘(最好不要用可擦写的刻;可擦写刻录的,老半天都进不去 ...
UltraEdit去除“File is probably not DOS format”提示: