- 博客(6)
- 收藏
- 关注
原创 屏蔽第3方 插件的扩展点
在自己的Eclipse RCP 产品中,可能经常要集成第三方的插件,来满足特定的功能需要。但是对于一些不需要的功能,通常的做法是该插件修改源代码。如果出于lisence或非开源的原因,无法修改,或删除其源代码,就要考虑如何在RCP中控制其扩展点的加载。 可以在RCP的WorkbenchWindowAdvisor.preWindowOpen中,取到所有加载的扩展点,然后进行相应的过滤...
2011-01-17 21:04:42 219
原创 eclipse rcp 点滴
PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(), PreferenceConstants.PREF_PAGE_AUTO_UPDATES, null, null);dialog.open();来源:org.eclipse.equinox.internal.p2.ui.sdk.sch...
2011-01-11 11:00:09 108
原创 Getting the Login Name of the Currently Logged-In User
[b]This example retrieves the login name of the user that is running the application. [/b][code="java"]try { String loginAppName = "GetLoginNameUnix"; // If the application is run on...
2010-01-30 20:16:17 147
原创 Setting the Decimal Place of a Big Decimal Value
[code="java"]int decimalPlaces = 2;// Truncates the big decimal value.bd = bd.setScale(decimalPlaces, BigDecimal.ROUND_DOWN);String string = bd.toString();[/code]
2010-01-30 20:06:52 145
原创 Parsing and Formatting a Byte Array into Binary, Octal, and Hexadecimal
[code="java"]// Get a byte arraybyte[] bytes = new byte[]{(byte)0x12, (byte)0x0F, (byte)0xF0};// Create a BigInteger using the byte arrayBigInteger bi = new BigInteger(bytes);// Format t...
2010-01-30 20:05:08 79
原创 Parsing and Formatting a Big Integer into Binary, Octal, and Hexadecimal
[code="java"]BigInteger bi = new BigInteger("1023");// Parse and format to binarybi = new BigInteger("1111111111", 2); // 1023String s = bi.toString(2); // 1111111111// Parse ...
2010-01-30 20:02:58 87
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人