锘??xml version="1.0" encoding="utf-8" standalone="yes"?>麻豆av一区二区三区久久,国产精品人成电影,亚洲欧美制服第一页http://www.aygfsteel.com/jame-liu/category/3920.html涓鍒囩殕鏈夊彲鑳?/description>zh-cnTue, 27 Feb 2007 12:59:27 GMTTue, 27 Feb 2007 12:59:27 GMT60Eclipse 鏂囦歡璧勬簮璺緞http://www.aygfsteel.com/jame-liu/articles/61730.htmljamejameFri, 04 Aug 2006 05:57:00 GMThttp://www.aygfsteel.com/jame-liu/articles/61730.htmlhttp://www.aygfsteel.com/jame-liu/comments/61730.htmlhttp://www.aygfsteel.com/jame-liu/articles/61730.html#Feedback0http://www.aygfsteel.com/jame-liu/comments/commentRss/61730.htmlhttp://www.aygfsteel.com/jame-liu/services/trackbacks/61730.html榪愯鐜(runtime-workspace)涓嬮潰.metadata\.plugins\xxxxxx (plugin ID)
AaaaPlugin.getDefault().getStateLocation().makeAbsolute().toFile().getAbsolutePath());


String path = ((IFile)o).getLocation().makeAbsolute().toFile().getAbsolutePath();

榪愯鐜(runtime-workspace)錛?/p>

IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();


浠庢牴鏉ユ煡鎵捐祫婧愶細(xì)

IResource resource = root.findMember(new Path(containerName));

IWorkspaceRoot
聽-IProject
聽聽 -IFolder
聽聽聽聽 -IFile

IResource
寰楀埌緇濆璺緞鏂規(guī)硶錛?br />getLocation().toOSString()
寰楀埌鐩稿璺緞鏂規(guī)硶錛?br />getFullPath().toOSString()
閫氳繃鐩稿璺緞鎵懼埌鏂囦歡:
姣斿璇達(dá)細(xì)XXXProject涓嬮潰鏈?"/webApp/StarflowFormEdit.jsp"
String path=pjt.getFile("/webApp/StarflowFormEdit.jsp").getLocation().toOSString();

//Project
浠嶣undle鏉ユ煡鎵捐祫婧愶細(xì)

Bundle bundle = Platform.getBundle(pluginId);
URL fullPathString = BundleUtility.find(bundle, filePath);
澶囨敞錛?br />涓涓狾SGI妯″潡鏈閲嶈鐨勫氨鏄疊undle鍜孲ervice錛屾垜浠彲浠ヨ涓築undle鏄竴縐嶆彃浠剁鐞嗗櫒錛?br />涓昏鏄氳繃BundleActivator綆$悊妯″潡鐨勭敓鍛藉懆鏈燂紝鑰孲ervice鍒欐槸榪欎釜妯″潡鍙毚闇插澶栫殑鏈嶅姟瀵硅薄銆?br />榪欓噷浣撶幇浜哋SGI鍜屼紶緇熺殑Plug-in Framework涓嶅悓鐨勪竴涓湴鏂癸紝綆$悊鍜岄潤鎬佺粨鏋勫垎寮錛?br />姣忎釜Bundle鎷ユ湁鑷繁鐨凜lassLoader浠ュ強(qiáng)context錛岄氳繃context鍙繘琛屾湇鍔$殑娉ㄥ唽銆佸嵏杞界瓑錛?br />榪欎簺鎿嶄綔閮戒細(xì)閫氳繃浜嬩歡鏈哄埗騫挎挱緇欑浉搴旂殑鍏朵粬鐨凚undle錛涗竴鑸潵璇撮兘涓洪氳繃鍦˙undle涓紪鍐欏垵濮嬮渶瑕佹敞鍐岀殑鏈嶅姟鐨勬柟娉曟潵
瀹屾垚Bundle鍙緵澶栭儴浣跨敤鐨勬湇鍔$殑鏆撮湶鍔熻兘銆?/p>


寰楀埌Appliaction workspace錛?br />Platform.asLocalURL(PRODUCT_BUNDLE.getEntry("")).getPath()).getAbsolutePath();

榪愯鐜(runtime-workspace)錛?br />Platform.getInstanceLocation().getURL().getPath();

浠庣紪杈戝櫒鏉ヨ幏寰楃紪杈戞枃浠訛細(xì)

IEditorPart editor = ((DefaultEditDomain)(parent.getViewer().getEditDomain())).getEditorPart();
IEditorInput input = editor.getEditorInput();
if(input instanceof IFileEditorInput){
IFile file = ((IFileEditorInput)input).getFile();



jame 2006-08-04 13:57 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 古交市| 容城县| 丹寨县| 青龙| 甘泉县| 鞍山市| 南丰县| 揭阳市| 酒泉市| 青铜峡市| 江永县| 玉田县| 葵青区| 凉山| 巴彦县| 吉木萨尔县| 泾阳县| 株洲县| 诸城市| 望城县| 万全县| 马龙县| 友谊县| 安陆市| 揭阳市| 嵊泗县| 石林| 广宁县| 塘沽区| 天柱县| 乌拉特中旗| 勐海县| 青田县| 屏山县| 奎屯市| 阿拉善左旗| 莲花县| 上蔡县| 茂名市| 简阳市| 泸西县|