Windows 10上的Eclipse RCP Jface/SWT TreeViewer [英] Eclipse RCP Jface/SWT TreeViewer on Windows 10
问题描述
我有一个RCP应用程序.我最近将应用程序移到了64位.它基于Eclipse 3.7.0.
I have a RCP application. I recently moved the application to 64 bit. It is based on Eclipse 3.7.0.
我注意到有些奇怪. Windows 10的32位和64位版本的TreeViewer展开/折叠图标之间存在差异.
I noticed something weird. There is a discrepancy between TreeViewer expand/collapse icons on 32 and 64 bit builds on Windows 10.
据我了解,它取决于确定主题和图标使用方式的操作系统.
From what I understand it goes down to the OS which determines the theme and what to use for the icon.
在32位版本上,TreeViewer展开/折叠看起来像:
On 32 bit builds TreeViewer expand/collapse looks like:
在64位版本上,TreeViewer展开/折叠看起来像:
On 64 bit builds TreeViewer expand/collapse looks like:
为什么仅使用+-构建64位?这仅在我的工具内发生.我正在使用的64位Eclipse平台显示了正确的展开/折叠Windows 10图标.
Why are 64 bit builds only using + -? This only happens within my tool. The 64 bit Eclipse platform I am using shows the correct expand/collapse Windows 10 icons.
我可能做错了什么?我应该从哪里开始寻找?
What can I possibly be doing wrong? Where should I start looking?
我已经检查了所有的TreeViewers初始化,并且没有提供任何特殊的样式.
I have checked all my initializations of TreeViewers and I am not giving anything special style-wise.
推荐答案
几个月过去了,我弄清楚了造成问题的原因.
Months passed and I figured out what was causing the issue.
基本上,我们有一个JNI
层,该层加载了一些需要MSVCR90.dll
的dll
.这需要将MSVCR90.dll
清单嵌入到用于RCP
的eclipse.exe
中,这是使用Microsoft Visual Studio
提供的mt.exe
来完成的.
Basically we have a JNI
layer which loads some dll
that requires MSVCR90.dll
. This requires embedding MSVCR90.dll
manifest into eclipse.exe
used for our RCP
, this is done using mt.exe
provided by Microsoft Visual Studio
.
虽然我不小心在建筑物中未嵌入MSVCR90.dll
清单,但这会导致在加载dll
时出错,该错误表明MSVCR90.dll
丢失.但是,我注意到树视图样式看起来是正确的.
While building I accidentally didn't embed the MSVCR90.dll
manifest, this resulted into the error during loading the dll
which says that MSVCR90.dll
is missing. I however noticed that the treeview styling looked correct.
这篇关于Windows 10上的Eclipse RCP Jface/SWT TreeViewer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!