锘??xml version="1.0" encoding="utf-8" standalone="yes"?>色拍自拍亚洲综合图区,久久精品亚洲福利,亚洲五月六月丁香激情http://m.tkk7.com/hexise/category/18793.html涓氱簿浜庡嫟鑽掍簬瀣?琛屾垚浜庢濇瘉浜庨殢zh-cnTue, 27 Feb 2007 20:29:50 GMTTue, 27 Feb 2007 20:29:50 GMT60GEF緙栬緫鍣ㄧ殑鍖哄煙鍙婃粴鍔ㄦ潯http://m.tkk7.com/Hexise/archive/2006/12/29/90718.htmlHexiseHexiseFri, 29 Dec 2006 05:16:00 GMThttp://m.tkk7.com/Hexise/archive/2006/12/29/90718.htmlhttp://m.tkk7.com/Hexise/comments/90718.htmlhttp://m.tkk7.com/Hexise/archive/2006/12/29/90718.html#Feedback2http://m.tkk7.com/Hexise/comments/commentRss/90718.htmlhttp://m.tkk7.com/Hexise/services/trackbacks/90718.html

GEF緙栬緫鍣ㄦ槸鏋勬灦鍦―raw2D鐨凢igureCanvas涓婄殑,鑰孎igureCanvas鏄痵wt涓瑿anvas鐨勫瓙綾?

褰撳緱鍒癋igureCanvas涔嬪悗,灝卞彲浠ュ緱鍒癎EF緙栬緫鍣ㄧ殑鍖哄煙鍜孏EF緙栬緫鍣ㄥ唴閮ㄧ敾甯冪殑澶у皬:

緙栬緫鍣ㄥ尯鍩熷ぇ灝?FigureCanvas.getBounds();
榪欐槸榪愮敤浜咶igureCanvas鏄疌anvas瀛愮被鐨勭壒鐐?璋冪敤SWT鐨凜anvas鐨刧etBounds()鏂規硶,鍗寵皟鐢–ontrol鐨刧etBounds()鏂規硶.

鐢誨竷澶у皬:FigureCanvas.getContents.getBounds();
榪欐槸榪愮敤浜咺Figure鐨刧etBounds()鏂規硶, 榪欎袱涓尯鍩熺煩褰笉鍙販娣?

鑻ヨ瑙﹀彂GEF緙栬緫鍣ㄧ殑婊氬姩鏉℃搷浣?浠呴渶璋冪敤FigureCanvas鐨剆crollToX(int hOffset)鍜宻crollToY(int vOffset)鍗沖彲.

鑾峰彇FigureCanvas鐨勬柟娉曚篃姣旇緝綆鍗?閫氳繃EditPart.getViewer()鑾峰緱EditPartViewer,涓鑸儏鍐典笅EditPartViewer鐨凜ontrol灝辨槸FigureCanvas.

鍒楀嚭浠g爜濡備笅:

FigureCanvas聽canvas聽 = 聽(FigureCanvas)EditPart.getViewer().getControl();
canvas.scrollToX(
500 );
canvas.scrollToY(
600 );
System.out.println(canvas.getBounds());
System.out.println(canvas.getContents().getBounds());


Hexise 2006-12-29 13:16 鍙戣〃璇勮
]]>
eclipse鍒涘緩Image鏂規硶http://m.tkk7.com/Hexise/archive/2006/12/29/90703.htmlHexiseHexiseFri, 29 Dec 2006 04:43:00 GMThttp://m.tkk7.com/Hexise/archive/2006/12/29/90703.htmlhttp://m.tkk7.com/Hexise/comments/90703.htmlhttp://m.tkk7.com/Hexise/archive/2006/12/29/90703.html#Feedback0http://m.tkk7.com/Hexise/comments/commentRss/90703.htmlhttp://m.tkk7.com/Hexise/services/trackbacks/90703.html
1.浣跨敤Image(Device device, InputStream stream)鏋勯犲嚱鏁?紺轟緥浠g爜濡備笅, path涓哄浘鍍忕浉瀵硅礬寰?

private聽Image聽getImage(String聽path){
聽聽
returnnew聽Image(Display.getCurrent(),聽getClass().getResourceAsStream(path));
}

2.浣跨敤ImageDescriptor鐨刢reateImage()鏂規硶,紺轟緥浠g爜濡備笅,path涓哄浘鍍忕浉瀵硅礬寰?

private聽Image聽getImage(String聽path){
聽聽URL聽url聽
=null;
聽聽
try{
聽聽聽url聽
=new聽URL(Activator.getDefault().getDescriptor().getInstallURL(),聽path);
聽聽}
catch(MalformedURLException聽e){
聽聽聽e.printStackTrace();
聽聽}

聽聽ImageDescriptor聽imageDescriptor聽
=聽ImageDescriptor.createFromURL(url);
聽聽
return聽imageDescriptor.createImage();
聽}

鎴栬?

private聽Image聽getImage(String聽path){
聽聽聽ImageDescriptor聽desc聽
=聽AbstractUIPlugin.imageDescriptorFromPlugin(ID,聽path);
聽聽聽
return聽desc.createImage();
}


Hexise 2006-12-29 12:43 鍙戣〃璇勮
]]>
eclipse涓殑鐩稿鍧愭爣鍜岀粷瀵瑰潗鏍?/title><link>http://m.tkk7.com/Hexise/archive/2006/12/29/90702.html</link><dc:creator>Hexise</dc:creator><author>Hexise</author><pubDate>Fri, 29 Dec 2006 04:26:00 GMT</pubDate><guid>http://m.tkk7.com/Hexise/archive/2006/12/29/90702.html</guid><wfw:comment>http://m.tkk7.com/Hexise/comments/90702.html</wfw:comment><comments>http://m.tkk7.com/Hexise/archive/2006/12/29/90702.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/Hexise/comments/commentRss/90702.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/Hexise/services/trackbacks/90702.html</trackback:ping><description><![CDATA[ <p>杞崲鎴?font color="#ff0000">鐩稿鍧愭爣,</font>瑕佽繍鐢╰ranslateToRelative(Point point)鏂規硶.</p> <p>渚嬪,鍦‥clipse Editor瑙嗗浘涓姞鍏igure,闇瑕佽綆楀嚭鐩稿浜嶩ostFigure鐨勫潗鏍?鎵嶈兘姝g‘灝唂igure鏀懼湪榧犳爣鐐瑰嚮鐨勪綅緗?鍙互濡備笅榪欐牱鍋?</p> <p>鍦╣etCreateCommand(CreateRequest request)鏂規硶涓?鍔犲叆濡備笅璇彞:</p> <p>Point location = request.getLocation().getCopy();<br />getHostFigure().translateToRelative(location);<br /><br />濡傛鑾峰緱鐨刲ocation灝辨槸鐩稿浜嶩ostFigure鐨勫潗鏍?<br /><br /><br /><br /><br /></p> <p>鑳藉鑾峰緱褰撳墠鍏夋爣<font color="#ff0000">緇濆鍧愭爣</font>鐨勬柟娉曟槸:<br /><br />Display.getDefault().getCursorLocation()</p> <img src ="http://m.tkk7.com/Hexise/aggbug/90702.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/Hexise/" target="_blank">Hexise</a> 2006-12-29 12:26 <a href="http://m.tkk7.com/Hexise/archive/2006/12/29/90702.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Eclipse鎻掍歡濡備綍鍒鋒柊璧勬簮綆$悊鍣?http://m.tkk7.com/Hexise/archive/2006/12/29/90700.htmlHexiseHexiseFri, 29 Dec 2006 04:19:00 GMThttp://m.tkk7.com/Hexise/archive/2006/12/29/90700.htmlhttp://m.tkk7.com/Hexise/comments/90700.htmlhttp://m.tkk7.com/Hexise/archive/2006/12/29/90700.html#Feedback0http://m.tkk7.com/Hexise/comments/commentRss/90700.htmlhttp://m.tkk7.com/Hexise/services/trackbacks/90700.html鏈榪戦」鐩腑鍑虹幇浜嗕竴涓猙ug,鎻愮ず鏄疪esource can not sync with file system.鏄枃浠剁郴緇熶笉鍚屾鐨勯棶棰?闇瑕佹墜鍔ㄥ埛鏂頒竴涓嬭祫婧愮鐞嗗櫒.

鍒鋒柊璧勬簮綆$悊鍣ㄨ皟鐢ㄦ柟娉?

RefreshLocal

public void refreshLocal(int depth, IProgressMonitor monitor)
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 throws CoreException

Refreshes the resource hierarchy from this resource and its children (to the specified depth) relative to the local file system. Creations, deletions, and changes detected in the local file system will be reflected in the workspace's resource tree. This resource need not exist or be local.
This method may discover changes to resources; any such changes will be reported in a subsequent resource change event.

If a new file or directory is discovered in the local file system at or below the location of this resource, any parent folders required to contain the new resource in the workspace will also be created automatically as required.

This method is long-running; progress and cancellation are provided by the given progress monitor.


Parameters:
depth - valid values are DEPTH_ZERO, DEPTH_ONE, or DEPTH_INFINITE
monitor - a progress monitor, or null if progress reporting is not desired
Throws:
CoreException - if this method fails. Reasons include:
Resource changes are disallowed during certain types of resource change event notification. See IResourceChangeEvent for more details.
OperationCanceledException - if the operation is canceled. Cancelation can occur even if no progress monitor is provided.
See Also:
DEPTH_ZERO, DEPTH_ONE, DEPTH_INFINITE, IResourceRuleFactory.refreshRule(IResource)

璇ユ柟娉曚綅浜巓rg.eclipse.core.resources.IResource

鎴戠殑璋冪敤鏂規硶鏄?

ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE, monitor);



Hexise 2006-12-29 12:19 鍙戣〃璇勮
]]>
灞炰簬鑷繁鐨凱roperty Viewhttp://m.tkk7.com/Hexise/archive/2006/12/29/90680.htmlHexiseHexiseFri, 29 Dec 2006 03:14:00 GMThttp://m.tkk7.com/Hexise/archive/2006/12/29/90680.htmlhttp://m.tkk7.com/Hexise/comments/90680.htmlhttp://m.tkk7.com/Hexise/archive/2006/12/29/90680.html#Feedback0http://m.tkk7.com/Hexise/comments/commentRss/90680.htmlhttp://m.tkk7.com/Hexise/services/trackbacks/90680.html鍙互鎵╁睍灞炰簬鑷繁鐨刾roperty view鍚?鎹㈠彞璇濊,鑳藉惁鍐嶆墿灞曞嚭涓涓猵roperty view鍑烘潵,騫跺瀹冭繘琛屽畾鍒?

絳旀鏄彲浠ョ殑.

濡傛灉浣犳墍鍐欑殑Property View綾葷戶鎵胯嚜PropertySheet,閭d箞瀹冨氨鏄墿灞曞嚭鐨勬柊property view. 浣犲悓鏍峰彲浠ュ鍏惰繘琛屽畾鍒?涓嶄細騫叉壈鍒板師鏈夌殑property鐨勬甯告樉紺?

渚嬪,浣犲彲浠ヨ浣犵殑property view 涓嶇洃鍚煇涓猉YZView涓殑浜嬩歡,鍙渶瑕佽鐩栨帀isImportant鏂規硶灝卞彲浠ヤ簡.

import 聽org.eclipse.ui.IWorkbenchPart;
import 聽org.eclipse.ui.views.properties.PropertySheet;

public class 聽PropertyView聽 extends 聽PropertySheet聽 {

聽聽
protected boolean 聽isImportant(IWorkbenchPart聽part)聽 {
聽聽聽聽聽聽聽聽
return 聽part聽 != this && ! (part聽 instanceof 聽XYZView);
聽聽聽聽}

}


Hexise 2006-12-29 11:14 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 国产精品久久久久免费a∨| 国产精品免费视频一区| 亚洲色精品vr一区二区三区| 亚洲男人天堂av| 国产精品亚洲二区在线| 日本久久久免费高清| 亚洲色大成网站www永久男同| 一级做a毛片免费视频| 免费一级特黄特色大片在线观看| 国产亚洲福利精品一区二区| 免费大黄网站在线看| 一级黄色毛片免费看| 亚洲人成无码网站| 久久这里只精品99re免费| 久久久久亚洲AV无码专区体验| 最近2019年免费中文字幕高清| 亚洲人成激情在线播放| 日本最新免费不卡二区在线| 深夜福利在线视频免费| 亚洲AV永久无码精品水牛影视| 免费h片在线观看网址最新| 亚洲愉拍一区二区三区| 又黄又爽一线毛片免费观看| 精品国产污污免费网站入口| 亚洲AV日韩AV永久无码久久| 欧美在线看片A免费观看| 日韩色视频一区二区三区亚洲| 国产精品V亚洲精品V日韩精品| 国产亚洲玖玖玖在线观看| 国产一区二区三区在线免费观看 | 亚洲成?v人片天堂网无码| 好湿好大好紧好爽免费视频| 亚洲AV综合色区无码一区爱AV| 免费H网站在线观看的| 污视频网站在线免费看| 亚洲成年人在线观看| 好吊妞在线成人免费| 9久热这里只有精品免费| 亚洲国产精品久久丫| 亚洲一区二区视频在线观看| 亚洲啪啪免费视频|