diff options
author | Nikita Nemkin | 2018-02-16 21:12:22 +0000 |
---|---|---|
committer | Lars Vogel | 2018-03-28 15:22:36 +0000 |
commit | 84c9e305cb087110cb300a5e58f86583cf80914d (patch) | |
tree | 5666f707b70a6e756d3ba9e8e51470cbd95fd522 /bundles/org.eclipse.swt/Eclipse SWT Accessibility | |
parent | 4b0412b94e47be8f2c5480568a36ec71809a148f (diff) | |
download | eclipse.platform.swt-84c9e305cb087110cb300a5e58f86583cf80914d.tar.gz eclipse.platform.swt-84c9e305cb087110cb300a5e58f86583cf80914d.tar.xz eclipse.platform.swt-84c9e305cb087110cb300a5e58f86583cf80914d.zip |
Bug 531097 - [Win32] Remove support for Windows before Vista
Remove code paths specific to WinCE, Win9x, WinNT4, Win2k, WinXP.
Remove uses of obsolete flag=no_wince JNI annotation.
The following OS variables indicate dead code:
* WIN32_VERSION is awlays >= 6.0
* COMCTL32_VERSION is always 6.10;
* SHELL32_VERSION is always >= 6.0;
* IsWinNT and IsUnicode are always true;
* IsWin32s, IsWin95, IsWinCE, IsPPC, IsHPC, IsSP are always false.
Change-Id: I4e700a89b22cd879e7c46f1493115a77e2ade1c9
Signed-off-by: Nikita Nemkin <nikita@nemkin.ru>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Accessibility')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java index 6229af87df..a3387891f2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java @@ -2512,11 +2512,7 @@ public class Accessible { int columnCount = tree.getColumnCount (); if (columnCount > 1) { long /*int*/ hwnd = control.handle, hItem = 0; - if (OS.COMCTL32_MAJOR >= 6) { - hItem = OS.SendMessage (hwnd, OS.TVM_MAPACCIDTOHTREEITEM, v.lVal, 0); - } else { - hItem = v.lVal; - } + hItem = OS.SendMessage (hwnd, OS.TVM_MAPACCIDTOHTREEITEM, v.lVal, 0); Widget widget = tree.getDisplay ().findWidget (hwnd, hItem); event.result = ""; if (widget != null && widget instanceof TreeItem) { @@ -2874,11 +2870,7 @@ public class Accessible { TVITEM tvItem = new TVITEM (); tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_STATE; tvItem.stateMask = OS.TVIS_STATEIMAGEMASK; - if (OS.COMCTL32_MAJOR >= 6) { - tvItem.hItem = OS.SendMessage (hwnd, OS.TVM_MAPACCIDTOHTREEITEM, v.lVal, 0); - } else { - tvItem.hItem = v.lVal; - } + tvItem.hItem = OS.SendMessage (hwnd, OS.TVM_MAPACCIDTOHTREEITEM, v.lVal, 0); long /*int*/ result = OS.SendMessage (hwnd, OS.TVM_GETITEM, 0, tvItem); boolean checked = (result != 0) && (((tvItem.state >> 12) & 1) == 0); if (checked) event.detail |= ACC.STATE_CHECKED; @@ -5019,18 +5011,7 @@ public class Accessible { /* ChildIDs are 1-based indices. */ int osChildID = childID + 1; if (control instanceof Tree) { - /* - * Feature of Windows: - * Before Windows XP, tree item ids were 1-based indices. - * Windows XP and later use the tree item handle for the - * accessible child ID. For backward compatibility, we still - * take 1-based childIDs for tree items prior to Windows XP. - */ - if (OS.COMCTL32_MAJOR < 6) { - osChildID = childID; - } else { - osChildID = (int)/*64*/OS.SendMessage (control.handle, OS.TVM_MAPHTREEITEMTOACCID, childID, 0); - } + osChildID = (int)/*64*/OS.SendMessage (control.handle, OS.TVM_MAPHTREEITEMTOACCID, childID, 0); } checkUniqueID(osChildID); return osChildID; @@ -5047,7 +5028,6 @@ public class Accessible { * All other childIDs are 1-based indices. */ if (!(control instanceof Tree)) return osChildID - 1; - if (OS.COMCTL32_MAJOR < 6) return osChildID; return (int)/*64*/OS.SendMessage (control.handle, OS.TVM_MAPACCIDTOHTREEITEM, osChildID, 0); } |