Community
Participate
Working Groups
Build id: 200404281424 xp manifest installed comctrl32.dll 5.82.2800.1106 Some menu items in the edit menu (for the java editor) have truncated labels. eg. incremental find previous M8 did not show the accelerators for these long menu items will attach a screenshot
Created attachment 10204 [details] truncated menu items notice 'incremental find previous' and 'show tooltip description' are truncated
I am not 100% sure this is an SWT bug as i couldn't reproduce with a snippet. The problem seems to be triggered by the workbench command system updating the assigned keystrokes of the menu items. I traced though the processa nd all it seem to end up doing is changing the text of the MenuItem with setText(); test steps: 1. Open a java file 2. click on the edit menu 3. Notice cut off labels 4. give focus to the package explorer or navigator 5. Click on the Edit menu. No accelerators are listed but the menu is the same size as in step 3.
It's SWT. We have a work around for this bug in Windows that is not being triggered.
This code shows the problem: import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; public class PR_60704 { public static void main (String [] args) { Display display = new Display (); Image image = new Image (display, 16, 16); Shell shell = new Shell (display); Menu menu = new Menu (shell, SWT.BAR); shell.setMenuBar (menu); MenuItem fileItem = new MenuItem (menu, SWT.CASCADE); fileItem.setText ("File"); Menu fileMenu = new Menu (shell, SWT.DROP_DOWN); fileItem.setMenu (fileMenu); MenuItem item0 = new MenuItem (fileMenu, SWT.CHECK); item0.setText ("Delete\tDelete"); item0.setImage (image); MenuItem item2 = new MenuItem (fileMenu, SWT.PUSH); item2.setText ("Incremental Find Previous\tCtrl+Shift+J"); shell.pack (); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } image.dispose (); display.dispose (); } }
Fixed > 20040503
This change causes a problem whereby the text label for MenuItems with sub-Menus are blank. To see: - new window in resource perspective - in Navigator view, clear selection and pop up the menu - pop up the menu again - the New menu item is blank If I back out the change to Menu (back to v1.71), it works OK.
Fixed > 20040505 Sorry about that. I was unable to self host in order to check the change. I still can't but I fixed it using someone else's workspace.
*** Bug 61146 has been marked as a duplicate of this bug. ***
Please watch for this again and bug #61146. The fix was not complete and more code has been changed in the same area. Thanks.
*** Bug 49811 has been marked as a duplicate of this bug. ***
*** Bug 61209 has been marked as a duplicate of this bug. ***