??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美精彩视频一区二区三区,国产精品毛片无码,国产精品一区二区三区精品 http://www.aygfsteel.com/jrkui188/花开有时Q花落有Ӟ来有ӞL时。不撕扯Q只兛_Q不U念Q只牉|Q不感动Q只明白Q不LQ只记得?
zh-cn Sat, 17 May 2025 07:01:26 GMT Sat, 17 May 2025 07:01:26 GMT 60 在导出RCP时把插g打包成文件夹的Ş式而不是jar?/title> http://www.aygfsteel.com/jrkui188/archive/2008/12/02/243876.html花开有时 花开有时 Tue, 02 Dec 2008 03:18:00 GMT http://www.aygfsteel.com/jrkui188/archive/2008/12/02/243876.html http://www.aygfsteel.com/jrkui188/comments/243876.html http://www.aygfsteel.com/jrkui188/archive/2008/12/02/243876.html#Feedback 3 http://www.aygfsteel.com/jrkui188/comments/commentRss/243876.html http://www.aygfsteel.com/jrkui188/services/trackbacks/243876.html 阅读全文 ]]> JME研究(42691979Q徏立! http://www.aygfsteel.com/jrkui188/archive/2008/04/29/197218.html花开有时 花开有时 Tue, 29 Apr 2008 06:13:00 GMT http://www.aygfsteel.com/jrkui188/archive/2008/04/29/197218.html http://www.aygfsteel.com/jrkui188/comments/197218.html http://www.aygfsteel.com/jrkui188/archive/2008/04/29/197218.html#Feedback 2 http://www.aygfsteel.com/jrkui188/comments/commentRss/197218.html http://www.aygfsteel.com/jrkui188/services/trackbacks/197218.html ]]>定义Eclipse Editor应该要注意的问题 http://www.aygfsteel.com/jrkui188/archive/2008/02/05/179340.html花开有时 花开有时 Tue, 05 Feb 2008 05:41:00 GMT http://www.aygfsteel.com/jrkui188/archive/2008/02/05/179340.html http://www.aygfsteel.com/jrkui188/comments/179340.html http://www.aygfsteel.com/jrkui188/archive/2008/02/05/179340.html#Feedback 0 http://www.aygfsteel.com/jrkui188/comments/commentRss/179340.html http://www.aygfsteel.com/jrkui188/services/trackbacks/179340.html 1.Editor必须要设|iconQ否则会出异常?
2.必须要重写EditorPart#init(IEditorSite site, IEditorInput input)ҎQ内容一般ؓ
this.setSite(site);
this.setInput(input);
this.setPartName(input.getName());
否则会出异常?
3.自定义的EditorInput的以下方法的q回g能ؓnullQgetName()、getToolTipText()Q否则会出异常?
]]> 如何自定义SWT Table的每一个Cell的height and width http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179196.html花开有时 花开有时 Sun, 03 Feb 2008 08:26:00 GMT http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179196.html http://www.aygfsteel.com/jrkui188/comments/179196.html http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179196.html#Feedback 1 http://www.aygfsteel.com/jrkui188/comments/commentRss/179196.html http://www.aygfsteel.com/jrkui188/services/trackbacks/179196.html
Display display = new Display();
Shell shell = new Shell(display);
shell.setBounds(10,10,200,250);
final Table table = new Table(shell, SWT.NONE);
table.setBounds(10,10,150,200);
table.setLinesVisible(true);
for (int i = 0; i < 5; i++) {
new TableItem(table, SWT.NONE).setText("item " + i);
}
table.addListener(SWT.MeasureItem, new Listener() {
public void handleEvent(Event event) {
int clientWidth = table.getClientArea().width;
event.height = event.gc.getFontMetrics().getHeight() * 2;
event.width = clientWidth * 2;
}
});
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
说明Q黑体部分是关键,主要是要为tabled一个监听器q要用到SWT.MeasureItem属性,如果是在TableView下则需要调用TableView#getTable()Ҏ获得Table再添加监听器?br />
q需要注意的是:
1)q个Ҏ可能只在Eclipse3.2以上的版本中才有?br />
2)不能对单行(ItemQ进行height的设|?br />
3)如果讄了widthQ则column的width以它为准?
参考文章:[[1] ]http://www.eclipse.org/articles/Article-CustomDrawingTableAndTreeItems/customDraw.htm#_tb10D
]]> RCP开?-对PropertyView定义自己的排序器 http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179189.html花开有时 花开有时 Sun, 03 Feb 2008 07:52:00 GMT http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179189.html http://www.aygfsteel.com/jrkui188/comments/179189.html http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179189.html#Feedback 0 http://www.aygfsteel.com/jrkui188/comments/commentRss/179189.html http://www.aygfsteel.com/jrkui188/services/trackbacks/179189.html
q行自己的排序(PropertySheetPage有定义好的排序器Q,l研I发现PropertySheetPageq没有提供方法可以设|排序器Q怎么办呢Q?br />
Ҏ是实C个自qPropertySheetPageQ因为在PropertySheetPage中实际上是提供了一个设|排序器的方法的Q但是这个方法是受保护的QprotectedQ,
q不是公开的(publicQ,所以我们需要实现自qPropertySheetPageQ而且q需要实现自q排序器PropertySheetSorter?br />
1.实现自己的PropertySheetSorterQ需要承PropertySheetSortercdƈ实现sort(IPropertySheetEntry[] entries)ҎQ具体可以看父类的实现?br />
2.实现自己的PropertySheetPage:需要承PropertySheetPagecdƈ重写createControl(Composite parent)ҎQ?br />
在方法中首先调用setSorter(自己定义的PropertySheetSortercȝ对象)Q然后调用super.createControl(parent)Ҏ?br />
]]> 定义自己的CellEditor http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179154.html花开有时 花开有时 Sun, 03 Feb 2008 06:51:00 GMT http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179154.html http://www.aygfsteel.com/jrkui188/comments/179154.html http://www.aygfsteel.com/jrkui188/archive/2008/02/03/179154.html#Feedback 1 http://www.aygfsteel.com/jrkui188/comments/commentRss/179154.html http://www.aygfsteel.com/jrkui188/services/trackbacks/179154.html 阅读全文 ]]> 工作随想 http://www.aygfsteel.com/jrkui188/archive/2007/12/26/170713.html花开有时 花开有时 Wed, 26 Dec 2007 12:19:00 GMT http://www.aygfsteel.com/jrkui188/archive/2007/12/26/170713.html http://www.aygfsteel.com/jrkui188/comments/170713.html http://www.aygfsteel.com/jrkui188/archive/2007/12/26/170713.html#Feedback 0 http://www.aygfsteel.com/jrkui188/comments/commentRss/170713.html http://www.aygfsteel.com/jrkui188/services/trackbacks/170713.html ]]>java Methodc试?/title> http://www.aygfsteel.com/jrkui188/archive/2007/12/23/169757.html花开有时 花开有时 Sun, 23 Dec 2007 06:07:00 GMT http://www.aygfsteel.com/jrkui188/archive/2007/12/23/169757.html http://www.aygfsteel.com/jrkui188/comments/169757.html http://www.aygfsteel.com/jrkui188/archive/2007/12/23/169757.html#Feedback 4 http://www.aygfsteel.com/jrkui188/comments/commentRss/169757.html http://www.aygfsteel.com/jrkui188/services/trackbacks/169757.html 思考:其实q些sorterc都是差不多的,只是调用的javabean不同Q方法名UC同,实现的原理,没有什么不同,那么该如何用一个sortercd可对所有的tableviewq行排序呢?
思考结果:也许可以用ClasscMMethodc,也就是什么reflect机制? 阅读全文 ]]> 自定义具有“上囄”下“文字”效果的Button http://www.aygfsteel.com/jrkui188/archive/2007/12/11/166905.html花开有时 花开有时 Tue, 11 Dec 2007 04:57:00 GMT http://www.aygfsteel.com/jrkui188/archive/2007/12/11/166905.html http://www.aygfsteel.com/jrkui188/comments/166905.html http://www.aygfsteel.com/jrkui188/archive/2007/12/11/166905.html#Feedback 0 http://www.aygfsteel.com/jrkui188/comments/commentRss/166905.html http://www.aygfsteel.com/jrkui188/services/trackbacks/166905.html ?/span>Button控g时可以加囄与文字的Q但是不能控制图片与文字的位|。比如我要定义一?/span>Buttonhq样的效?/span>: ,靠 Button得一些属性和Ҏ做不出来Q但?/span>Action可以Q。那么如果我是需要这L ButtonQ该怎么办呢Q我采用的方法是用先加图片,再用 GCM个文字(同时也可以控制文字的大小、样式和位置Q?/span>
具体代码如下Q?/span>
//定义一?/span>Button
Button button = new ButtonQ?/span>shell,SWT.NONEQ?/span>;
//加图?/span>
Button.setImage(new Image(Display.getCurrent(),”….囄的\?/span>”);
//加上l制事g
button.addPaintListener(new PaintListener(){
public void paintControl(PaintEvent e){
//讄字体样式{等
Font font = new Font(Display.getCurrent(),””,8,SWT.BOLD);
e.gc.setFont(font);
e.gc.drawText(“haha”,0,0);
}
});
okQ基本上是q样了,不知道有没有更好的方法?/span>
]]> IFolderLayout#addViewQ)、IPageLayout#addViewQ)与IPageLayout#addStandaloneViewQ)的区别?/title> http://www.aygfsteel.com/jrkui188/archive/2007/12/10/166628.html花开有时 花开有时 Mon, 10 Dec 2007 04:59:00 GMT http://www.aygfsteel.com/jrkui188/archive/2007/12/10/166628.html http://www.aygfsteel.com/jrkui188/comments/166628.html http://www.aygfsteel.com/jrkui188/archive/2007/12/10/166628.html#Feedback 0 http://www.aygfsteel.com/jrkui188/comments/commentRss/166628.html http://www.aygfsteel.com/jrkui188/services/trackbacks/166628.html IFolderLayout#addViewQ) :views攑֜一?/span>IFolderLayoutQ类g个文件夹Q里Q可以叠?/span>view?/span>
IPageLayout#addViewQ) :view按照Ҏ的参数设|放|,E序q行后可以叠?/span>view?/span>
IPageLayout#addStandaloneViewQ) :view按照Ҏ的参数设|放|?/span>viewQ程序运行后不能叠加 view?/span>
]]>
վ֩ģ壺
|
|
|
|
|
² |
ɽ |
|
ߴ |
|
ԭ |
֣ |
½ |
|
|
ɽ |
|
ó |
˺ |
|
|
Ͼ |
ӳ |
|
|
Ӷ |
ɽ |
ٰ |
|
Ѱ |
|
|
|
|
|
|
|
ȫ |
ͨ |
|
˶ |