自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除