标签:
上文回顾:定制Eclipse IDE之插件篇(二)
该篇将讲述在开发Eclipse 插件过程发生的疑难杂症。不谈功能,只说病症。
<extension id="BingoTouch" point="org.eclipse.core.runtime.products"> <product application="org.eclipse.ui.ide.workbench" name="%name"> <property name="preferenceCustomization" value="plugin_customization.ini" /> <property name="appName" value="BingoTouch" /> <property name="windowImages" value="icons/eclipse16.png,icons/eclipse32.png" /> <property name="aboutText" value="%aboutText" /> </product> </extension>
-product
org.eclipse.epp.package.rcp.product
-product
com.bingo.ide.perspective.BingoTouch
另外一种是将你要生效的那个plugin_customization.ini覆盖eclipse\plugins\org.eclipse.epp.package.rcp_4.4.2.20150219-0708 目录里的plugin_customization.ini(我是用这种方法)。
<property name="cssTheme" value="com.appcelerator.titanium.rcp.theme.dashboard"> </property>
javacDefaultEncoding.. = UTF-8
五、插件的控制台输出在mac上显示乱码
-Dfile.encoding=UTF-8
.MToolControl.TrimStack { handle-image: url(chrome://drag-handle?height=22&background-color=#cccccc&embossed=true); }
里面handle-image的url无法访问,引发的问题。
.MToolControl.TrimStack { handle-image: url(./dragHandle.png); }
com.bingo.ide.perspective,1.0.0,dropins/eclipse/plugins/com.bingo.ide.perspective_1.0.0.jar,4,false
import java.io.File; /** * 插件生成后,生成Bundles.info * @author lufeng */ public class BuildInfo { final static String exportPluginPath = "F:\\source\\bingo-touch\\ide\\release\\window_64\\eclipse\\dropins\\eclipse\\plugins\\"; final static String pluginPath ="dropins/eclipse/plugins/"; public static void main(String[] args) { File direct = new File(exportPluginPath); File[] files = direct.listFiles(); for(File f : files){ String s = f.getName(); int p = s.lastIndexOf("_"); if(p == -1) continue; String name = s.substring(0, p); String version = s.substring(p+1); if(version != null && !"".equals(version)) version = version.substring(0, version.lastIndexOf(".")); //.jar直接拼接,文件夹形式的后边加"/" if(f.isDirectory()) s = s+"/"; System.out.println(name+","+version+","+pluginPath +s+",4,false"); } } }
标签:
原文地址:http://www.cnblogs.com/lovesong/p/4694757.html