- 博客(232)
- 收藏
- 关注
原创 eclipse Resource 资料
IWorkspace/IWorkspaceRoot/IProject/IFolder/IFile/IResource/IPath/IScope/IContainerIResourceChangeListener/IResourceChangeEvent/IResourceDeltaVisitor//访问工作空间IWorkspace workspace = ResourcesPlugin.ge...
2016-11-15 16:51:52
298
原创 .docker/machine/machines/default/ca.pem: no such file or directory
Was doing adocker-machine env defaultwhere it seems to be getting stuck (waiting longer than usual) and when I open Virtualbox and look at the preview, it is already initialized and ready to accept c...
2016-09-06 15:59:32
1196
原创 list.AddAll 去重复
问题描述:有List A和B,A、B中元素都是可保证没有重复的,现要合并A、B得到新的List C,要求C中不能有重复元素 我们架构师的反应:A.removeAll(B);A.addAll(B); ...
2015-09-11 12:01:35
8212
1
原创 angularjs ng-show没有实时刷新
<div ng-show='status'> 1、 如果status==true,改div会显示,反之隐藏。2、但在跨越上下文的情况下,需要调用$scope.$apply()
2014-12-02 10:02:44
1171
原创 [ngRepeat:dupes] Duplicates in a repeater are not allowed
AngularJS does not allow duplicates in a ng-repeat directive. This means if you are trying to do the following, you will get an error.123// the below will throw an errorError:...
2014-11-27 17:04:04
325
原创 eclipse 插件开发 Setting the Java build path
JDT Plug-in Developer Guide > Programmer's Guide > JDT CoreSetting the Java build pathThis section describes how to set the Java build path. The build path is the classpath that is used ...
2014-06-04 11:00:24
329
原创 xstream 下划线_问题
最近在使用xtream 1.4.3,出现了如下的问题:<?xml version="1.0" encoding="GBK"?><window cols="3"> <account name="account10" title="账号_validateRule" allowInput="true"
2013-12-30 10:18:24
333
原创 jquery 1.8 判断事件是否已经绑定
On previous versions, you could call it like for other data :obj.data('events');In jQuery 1.8, this direct access was removed, so in recent versions you must call it like this :$._data(obj[0],"...
2013-11-15 10:00:18
209
原创 针对jquery ajax post到后台的乱码解决
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; if (re...
2013-08-30 11:01:40
174
原创 freemarker 自定义freeMarker标签
import java.io.IOException;import java.io.Writer;import java.util.Iterator;import java.util.List;import java.util.Map;import freemarker.core.Environment;import freemarker.ext.beans.Arra...
2013-08-12 16:09:45
155
原创 IE6、IE7下Radio按钮选不中
遇到问题:“Radio button在IE6、IE7点击没有反应总是选不中,而在其他版本IE及其他浏览器中正常运行”。解决方案:在IE6、IE7下,Radio input是通过name属性来分组识别,实现单选的。所以name属性是个必须的字段,具有互斥关系的Radio button需要具有相同的name属性值。即便,只有一个Radiobutton时,这个name属性也是必须的。...
2013-06-24 14:51:40
207
原创 js 字符串转为字符数组
测试代码:"abdaffwead".replace(/(.)(?=[^$])/g,"$1,")<script type="text/javascript">var obj="abdaffwead".replace(/(.)(?=[^$])/g,"$1,").split(",");alert(obj);alert(obj.length);al
2013-06-09 16:42:05
387
原创 jquery IE7下foucs无效的处理
setTimeout( function() { $(".buttonNext").blur(function() { //$(this).removeClass("btnHightLight"); $(this).css("background-color", "#5A5655"); $(this).css("color", "#FFF"); })
2013-05-21 16:10:33
148
原创 xstream javabean设置属性默认值的问题
在xstream反序列化使用过程中发现,如果xml无该属性,则改属性会被自动复制为null。<text name="fkzhzh" title="付款账户账号" validateRule="required,acctno" /> public abstract class SBase { @XStreamAsAttribute String id = ""...
2013-04-24 09:54:06
412
原创 在使用xstream反序列化时遇到的问题
public abstract class SBase { @XStreamAsAttribute String id=""; @XStreamAsAttribute String name=""; @XStreamAsAttribute String title=""; @XStreamAsAttribute String enabled = ...
2013-04-24 09:42:40
616
原创 RCP 知识点
获得工作区的所有工程://获得workspace的所有的工程 IProject[]projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); 获得工作区的所有java工程JavaCore.create(ResourcesPlugin.getWorkspace().getRoot()).getJava...
2013-03-14 15:10:53
156
原创 RCP FileSystem 文件系统
public static File toLocalFile(String folderName){ try { URL url = Activator.getDefault().getBundle().getEntry(folderName); url = FileLocator.toFileURL(url); IFileSystem fs = EFS.getLo...
2013-02-19 10:42:24
133
原创 json转为Map
package digu.pendant.util;import java.io.BufferedReader;import java.io.InputStream;import java.io.InputStreamReader;import java.net.URL;import java.util.ArrayList;import java.util.HashM...
2013-01-19 22:27:40
177
原创 eclipse4.x 去掉quick access
/** * 去掉quick access */ private void hideQuickAccess() { UIJob job = new UIJob("hide quick access") { @Override public IStatus runInUIThread(IProgressMon...
2013-01-11 14:57:41
156
原创 RCP 分页组件
http://www.eclipse.org/nebula/widgets/pagination/pagination.php nebula 一个项目,做了很多swt的组件,很不错。。。。。
2012-12-26 16:59:39
265
原创 xstream 的高级用法,自定义输出结构
public static void main(String[] args) { XStream xstream = new XStream(new XppDriver() { public HierarchicalStreamWriter createWriter(Writer out) { return new PrettyPrintWriter(out) {...
2012-12-19 14:35:09
609
原创 js 调用js
var oHead = document.getElementsByTagName('HEAD').item(0); var oScript= document.createElement("script"); oScript.src="../script/1.js"; oHead.appendChild(oScript); head=document....
2012-12-14 10:01:17
166
原创 jdt 创建java工程,生成代码,运行main方法
public static IJavaProject createJavaProject(String projectName) { // 获取工作区 try { IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); // ///////////////////////////////...
2012-11-27 10:50:17
292
原创 SWT 隔行换色-自动宽高调整
** * 创建:ZhengXi 2009-8-4 */ package com.infotech.updo.tools; import java.text.Collator; import java.util.Locale; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ControlAdapter;...
2012-10-16 17:32:48
163
原创 RCP 为action添加操作进度条
public class StartAction extends BaseAction { private Shell shell; private ProgressMonitorDialog pmd; public StartAction(TableViewer tableViewer, Shell shell) { } @Override public void run() {...
2012-10-16 13:59:19
162
原创 RCP 视图交互 ISelectionProvider和ISelectionListener,只响应鼠标左键
有时候一个视图(View)希望得到另外一个视图显示的内容,或者选择的内容。在Eclipse中,比较标准的做法是通过ISelectionProvider和ISelectionListener来完成的。不过因为视图往往是独立的,他们之间并不太方便进行直接的事件监听,而且往往一个视图需要对诸多试图进行选择事件的监听,因此在这种情况下对每一个视图的事件进行注册...
2012-10-10 18:36:38
155
原创 采用jface dataBinding来实现内容填充
//采用jface dataBinding来实现内容填充 input = new WritableList(getInput(),AliasModel.class); ViewerSupport.bind(tableViewer, input, BeanProperties.values( new String[]{AliasModel.SOURCENAME,AliasM...
2012-07-27 15:42:45
123
原创 RCP 在视图中获得首选项修改后的结果
在视图或者编辑器中加入如下代码:Activator.getDefault().getPreferenceStore().addPropertyChangeListener(new IPropertyChangeListener() {@Overridepublic void propertyChange(PropertyChangeEvent event) { ...
2012-07-27 15:35:45
109
原创 RCP获得eclipse的相关位置
InternalPlatform.getDefault().getInstanceLocation(); 获得eclipse路径,workspace路径。
2012-07-24 11:14:47
101
原创 swt/jface 获取table所有的列的值
TableItem [] items = table.getItems(); //保存到文件或数据库中,数据持久化,这里省略for ( int i=0;i<items.length;i++) for (int j=0;j<table.getColumnCount();j++) System.out.println(items[i].getText(j)); ...
2012-07-24 09:24:41
452
原创 org.eclipse.swt.SWTException: Subclassing not allowed
org.eclipse.swt.SWTException: Subclassing not allowed at org.eclipse.swt.SWT.error(SWT.java:4282) at org.eclipse.swt.SWT.error(SWT.java:4197) at org.eclipse.swt.SWT.error(SWT.java:4168) at org...
2012-07-19 15:09:37
295
原创 Job found still running after platform shutdown.
Job found still running after platform shutdown. Exception message seems to indicate that you schedule the setMessage during shutdown, so probably prefixing your code with something like if (Plat...
2012-06-29 16:40:49
183
原创 eclipse插件开发 打开指定透视图
打开透视图PlatformUI.getWorkbench().showPerspective(FlowPerspectiveFactory.ID, PlatformUI.getWorkbench().getActiveWorkbenchWindow());
2012-06-12 14:08:29
427
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人