Open Haibi04 opened 6 years ago
Eclipse 4.7 for Mac OS X
The notification alwasys top feature is only works for Windows platform.
I don't known why your max os has org.eclipse.swt.internal.win32.OS
class, and the exception will catched to consumed.
org.eclipse.wst.web.ui
can't be resoved, maybe you need to re-install eclipse for mac os version.
!ENTRY org.eclipse.wst.web.ui 4 0 2018-07-05 10:24:24.526 !MESSAGE FrameworkEvent ERROR !STACK 0 org.osgi.framework.BundleException: Could not resolve module: org.eclipse.wst.web.ui [922]
I can't solve the problem, could you help me? and I also have the problem at package cn.ieclipse.smartim.common.Notifications
public Notifications(Display display, int style) { super(display, style); try { Class<?> clazz = Class.forName("org.eclipse.swt.internal.win32.OS"); if (clazz != null) { long top = clazz.getField("HWND_TOPMOST").getLong(null); Method m = clazz.getMethod("SetWindowPos", long.class, long.class, int.class, int.class, int.class, int.class, int.class); m.invoke(null, this.handle, top, 0, 0, 0, 0, 0);
the handle cannot be resolved or is not a field.