NOTE: These two methods: Tip: Subclass AbstractHandler rather than implementing IHandler. but you can use it to the below section you need to set: IHandler the chosen operation is not enabled NOT USE popupMenus instead of Menus isEnabled: should be s…
别的项目组,遇到以下错误信息: 首先看一下log日志里的异常信息,估计就知道是什么问题了. 项目组遇到的这个错误是source 指向错误 找不到相关的class.…
Eclipse进度条出现“Remote System Explorer Operation”解决方法  …
当不能连接外网,离线安装SVN插件时,可能会发现以下问题:eclipse长时间停留在下图所示状态,提示“cannot perform operation.Computing alternate solutions,may take a while: ...”.在网上查找了资料,问题可能是eclipse一直在尝试从自己的更新源下载插件,却因为局域网环境,连接不上导致. 解决办法: 1)点击下图红框圈起的链接,弹出可用软件网址列表: . 2)在可用网址中,将红框中所有外网网址去掉,只保留本地插件地址…
I was learning through interfaces when I noticed that you can now define static and default methods in an interface. public interface interfacesample2 { public static void method() { System.out.println("hello world"); } public default void menth…
org.eclipse.ui.menus locationURI MenuContribution locationURI = "[Scheme]:[id]?[argument-list]" 1.menu or toolbar 2. problem view popup:org.eclipse.ui.views.ProblemView?after= org.eclipse.ui.main.menu?after= org.eclipse.search.menu?dialogGroup o…
一.introduce interface default method Introduce default methodWrite the default method at interfaceThe multiply conflict resolve interface default method/static method JDK1.8中为什么接口中要引入default方法?比如JDK以前的版本如JDK1.0 List接口: public interface List<E>{ void…
下载 jar 链接:http://files.cnblogs.com/files/z5337/org.eclipse.jface.text_3.7.2.v20111213-1208.zip 或者这个:http://files.cnblogs.com/files/z5337/eclipse.3.7.2.plugins.rar 前者按 http://blog.csdn.net/tomsheng321/article/details/39548627 修改 后者按 http://blog.csdn.n…
当我们使用eclipse编写Mybatis或hibernate的xml文件时,面对众多标签的配置文件,却没有自动提醒,对于工作和学习都十分不方便. 之所以没有自动提醒,是因为dtd文件没有加载成功. 默认mybatis的dtd文件会从网络中加载,但是因为是国外的网站,所以一般我们是访问不了的,也就造成了没有自动提醒的现象,但是可以通过手动配置来实现该功能,并且对应的文件就在jar包中.大家可以自己找也可以直接复制下面的dtd文件. mybatis-3-config.dtd文件 <!DOCTYPE…
在实际项目当中,一个很常见的需求场景就是在根据子线程当中的数据去更新ui.我们知道,android中ui是单线程模型的,就是只能在UI线程(也称为主线程)中更新ui.而一些耗时操作,比如数据库,网络请求,I/O等都是在其他线程中进行的,那么此时就需要在不同线程中进行通信了,而我们最常用的方式就是Handler. 常见的使用方式如下: public class HandlerTestActivity extends AppCompatActivity { public static final S…