锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲成在人线免费,国产a级毛片一区,97久久人人超碰http://www.aygfsteel.com/hexise/category/18793.html涓氱簿浜庡嫟鑽掍簬瀣?琛屾垚浜庢濇瘉浜庨殢zh-cnTue, 27 Feb 2007 20:29:50 GMTTue, 27 Feb 2007 20:29:50 GMT60GEF緙栬緫鍣ㄧ殑鍖哄煙鍙?qiáng)婊氬姩鏉?/title><link>http://www.aygfsteel.com/Hexise/archive/2006/12/29/90718.html</link><dc:creator>Hexise</dc:creator><author>Hexise</author><pubDate>Fri, 29 Dec 2006 05:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/Hexise/archive/2006/12/29/90718.html</guid><wfw:comment>http://www.aygfsteel.com/Hexise/comments/90718.html</wfw:comment><comments>http://www.aygfsteel.com/Hexise/archive/2006/12/29/90718.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Hexise/comments/commentRss/90718.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Hexise/services/trackbacks/90718.html</trackback:ping><description><![CDATA[ <font face="Courier New"> </font> <p>GEF緙栬緫鍣ㄦ槸鏋勬灦鍦―raw2D鐨凢igureCanvas涓婄殑,鑰孎igureCanvas鏄痵wt涓瑿anvas鐨勫瓙綾?</p> <p>褰撳緱鍒癋igureCanvas涔嬪悗,灝卞彲浠ュ緱鍒癎EF緙栬緫鍣ㄧ殑鍖哄煙鍜孏EF緙栬緫鍣ㄥ唴閮ㄧ敾甯冪殑澶у皬:</p> <p>緙栬緫鍣ㄥ尯鍩熷ぇ灝?FigureCanvas.getBounds();<br />榪欐槸榪愮敤浜?jiǎn)FigureCanvas鏄疌anvas瀛愮被鐨勭壒鐐?璋冪敤SWT鐨凜anvas鐨刧etBounds()鏂規(guī)硶,鍗寵皟鐢–ontrol鐨刧etBounds()鏂規(guī)硶.</p> <p>鐢誨竷澶у皬:FigureCanvas.getContents.getBounds();<br />榪欐槸榪愮敤浜?jiǎn)IFigure鐨刧etBounds()鏂規(guī)硶, 榪欎袱涓尯鍩熺煩褰笉鍙販娣?</p> <p>鑻ヨ瑙﹀彂GEF緙栬緫鍣ㄧ殑婊氬姩鏉℃搷浣?浠呴渶璋冪敤FigureCanvas鐨剆crollToX(int hOffset)鍜宻crollToY(int vOffset)鍗沖彲.</p> <p>鑾峰彇FigureCanvas鐨勬柟娉曚篃姣旇緝綆鍗?閫氳繃EditPart.getViewer()鑾峰緱EditPartViewer,涓鑸儏鍐典笅EditPartViewer鐨凜ontrol灝辨槸FigureCanvas.</p> <p>鍒楀嚭浠g爜濡備笅:<br /><br /></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #000000">FigureCanvas聽canvas聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽(FigureCanvas)EditPart.getViewer().getControl();<br />canvas.scrollToX(</span> <span style="COLOR: #000000">500</span> <span style="COLOR: #000000">);<br />canvas.scrollToY(</span> <span style="COLOR: #000000">600</span> <span style="COLOR: #000000">);<br />System.out.println(canvas.getBounds());<br />System.out.println(canvas.getContents().getBounds());</span> </div> <img src ="http://www.aygfsteel.com/Hexise/aggbug/90718.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Hexise/" target="_blank">Hexise</a> 2006-12-29 13:16 <a href="http://www.aygfsteel.com/Hexise/archive/2006/12/29/90718.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>eclipse鍒涘緩Image鏂規(guī)硶http://www.aygfsteel.com/Hexise/archive/2006/12/29/90703.htmlHexiseHexiseFri, 29 Dec 2006 04:43:00 GMThttp://www.aygfsteel.com/Hexise/archive/2006/12/29/90703.htmlhttp://www.aygfsteel.com/Hexise/comments/90703.htmlhttp://www.aygfsteel.com/Hexise/archive/2006/12/29/90703.html#Feedback0http://www.aygfsteel.com/Hexise/comments/commentRss/90703.htmlhttp://www.aygfsteel.com/Hexise/services/trackbacks/90703.html
1.浣跨敤Image(Device device, InputStream stream)鏋勯犲嚱鏁?紺轟緥浠g爜濡備笅, path涓哄浘鍍忕浉瀵硅礬寰?

private聽I(yíng)mage聽getImage(String聽path){
聽聽
returnnew聽I(yíng)mage(Display.getCurrent(),聽getClass().getResourceAsStream(path));
}

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

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

聽聽I(yíng)mageDescriptor聽imageDescriptor聽
=聽I(yíng)mageDescriptor.createFromURL(url);
聽聽
return聽imageDescriptor.createImage();
聽}

鎴栬?

private聽I(yíng)mage聽getImage(String聽path){
聽聽聽I(yíng)mageDescriptor聽desc聽
=聽AbstractUIPlugin.imageDescriptorFromPlugin(ID,聽path);
聽聽聽
return聽desc.createImage();
}


Hexise 2006-12-29 12:43 鍙戣〃璇勮
]]>
eclipse涓殑鐩稿鍧愭爣鍜岀粷瀵瑰潗鏍?/title><link>http://www.aygfsteel.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://www.aygfsteel.com/Hexise/archive/2006/12/29/90702.html</guid><wfw:comment>http://www.aygfsteel.com/Hexise/comments/90702.html</wfw:comment><comments>http://www.aygfsteel.com/Hexise/archive/2006/12/29/90702.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Hexise/comments/commentRss/90702.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Hexise/services/trackbacks/90702.html</trackback:ping><description><![CDATA[ <p>杞崲鎴?font color="#ff0000">鐩稿鍧愭爣,</font>瑕佽繍鐢╰ranslateToRelative(Point point)鏂規(guī)硶.</p> <p>渚嬪,鍦‥clipse Editor瑙嗗浘涓姞鍏igure,闇瑕佽綆楀嚭鐩稿浜嶩ostFigure鐨勫潗鏍?鎵嶈兘姝g‘灝唂igure鏀懼湪榧犳爣鐐瑰嚮鐨勪綅緗?鍙互濡備笅榪欐牱鍋?</p> <p>鍦╣etCreateCommand(CreateRequest request)鏂規(guī)硶涓?鍔犲叆濡備笅璇彞:</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://www.aygfsteel.com/Hexise/aggbug/90702.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Hexise/" target="_blank">Hexise</a> 2006-12-29 12:26 <a href="http://www.aygfsteel.com/Hexise/archive/2006/12/29/90702.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Eclipse鎻掍歡濡備綍鍒鋒柊璧勬簮綆$悊鍣?http://www.aygfsteel.com/Hexise/archive/2006/12/29/90700.htmlHexiseHexiseFri, 29 Dec 2006 04:19:00 GMThttp://www.aygfsteel.com/Hexise/archive/2006/12/29/90700.htmlhttp://www.aygfsteel.com/Hexise/comments/90700.htmlhttp://www.aygfsteel.com/Hexise/archive/2006/12/29/90700.html#Feedback0http://www.aygfsteel.com/Hexise/comments/commentRss/90700.htmlhttp://www.aygfsteel.com/Hexise/services/trackbacks/90700.html鏈榪戦」鐩腑鍑虹幇浜?jiǎn)涓涓猙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

鎴戠殑璋冪敤鏂規(guī)硶鏄?

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



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

絳旀鏄彲浠ョ殑.

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

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

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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 富裕县| 弋阳县| 桂林市| 冕宁县| 忻城县| 西平县| 邹城市| 白城市| 麦盖提县| 周至县| 天门市| 应城市| 驻马店市| 班戈县| 常山县| 施甸县| 通辽市| 鱼台县| 华容县| 峨眉山市| 屏山县| 白河县| 乌什县| 栾城县| 军事| 达孜县| 隆林| 昌宁县| 英山县| 徐汇区| 大同县| 宝山区| 吴川市| 大石桥市| 涿州市| 寿光市| 攀枝花市| 哈密市| 翁源县| 雅安市| 永宁县|