- 浏览: 241545 次
- 性别:
- 来自: 济南
文章分类
最新评论
-
heartneo:
破解原作真是太厉害了。
Spket 1.6.18的简单破解 -
mwp1115:
谢谢,现在官方的demo代码还是jdk1.2的
Swing JTreeTable范例 -
bulktree:
Spket 谢谢了,js格式化 行宽太小了,你这个帮了我很大的 ...
Spket 1.6.18的简单破解 -
REGAL2T:
谢谢, 可以使用了
Spket 1.6.18的简单破解 -
wuwei1616:
我想问下lz 我生成了 wsdl文件 我用客户端去调用 怎么总 ...
调用CXF工具 生成 WSDL
package jface.treeviewer; import java.io.File; import org.eclipse.jface.viewers.ILabelProviderListener; import org.eclipse.jface.viewers.ITableLabelProvider; import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.jface.viewers.Viewer; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.TreeColumn; public class TreeColumnTest { public void run(){ final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final TreeViewer viewer = new TreeViewer(shell, SWT.FULL_SELECTION); viewer.getTree().setHeaderVisible(true); TreeColumn column = new TreeColumn(viewer.getTree(), SWT.LEFT); column.setText("Name"); column.setWidth(200); column = new TreeColumn(viewer.getTree(), SWT.LEFT); column.setText("Size"); column.setWidth(100); column = new TreeColumn(viewer.getTree(), SWT.LEFT); column.setText("Hidden"); column.setWidth(100); viewer.setContentProvider(new MyTreeContenetProvider()); viewer.setLabelProvider(new MyTableLableProvider()); viewer.setInput(new File("/")); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } public static void main(String[] args) { new TreeColumnTest().run(); } class MyTreeContenetProvider implements ITreeContentProvider{ public Object[] getChildren(Object parentElement) { File file=(File)parentElement; if(file.isDirectory()) return file.listFiles(); else return null; } public Object getParent(Object element) { File file=(File)element; return file.getParentFile(); } public boolean hasChildren(Object element) { File file=(File)element; return file.isDirectory()/*&&file.list().length>0*/; } public Object[] getElements(Object inputElement) { File file=(File)inputElement; return file.isDirectory()?file.listFiles():new Object[]{file}; } public void dispose() { } public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { } } class MyTableLableProvider implements ITableLabelProvider{ public Image getColumnImage(Object element, int columnIndex) { return null; } public String getColumnText(Object element, int columnIndex) { File file=(File)element; switch (columnIndex) { case 0: return file.getName(); case 1: return ""+file.length(); case 2: return ""+file.isHidden(); default: return ""; } } public void addListener(ILabelProviderListener listener) { } public void dispose() { } public boolean isLabelProperty(Object element, String property) { return false; } public void removeListener(ILabelProviderListener listener) { } } }
注:将计算机文件用树列出来。
发表评论
-
目录树的生成
2011-09-22 08:54 1391项目上线需要生成个目录树文件,本来可以用dos的tree就搞定 ... -
Eclipse Tip: Define Custom Content Types to Identify Your Data Files
2010-06-13 08:53 1213【转自】http://www.developer.com/ja ... -
WTP Facet 之 AddFilter
2010-06-11 14:22 1258做插件开发的人员都知道,如果你不晓得该使用那个Eclipse提 ... -
Properties文件的读写 : Properties操作示例
2010-04-21 14:19 1526package properties; import j ... -
wizardPage参考
2010-04-15 13:23 2512插件向导开发最好的例子莫过于Eclipse中本身一些向导,但如 ... -
如何访问当前Project???
2010-04-14 08:27 1124【转】http://wiki.eclipse.org/FAQ_ ... -
How to create dynamic web project using facets
2010-03-22 08:51 1485To create a blank faceted proje ... -
Introduction to the XSD Editor(XML Schema Editor)
2010-03-13 16:46 1353By Trung Ha August 30, 2006 ... -
同类编辑器只能打开一个
2010-02-23 13:28 1292在(http://sxw7362693.iteye.com/b ... -
通过事件驱动,创建不同的部件
2010-02-20 15:43 1072非常easy的东西,就是先dispose再create。 ... -
Tree Check 带复选框的树
2009-08-25 13:23 7698在SWT/JFace中,带复选框树最好使用Contain ... -
Swing JTreeTable范例
2009-08-21 13:48 3037由于工作需要,看了一点Swing的JtreeTable的实现。 ... -
SWT/JFACE——toolbar/toolItem
2009-04-23 22:47 10811工具栏通常有两种: toolbar、coolBar。两者的区 ... -
SWT-Menu篇
2009-04-23 17:12 3304今天用到Menu,本以为小菜一碟,都是老掉牙的东东了还不简单。 ... -
Eclipse.ini参数意义
2009-04-16 17:34 825eclipse.ini内存设置各参数含义 ... -
Editor的脏处理
2009-03-11 21:05 1716做编辑器Editor插件,肯定离不开对“脏”的处理。以前虽然也 ... -
SWT-Table按“行“进行编辑
2009-03-11 10:24 4692package table; /* * 通常在一个表 ... -
读取properties文件
2008-11-27 10:26 1839在 武晨伟的博客 http://blog.csdn.n ... -
移除Builders
2008-08-15 09:36 903public static void removeBuild ... -
Java项目classPath的添加
2008-08-15 09:28 3639// import org.eclipse.jem.workb ...
相关推荐
4. **初始化插件**:在文档加载完成后,使用 `$("#filetree").fileTree({options}, function(file) {...});` 初始化文件树。 5. **服务器端设置**:根据所选编程语言,设置相应的服务器端连接器脚本,确保能正确...
var opt = $(this).data().tree.options; var idField = opt.idField || 'id'; var textField = opt.textField || 'text'; var parentField = opt.parentField; // 构建临时映射表 var tmpMap = {}; for ...
bower install jquery-filetree 手动的 下载 ##Usage <link rel="stylesheet" href="path/to/filetree.css"> [removed][removed] [removed][removed] $ ( document ) . ready ( function ( ) { $ ( '#...
tree-diff基于babel的文件依赖树diff工具before all请手动 linknpm link使用方式自己看 tree-diff --help> tree-diff --helpUsage: tree [options]Options: -r, --root <dir> 待查找的根目录, 不写默认为当前目录 -e...
sample.util) for sample in disk_stats], proc_tree) File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line 201, in draw_chart yscale = float(chart_bounds[3]) / max(y for (x,y) in data)...
GETOPT C - Parses options in command line GREP2MSG C - Example program for Turbo C++ filters HELLO C - Example Turbo C++ program INTRO1 CPP - Example program from User's Guide INTRO10 CPP - ...
西兰花压扁 扁平化文件树,因此所有...tree = flatten ( tree , options ) ; 选项 支持以下选项: destDir目录存放所有文件的位置 ###例子 var pickFiles = require ( 'broccoli-static-compiler' ) ; var flatten
options -o and -sjava together, because Jad can accidentally overwrite your own source files. Jad uses JAVA class name as an output file name. For example, if class file 'example1.class' contains ...
4.3.7 (2014-Oct-06) ...+ Added import tree options (when you import from a text file). + Option to show Record number. + Tooltips on tabs to display helpful information. * Minor fixes and improvements.
在jQuery EasyUI Tree中,除了基本的`id`, `text`, `iconCls`, `checked`, `state`和`attribute`之外,还可以通过`data-options`属性来添加自定义的节点属性。`attribute`属性是一个JSON对象,可以存储额外的信息,...
The format and style are kept and the topic tree is created according to the outline of the Word file in the CHM file created by Word-2-CHM. The command line of Word-2-CHM can be used to generate CHM...
var outputTree = umdify ( sourceTrees , inputFile , outputFile , options ) sourceTrees :充当inputFile搜索路径的树数组。 如果您只有一棵树,请通过[tree] 。 inputFile :要 umdify 的主.js文件的相对路径。...
var outputTree = compileSass ( inputTrees , inputFile , outputFile , options ) ; inputTrees :充当 libsass 包含路径的树数组。 如果您只有一棵树,请通过[tree] 。 inputFile :主要的相对路径.scss或.sass...
tree = sweetjs ( tree , options ) ; 原料药 sweetjs(树,[选项]) 选项 模组 类型: array 默认值: [] 您要使用的宏列表。 使用与require()相同的语法: npm模块: 'module-name' 本地文件: './file-name'...
in the input file names, it automatically skips matching inner classes. On UNIX Jad skips inner classes if there is more than one class specified in the command line. Jad looks for inner classes in ...
15. **`iconv [options] input_file > output_file`**:转换文件编码。 - 示例:`iconv -f GBK -t UTF-8 input.txt > output.txt` 将 `input.txt` 从 GBK 编码转换为 UTF-8 编码。 16. **`find [path] [options] ...
All these nodes will be organized like a tree, in fact, the tree structure is stored in one database file, so you need not to save a lot of small note files in your disk. With DC's support, you'll ...
用法 $ ../target/release/riscv_emu_desktop [options]Options: -k, --kernel Kernel image file -f, --filesystem File system image file -d, --dtb Device tree binary file -m, --machine Target machine ...
For example, if file 'tree/a/b/c.class' contains class 'c' from package 'a.b', then output file will have a name 'src/a/b/c.java'. <br>Note the use of the "two stars" wildcard ('**') in ...
var outputTree = IstanbulCompiler ( inputTrees , inputFile , outputFile , options ) ; inputTrees :一系列树,用作伊斯坦布尔的包含路径。 inputFile :要检测的主.js文件的相对路径。 Broccoli-Istanbul 期望...