issue_id
int64 2.03k
426k
| title
stringlengths 9
251
| body
stringlengths 1
32.8k
⌀ | status
stringclasses 6
values | after_fix_sha
stringlengths 7
7
| updated_files
stringlengths 29
34.1k
| project_name
stringclasses 6
values | repo_url
stringclasses 6
values | repo_name
stringclasses 6
values | language
stringclasses 1
value | issue_url
null | before_fix_sha
null | pull_url
null | commit_datetime
unknown | report_datetime
unknown |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93,387 | Bug 93387 console hijacks SWT event thread when selecting binary content | I20050426-1700 When selecting the console contents with the mouse, eclipse got into a eternal (or extremely long running) loop. The dump below reveals that the console's StyledText is busy handling selection events that were posted - presumably from the console. filing against debug because I suspect the selection handling is done there - please move to SWT if you think the problem is there. ------ main threads in vm dump (1) ---------- "main" prio=1 tid=0x0805bed0 nid=0x3105 runnable [0xbfffc000..0xbfffd438] at org.eclipse.swt.internal.gtk.OS.strlen(Native Method) at org.eclipse.swt.graphics.TextLayout.getBounds(TextLayout.java:431) at org.eclipse.swt.custom.StyledText.redrawLines(StyledText.java:6041) at org.eclipse.swt.custom.StyledText.internalRedrawRange(StyledText.java:4912) at org.eclipse.swt.custom.StyledText.doSelection(StyledText.java:3058) at org.eclipse.swt.custom.StyledText.doMouseSelection(StyledText.java:2846) at org.eclipse.swt.custom.StyledText.doMouseLocationChange(StyledText.java:2829) at org.eclipse.swt.custom.StyledText.handleMouseMove(StyledText.java:5165) at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4817) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2778) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2472) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1569) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1533) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:345) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:319) at org.eclipse.core.launcher.Main.basicRun(Main.java:272) at org.eclipse.core.launcher.Main.run(Main.java:951) at org.eclipse.core.launcher.Main.main(Main.java:935) ------ main threads in vm dump (2) ---------- "main" prio=1 tid=0x0805bed0 nid=0x3105 runnable [0xbfffc000..0xbfffd438] at org.eclipse.swt.internal.gtk.OS.pango_layout_iter_next_line(OS.java:8011) at org.eclipse.swt.graphics.TextLayout.getBounds(TextLayout.java:428) at org.eclipse.swt.custom.StyledText.redrawLines(StyledText.java:6041) at org.eclipse.swt.custom.StyledText.internalRedrawRange(StyledText.java:4912) at org.eclipse.swt.custom.StyledText.doSelection(StyledText.java:3058) at org.eclipse.swt.custom.StyledText.doMouseSelection(StyledText.java:2846) at org.eclipse.swt.custom.StyledText.doMouseLocationChange(StyledText.java:2829) at org.eclipse.swt.custom.StyledText.handleMouseMove(StyledText.java:5165) at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4817) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2778) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2472) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1569) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1533) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:345) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:319) at org.eclipse.core.launcher.Main.basicRun(Main.java:272) at org.eclipse.core.launcher.Main.run(Main.java:951) at org.eclipse.core.launcher.Main.main(Main.java:935) | resolved fixed | 2180d58 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/graphics/TextLayout.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-09T15:54:48Z" | "2005-05-02T07:46:40Z" |
87,051 | Bug 87051 NPE in file dialog when trying to open a file with a wierd name. | create a file named : GPS_Gil_3211'33_ N,3452'22_ E to Sapir, Herzliya.log try to open it with file dialog. an NPE is thrown: java.lang.NullPointerException at org.eclipse.swt.widgets.FileDialog.computeResultChooserDialog(FileDialog.java:140) at org.eclipse.swt.widgets.FileDialog.openChooserDialog(FileDialog.java:324) at org.eclipse.swt.widgets.FileDialog.open(FileDialog.java:293) at com.telmap.navtool.gps.views.swt.GPSFileReaderComposite$4.widgetSelected(GPSFileReaderComposite.java:214) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1009) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2728) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2427) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at com.telmap.navtool.NavToolApplication.run(NavToolApplication.java:21) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268) at org.eclipse.core.launcher.Main.basicRun(Main.java:260) at org.eclipse.core.launcher.Main.run(Main.java:887) at org.eclipse.core.launcher.Main.main(Main.java:871) | resolved fixed | 35103ef | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/FileDialog.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-08T17:51:42Z" | "2005-03-03T08:53:20Z" |
31,066 | Bug 31066 Button widget does not support images with transparent color. | null | resolved fixed | 999cd70 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Button.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Label.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-06T20:27:29Z" | "2003-02-06T08:26:40Z" |
93,848 | Bug 93848 Label not wrapping | The label does not wrap correctly as I resize the shell. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Label label = new Label(shell, SWT.WRAP); label.setText("A clap of thunder burst the numbness deep Within my head, " + "making me Start like someone roused by force from sleep. " + "On my feet, I strained intently to see This way and that, seeking " + "Clues as to where I might be. At last I saw that I was hovering " + "On the brink of that abyss of despair Which funnels thunder from " + "endless wailing. So dark and deep was that valley, and the air " + "So misty, that when I looked below Nothing showed itself, " + "as much as I might stare."); shell.setSize(400, 400); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); } | resolved fixed | 193a527 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Label.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-05T20:46:37Z" | "2005-05-05T19:06:40Z" |
93,759 | Bug 93759 Can't drawPath on image GC | Nothing is drawn to the screen in this example. Replacing the call to drawPath with drawPlain works as expected. I'm using M6. shell.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { Rectangle clientArea=shell.getClientArea(); Image image = new Image(display,clientArea.width,clientArea.height); GC igc = new GC(image); igc.setBackground(e.gc.getBackground()); igc.setForeground(e.gc.getForeground()); igc.fillRectangle(0,0,clientArea.width,clientArea.height); drawPath(igc); e.gc.drawImage(image,clientArea.x,clientArea.y); igc.dispose(); image.dispose(); } void drawPath(GC gc) { Path path=new Path(display); path.moveTo(10,10); path.lineTo(20,20); path.close(); gc.drawPath(path); path.dispose(); } void drawPlain(GC gc) { gc.drawLine(10,10,20,20); } }); | resolved fixed | e3bb881 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/win32/org/eclipse/swt/internal/gdip/Gdip.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/Image.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-05T19:46:33Z" | "2005-05-05T02:26:40Z" |
93,349 | Bug 93349 Support alpha transparency in Shell images | The attached patch adds support for alpha transparency in Shell decoration images. | resolved fixed | f2fe2b4 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Decorations.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-04T22:14:23Z" | "2005-04-30T16:53:20Z" |
71,228 | Bug 71228 Program.findProgram("html") returns null when there's no default command | R3.0 I used Program.findProgram("html") to find the browser and null was returned even though Mozilla is registered to open html documents. I debugged the code and my registry and found that I had no default command in my registry and hence the following code in org.eclipse.swt.program.Program.getProgram(String) fails/returns null: 1) String defaultCommand = getKeyValue (key + DEFAULT_COMMAND, true); 2) if (defaultCommand == null) defaultCommand = "open"; //$NON-NLS-1$ Reason: after 1) defaultCommand is "" and not null hence defaultCommand is not set to "open" in 2). Either getKeyValue(...) should return null or the if should read: if (defaultCommand == null || defaultCommand.length == 0) defaultCommand = "open"; //$NON-NLS-1$ | resolved fixed | 9cdeeef | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Program/win32/org/eclipse/swt/program/Program.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-04T21:27:28Z" | "2004-08-02T12:33:20Z" |
93,664 | Bug 93664 TRAVERSE_RETURN closing a dialog cannot be suppressed in a combo box | If you run the following snippet and hit "ESC", you will get "Busted" on GTK+ but not on Windows XP. Basically, the traverse listener on the dialog is trying to block escape traversal, but it doesn't seem to work in the case where a combo box has focus. (A similar dialog without combo box seems to work properly.) Display display = new Display(); final Shell shell = new Shell(display); Button b = new Button(shell, SWT.PUSH); b.setText("Open Dialog ..."); b.pack(); b.setLocation(10, 10); b.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { Shell dialog = new Shell(shell, SWT.DIALOG_TRIM); Combo c = new Combo(dialog, SWT.DROP_DOWN | SWT.BORDER); c.pack(); c.setLocation(10, 10); Button b = new Button(dialog, SWT.PUSH); b.setText("Enter"); b.pack(); b.setLocation(100, 100); dialog.setDefaultButton(b); b.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { System.out.println("Busted"); } }); dialog.addListener(SWT.Traverse, new Listener() { public void handleEvent(Event e) { if (e.detail == SWT.TRAVERSE_RETURN) { e.doit = false; } } }); dialog.open(); } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); | resolved fixed | a82af28 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Combo.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-04T21:21:09Z" | "2005-05-04T15:20:00Z" |
71,234 | Bug 71234 Program.execute mangles URLs | null | resolved fixed | ada8549 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Program/gnome/org/eclipse/swt/internal/gnome/GNOME.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Program/gtk/org/eclipse/swt/program/Program.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Program/motif/org/eclipse/swt/program/Program.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-04T18:04:43Z" | "2004-08-02T15:20:00Z" |
93,691 | Bug 93691 Program.findProgram("html") fails with Firefox as the default browser | On my Windows machine, Program.findProgram("html") returns null even though my default browser is correctly set to be Firefox. The problem is that the HKEY_CLASSES_ROOT\\FirefoxHTML key has no value, which makes the name parameter invalid. The fix is to use the name of the key (in this case, FirefoxHTML) instead of trying to look up a real name. | resolved fixed | ac7cf9c | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Program/win32/org/eclipse/swt/program/Program.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-04T17:57:46Z" | "2005-05-04T18:06:40Z" |
91,159 | Bug 91159 [Consistency] DropTarget event.dataType field not alwys set on DragEnter | On Windows in DragEnter the event.dataType field is set to the first value in the event.dataTypes array. On Carbon, GTK and Motif, the event.dataType field is null. | resolved fixed | 880f7c1 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Drag", "and", "Drop/motif/org/eclipse/swt/dnd/DropTarget.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-03T18:57:46Z" | "2005-04-12T15:33:20Z" |
92,612 | Bug 92612 CTabFolder hidden tabs count (in chevron) can become 0 | 0420 integration build (showed VI already) - drag several eclipse views into one view slot (eg.- on top of the Navigator) -> assuming that there isn't room to show all of the tabs, there will be a chevron shown with a number representing the number of hidden tabs - slowly make the top view more narrow, and as this makes the CTabFolder more narrow, the number of tabs that it can fit will shrink, and therefore the number below the chevron will grow - but you'll reach a point where this number becomes 0, when it should probably be equal to the number of tabs in the tabfolder | resolved fixed | 7d6d503 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CTabFolder.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-03T16:58:25Z" | "2005-04-25T17:26:40Z" |
93,382 | Bug 93382 Use canonical signal names | null | resolved fixed | 16e58df | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/gtk/org/eclipse/swt/internal/gtk/OS.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-03T16:51:29Z" | "2005-05-02T05:00:00Z" |
88,030 | Bug 88030 Table and SWT.CHECK: Check not visible on selection | Having a Table with SWT.CHECK Style, the Checkbox becomes invisible, when the TableItem is selected. This is happening on WinXP w/o using Manifest. It is not happening using the Manifest. Ben | resolved fixed | 31ba3d9 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/ImageList.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Table.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Tree.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-03T15:14:11Z" | "2005-03-15T09:46:40Z" |
84,219 | Bug 84219 List.showSelection() scrolls list although item already visible | The javadoc of a showSelection states that the list will not be scrolled if the item is already visible. This holds true for win32 but at least on my linux box the list is scrolled(until selected item is at the top) although the item is visible already | resolved fixed | 6256aa2 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/List.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-03T13:54:21Z" | "2005-02-02T13:13:20Z" |
87,636 | Bug 87636 ArrayIndexOutOfBoundsException TreeItem.setImage() | An ArrayIndexOutOfBoundsException is thrown when setting an image through TreeItem.setImage() on 3.1M5a. This is specific to Linux-GTK, works on Windows XP platform. The image is a 16x18 png icon. Here is the exception message that is thrown: !ENTRY org.eclipse.ui.workbench 4 2 2005-03-10 07:51:26.245 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.ui.workbench". !STACK 0 java.lang.ArrayIndexOutOfBoundsException: 288 at org.eclipse.swt.widgets.ImageList.add(ImageList.java:81) at org.eclipse.swt.widgets.TreeItem.setImage(TreeItem.java:1147) at org.eclipse.swt.widgets.TreeItem.setImage(TreeItem.java:1157) There error appears to be thrown down in ImageList.add() method. Specifically in the for loops within the if(hasAlpah) block: if (hasAlpha) { byte [] alpha = data.alphaData; int stride = OS.gdk_pixbuf_get_rowstride (pixbuf); int /*long*/ pixels = OS.gdk_pixbuf_get_pixels (pixbuf); byte [] line = new byte [stride]; for (int y = 0; y < h [0]; y++) { int /*long*/ offset = pixels + (y * stride); OS.memmove (line, offset, stride); for (int x = 0; x<w [0]; x++) { line [x*4+3] = alpha [y*h [0]+x]; } OS.memmove (offset, line, stride); } } alpha=byte[288] is returned by data.alphaData. The array exception is thrown at 288. | resolved fixed | 5b8ec66 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Display.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/ImageList.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-03T03:40:26Z" | "2005-03-10T13:06:40Z" |
90,938 | Bug 90938 GC.setLineStyle produces inconsistent dash for width equal 1 | Executing the attached snippet shows that line styles of varying widths are consistent and in proportion with one another EXCEPT when the width on the line equals one. This is also shown in the attached screenshot. For example, with SWT.LINE_DOT style a line width of 3 produces a line with 3x3 pixels on and a gap of 3x3 pixels off. When the width is 2, you get 2x2 pixels on, 2x2 pixels off. With a width of 1 you'd expect 1x1 pixel on, followed by 1x1 pixel off, but you get 3x1 on, 3x1 off. The screenshot also shows a similar disproportion with LINE_DASHDOT. Example run against: 3.1M6 Version: 3.1.0 Build id: I20050401-1645 | resolved fixed | 9475f6e | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-02T22:30:09Z" | "2005-04-10T19:06:40Z" |
63,266 | Bug 63266 Native platform icons look junky | I200405200800 Native platform icons, such as the question and error icons, have a jagged outline. I believe this is because the alpha channel is not being correctly interpreted. Screenshot attached. | resolved fixed | 952e49f | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/gtk/org/eclipse/swt/internal/gtk/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Display.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-02T19:25:25Z" | "2004-05-20T19:06:40Z" |
93,266 | Bug 93266 setBackground of text redraw incorrect with xp style | When using the XP style the Text widget seems to fill a rectangle smaller than the allocated area for the Text widget. When setting the background color it has a small gutter inside the border that the color wasn't applied to. It can be remedied by mousing over the widget or when the window is redrawn. I'll attach sample code and screen shots of the behavior. | resolved fixed | 6e93d6e | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Control.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-05-02T14:46:42Z" | "2005-04-29T13:06:40Z" |
84,632 | Bug 84632 hiding Tree header can leave cheese | null | resolved fixed | 93fc2f9 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Table.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Tree.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-29T20:38:57Z" | "2005-02-07T21:00:00Z" |
33,821 | Bug 33821 Header of native table doesn't show images | N2003-03-05 Thead header of the native table view doesn't display images, e.g. the task view is supposed to have images in the second and third column but there aren't any. | resolved fixed | c339f8c | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/carbon/org/eclipse/swt/internal/carbon/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/TableColumn.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/TreeColumn.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Widget.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-29T20:22:29Z" | "2003-03-05T07:40:00Z" |
93,222 | Bug 93222 Setting a cursor only needs a flush, not a sync | When a cursor is set, SWT currently calls gdk_flush(), which does an XSync. It would be more efficient (and equivalent in this case) to use XFlush(). This can be done by calling XFlush() directly, or with gdk_display_flush(), however the GDK call is new in 2.4. | resolved fixed | a98644b | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/gtk/org/eclipse/swt/internal/gtk/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Control.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Display.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Shell.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-29T16:31:48Z" | "2005-04-29T04:46:40Z" |
90,303 | Bug 90303 turn off caret blink | There appears to be no way to turn off the caret blinking in eclipse. It's really annoying :-( I use eclipse on linux. My GTK+ and Gnome settings all have blinking turned off, so it must be eclipse doing this. Ideally, it should be a wider caret (i.e. the width of a character), and the color of it should be configurable. | resolved fixed | 8ca2a7e | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/gtk/org/eclipse/swt/internal/gtk/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Display.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Display.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Display.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-29T15:45:40Z" | "2005-04-05T14:06:40Z" |
45,793 | Bug 45793 Panther: Initial Combobox contents not visible | I20031023 - in ControlExample go to Combo page Observe: Combo doesn't show initial selection - click in field Observe: selection becomes visible | resolved fixed | 2f3acca | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Combo.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-29T14:32:17Z" | "2003-10-30T13:20:00Z" |
91,302 | Bug 91302 (regression) Transparency is not transparent in remove button on progress view item | build I20050413-0910 - did a sync - in the Progress view, the item for the sync has an X for the remove button - the background of this icon should be transparent, but is not | resolved fixed | 251573b | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/ToolBar.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-28T21:54:22Z" | "2005-04-13T16:33:20Z" |
93,151 | Bug 93151 TableItem.computeDisplayText does not check to see if index is greater than string | The following code in TableItem.computeDisplayText can case an IndexOutofBounds exception: int index = availableWidth / gc.getFontMetrics ().getAverageCharWidth (); textWidth = gc.stringExtent (text.substring (0, index)).x; It does stand to reason that if the availableWidth is less than the textWidth then the resulting index from the calculation above should be less than text.length(). The problem is that you can end up with a string that thows it off. In the case I am seeing, availableWidth is 159 and the textWidth is 179. The length of the string is 25. This would mean that the average char width is 7 ( 7.16 ). However, getAverageCharWidth() returns 6 so therefore 159/6 = 26 ( 26.5 ). This results in the second line generating the IndexOutofBounds exception. | resolved fixed | f1f1d12 | ["bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/TableItem.java", "bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/TreeItem.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-28T19:49:06Z" | "2005-04-28T17:40:00Z" |
93,058 | Bug 93058 Form Layout behaviour has changed between 3.0 and 3.1 | null | resolved fixed | 90b160f | ["bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/FormData.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-28T19:39:48Z" | "2005-04-28T01:00:00Z" |
92,883 | Bug 92883 Lines are misaligned (antialiased) | I20050426 The borders of editor and view parts appear to be 2 pixel wide (instead of 1 pixel), because they are probably drawn 0.5 pixel off the coordinate system. The anti aliasing makes them appear 2 pixel wide and have a grey (instead of black) color. | resolved fixed | 7c3ffd8 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-28T18:41:11Z" | "2005-04-27T08:20:00Z" |
92,616 | Bug 92616 event doit=false does not work for Combo on Mac. | null | resolved fixed | 5da35fc | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Display.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-28T18:20:43Z" | "2005-04-25T17:26:40Z" |
87,822 | Bug 87822 GC.drawString ignores transparency boolean when alpha is used | The transparency flag indicates whether the text should be back-filled with the background color before being painted (using FG color). If alpha blending is turned on, this flag is ignored. The result should be a yellow blended background with black text: public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setFont(new Font(display, "Arial", 18, SWT.BOLD)); shell.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { GC gc = e.gc; gc.setBackground(new Color(display, 0, 100, 255)); gc.fillRectangle(0, 0, 200, 200); gc.setBackground(new Color(display, 255, 255, 0)); gc.setAlpha(200); gc.drawString("Test String", 10, 10, false); } }); shell.open(); while (!shell.isDisposed()) if (!display.readAndDispatch()) display.sleep(); } | resolved fixed | accca3b | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-28T17:50:56Z" | "2005-03-11T19:40:00Z" |
83,905 | Bug 83905 No way to center tool items on a vertical toolbar | The following code brings up a window containing a single vertical toolbar. The toolbar contains two ToolItem's with different length labels but the same icon. The toolbar buttons are left-aligned within the toolbar, but having them centered about the vertical center axis of the toolbar would be desirable (think of the alignment of items in the Outlook bar, or in the panel at the side of the standard Windows file chooser dialog. Can anyone suggest an interim workaround? -----8<------ package test; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.ToolBar; import org.eclipse.swt.widgets.ToolItem; public class ToolBarAlignmentBugDemo { // "home.gif" is attached to this bug report. Place it in the root // directory of your C: drive before running this code. private static final String ICON_FILE = "C:/home.gif"; public static void main(String[] args) { Display display = new Display(); final Shell shell = new Shell(display); shell.setBackground(display.getSystemColor(SWT.COLOR_YELLOW)); Image image = ImageDescriptor.createFromFile(null, ICON_FILE).createImage(); ToolBar toolBar = new ToolBar(shell, SWT.FLAT | SWT.VERTICAL); ToolItem item1 = new ToolItem(toolBar, SWT.PUSH | SWT.CENTER); item1.setImage(image); item1.setText("Open"); ToolItem item2 = new ToolItem(toolBar, SWT.PUSH | SWT.CENTER); item2.setImage(image); item2.setText("Show Package Hierarchy"); toolBar.pack(); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } ------8<----- | resolved fixed | 0132d37 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/win32/org/eclipse/swt/internal/win32/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/ToolBar.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-28T17:13:17Z" | "2005-01-28T05:26:40Z" |
89,239 | Bug 89239 Painting problems using latest builds | Our canvas does not paint using the latest builds of Eclipse. Reverting to M5, everything works normally. I am trying to find a test case, but any comments on what has changed might help me narrow it down. To reproduce, checkout draw2d.examples and draw2d from CVS, Tools repository, and run HelloWorld. | resolved fixed | aafa4cc | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-27T20:26:03Z" | "2005-03-28T17:13:20Z" |
83,097 | Bug 83097 Dialog opens with no contents; resizing shows contents | I20050112-1200, Linux 2.6.9, GTK+ 2.4.9, KDE 3.3.1 When some dialogs first open, they do not paint their contents. If the dialog is resized, then the contents become visible. STEPS TO REPRODUCE: ------------------ 1.) Open an editor with multiple revisions. 2.) Open the CVS resource history on the editor. 3.) Select one of the revisions in the history. 4.) Open the context menu. 5.) Select "Tag with Existing..." The dialog opens, but it is blank. Resizing the dialog by even the slightest amount causes it to paint its contents. Switching virtual desktops (i.e., unmapping the window) does not cause it to paint. Neither does obscuring it with another window. | resolved fixed | 9a03757 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Shell.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-27T18:53:37Z" | "2005-01-18T14:53:20Z" |
92,844 | Bug 92844 Increase scrolling speed based on distance from the widget | Currently the speed of selection scrolling when using the mouse in StyledText is fixed. This means it can take a long time to select large sections of text. It would be much better if StyledText increased the selection speed based on the distance the pointer is from the edge of the StyledText widget. | resolved fixed | 965de84 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledText.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-27T18:36:34Z" | "2005-04-26T21:13:20Z" |
92,541 | Bug 92541 Tree items do not animate as they expand | null | resolved fixed | ca137d0 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Tree.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-27T13:10:04Z" | "2005-04-25T00:46:40Z" |
86,830 | Bug 86830 org.eclipse.swt.graphics.GC: Transform has no effect to images with transarent colors like GIF/PNG | GC.setTransform(Transform) has no effect to those images that contain transparent color index, like PNG and GIF. I tested JPG, PNG (with and without transparent color index) and GIF (with transparent index). Transform has no effect to those transparent images. | resolved fixed | 07eff1b | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/win32/org/eclipse/swt/internal/gdip/Gdip.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/Image.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-26T18:11:07Z" | "2005-02-28T14:13:20Z" |
85,862 | Bug 85862 [consistency] TreeEvent fired upon disposal of TreeItems | Either calling dispose() on a TreeItem or removeAll() on the Tree results in TreeEvents being fired. That happens in case the disposed TreeItem was expanded and contained children. Mac seems to collapse all expanded TreeItems at first before proceeding with the disposal. This is not happening on Windows, and I dont think its happening on Linux GTK or Solaris Motif either. Ben | resolved fixed | e1ea4ea | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Tree.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-26T16:39:07Z" | "2005-02-18T20:53:20Z" |
86,214 | Bug 86214 GTK caret location gets hammered after being set in verify event | null | resolved fixed | 6389a96 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Combo.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Spinner.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Text.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-26T16:23:31Z" | "2005-02-22T22:06:40Z" |
92,648 | Bug 92648 Tree,setTopItem can end up setting the wrong number | The folloing code in setTopItem can result in negative values: <snip> int visibleItemCount = (clientArea.height - getHeaderHeight ()) / itemHeight; int index = Math.min (item.availableIndex, availableItemsCount - visibleItemCount); if (topIndex == index) return; update (); int change = topIndex - index; topIndex = index; getVerticalBar ().setSelection (topIndex); What is happpening on QNX is the following. I am trying to add the entry to a tree. It comes in and it says that the visibleItemsCount is 5 and the availableItemsCount is 1, this results in a value of -4 which is less than item.availableIndex ( which is 1 ). Further on down the line, change gets set to 4 because topIndex is 0 and index is -4. This is a problem because later on gc.copyArea gets called with a deltaY of 80 when it should be 0. | resolved fixed | 6339ba4 | ["bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/Tree.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-26T14:47:41Z" | "2005-04-25T23:00:00Z" |
92,583 | Bug 92583 Hidden files shown by default in GtkFileChooser | Summary says it all. I don't think that hidden files should be shown by default. I haven't verified that this happens everywhere, but it at least happens when selecting External Jars in the Build Path dialog. | resolved fixed | 6931420 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/gtk/org/eclipse/swt/internal/gtk/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/FileDialog.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-25T15:53:35Z" | "2005-04-25T14:40:00Z" |
92,382 | Bug 92382 Text in table not updated on clear | I can reproduce this on GTK+ 2.4.10 and 2.4.13, but not with 2.2.4 or 2.6.4. However, I have been unable to reproduce it in a simple GTK+ application. Run the following example. Click the button. The text does not update until the mouse hovers over the table items. public static boolean newText = false; public static void main(String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Button button = new Button(shell, SWT.PUSH); final Table table = new Table(shell, SWT.VIRTUAL); shell.setSize(320,240); shell.open(); while(display.readAndDispatch()); table.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TableItem titem = (TableItem) event.item; int index = table.indexOf(titem); titem.setText((newText ? "New Text " : "Old Text ") + index); } }); table.setItemCount(50); shell.open(); button.addListener(SWT.Selection, new Listener() { public void handleEvent(Event event) { newText = !newText; table.clearAll(); } }); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); } | resolved fixed | 96ff119 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/TableItem.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-25T15:42:15Z" | "2005-04-22T14:26:40Z" |
87,294 | Bug 87294 Strange clipping when scaling and rotating drawText | The text "hello" is getting randomly clipped to some strange polygon. This problem requires both scaling and rotation to be applied, the translation is optional. shell.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { GC gc = e.gc; Transform t = new Transform(display); t.translate(40, 40); t.rotate(30); t. scale(5, 5); gc.setTransform(t); gc.setLineWidth(1); //gc.setForeground(ColorConstants.darkBlue); gc.drawRectangle(-10, -10, 20, 20); // TextLayout tl = new TextLayout(display); // tl.setText("TextLayout"); // tl.draw(gc, 0, 0); gc.drawText("hello", 0, 5); //gc.drawRectangle(0, 5, 40, 12); } }); | resolved fixed | 3f3ea31 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/win32/org/eclipse/swt/internal/gdip/Gdip.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-25T15:25:49Z" | "2005-03-07T18:26:40Z" |
92,228 | Bug 92228 Layout occurs while creating table columns, causing AIOOBEs | build I20050420-1200 - open an editor - Ctrl+Shift+E to open the editors dialog - you get an ArrayIndexOutOfBoundsException (error dialog unfortunately just says the reason is "1") - this is due to the dialog's table's layout getting called when the first column is being created; the layout code expects both columns to have been created This is a recent regression. The stack is: Thread [main] (Suspended (exception ArrayIndexOutOfBoundsException)) WorkbenchEditorsDialog$2.layout(Composite, boolean) line: 250 Table(Composite).updateLayout(boolean, boolean) line: 855 Table.WM_WINDOWPOSCHANGED(int, int) line: 3566 Table(Control).windowProc(int, int, int, int) line: 3106 Display.windowProc(int, int, int, int) line: 3469 OS.CallWindowProcW(int, int, int, int, int) line: not available [native method] OS.CallWindowProc(int, int, int, int, int) line: 1571 Table.callWindowProc(int, int, int, int) line: 174 Table(Control).windowProc(int, int, int, int) line: 3113 Display.windowProc(int, int, int, int) line: 3469 OS.CallWindowProcW(int, int, int, int, int) line: not available [native method] OS.CallWindowProc(int, int, int, int, int) line: 1571 Table.callWindowProc(int, int, int, int) line: 174 Table(Control).windowProc(int, int, int, int) line: 3113 Display.windowProc(int, int, int, int) line: 3469 OS.SendMessageW(int, int, int, int) line: not available [native method] OS.SendMessage(int, int, int, int) line: 2220 Table.createItem(TableColumn, int) line: 708 TableColumn.<init>(Table, int) line: 73 WorkbenchEditorsDialog.createDialogArea(Composite) line: 259 WorkbenchEditorsDialog(Dialog).createContents(Composite) line: 687 WorkbenchEditorsDialog(Window).create() line: 418 WorkbenchEditorsDialog(Dialog).create() line: 996 WorkbenchEditorsDialog(Window).open() line: 770 WorkbenchEditorsAction.run() line: 59 WorkbenchEditorsAction(Action).runWithEvent(Event) line: 996 ActionHandler.execute(ExecutionEvent) line: 117 Command.execute(ExecutionEvent) line: 312 ParameterizedCommand.execute(Object, Object) line: 396 WorkbenchKeyboard.executeCommand(Binding, Object) line: 452 WorkbenchKeyboard.press(List, Event) line: 741 WorkbenchKeyboard.processKeyEvent(List, Event) line: 784 WorkbenchKeyboard.filterKeySequenceBindings(Event) line: 543 WorkbenchKeyboard.access$3(WorkbenchKeyboard, Event) line: 486 WorkbenchKeyboard$KeyDownFilter.handleEvent(Event) line: 110 EventTable.sendEvent(Event) line: 82 Display.filterEvent(Event) line: 777 StyledText(Widget).sendEvent(Event) line: 841 StyledText(Widget).sendEvent(int, Event, boolean) line: 866 StyledText(Widget).sendEvent(int, Event) line: 851 StyledText(Widget).sendKeyEvent(int, int, int, int, Event) line: 879 StyledText(Widget).sendKeyEvent(int, int, int, int) line: 875 StyledText(Widget).wmChar(int, int, int) line: 1182 StyledText(Control).WM_CHAR(int, int) line: 3125 StyledText(Control).windowProc(int, int, int, int) line: 3028 Display.windowProc(int, int, int, int) line: 3469 OS.DispatchMessageW(MSG) line: not available [native method] OS.DispatchMessage(MSG) line: 1647 Display.readAndDispatch() line: 2528 Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 1569 Workbench.runUI() line: 1533 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 306 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 143 IDEApplication.run(Object) line: 103 PlatformActivator$1.run(Object) line: 228 EclipseStarter.run(Object) line: 344 EclipseStarter.run(String[], Runnable) line: 156 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 85 NativeMethodAccessorImpl.invoke(Method, Object, Object[]) line: 58 DelegatingMethodAccessorImpl.invoke(Method, Object, Object[]) line: 60 Method.invoke(Object, Object[]) line: 391 Main.invokeFramework(String[], URL[]) line: 319 Main.basicRun(String[]) line: 272 Main.run(String[]) line: 947 Main.main(String[]) line: 931 | resolved fixed | 8ba3eff | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Table.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/TableColumn.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-24T17:16:14Z" | "2005-04-21T13:26:40Z" |
92,488 | Bug 92488 Button(SWT.CHECK) screen shot is incorrect with RTL | When I send WM_PRINT message to create image of Shell that has composite with RIGHT_T_LEFT flag and several controls, checkbox does not contain check sign. I use WinXP with SP2, but use traditional look (like in W2k). | resolved wontfix | 56f2379 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Group.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-24T14:51:22Z" | "2005-04-23T15:26:40Z" |
91,350 | Bug 91350 [Browser] Embedded browser fails to handle link to text file | null | resolved fixed | 3e07611 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Mozilla/gtk/org/eclipse/swt/browser/Browser.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-22T16:30:09Z" | "2005-04-13T22:06:40Z" |
50,598 | Bug 50598 Some focus events are reported twice | I20040121 Run this code: public class FocusTest { static final boolean WITH_LABELS= true; public static void main(String[] args) { Display display= new Display(); Shell shell= new Shell(display); shell.setLayout(new GridLayout(2, false)); FocusListener fl= new FocusListener() { public void focusGained(FocusEvent e) { System.out.println("focusGained: " + e.widget); } public void focusLost(FocusEvent e) { System.out.println("focusLost: " + e.widget); } }; if (WITH_LABELS) new Label(shell, SWT.NONE).setText("Text:"); //$NON-NLS-1$ Text t= new Text(shell, SWT.BORDER); t.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); t.addFocusListener(fl); if (WITH_LABELS) new Label(shell, SWT.NONE).setText("Text:"); //$NON-NLS-1$ Text tt= new Text(shell, SWT.BORDER); tt.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); tt.addFocusListener(fl); shell.open(); while (!shell.isDisposed()) if (!display.readAndDispatch()) display.sleep(); display.dispose(); } } - press the Tab key once (to switch focus from first to second field) Observe (on console): you get two lost/gained pairs (instead of one) - change WITH_LABELS to false Observe (on console): one lost/gained pair (as expected). | resolved fixed | df31d2a | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/carbon/org/eclipse/swt/internal/carbon/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Composite.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Control.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Link.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Sash.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Text.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Widget.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-22T15:54:41Z" | "2004-01-26T15:13:20Z" |
92,241 | Bug 92241 StyledText should not fill the clipboard on every selection change | null | resolved fixed | b2aaf64 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledText.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-22T15:48:45Z" | "2005-04-21T16:13:20Z" |
80,762 | Bug 80762 Interactive text selection lags on Linux-GTK+ | The highlighted text selection in the Eclipse editor often lags behind my mouse on my P3-733. If I rapidly select some text in the editor, the caret seems to follow directly with my mouse movements, while the highlight block trails behind. Since the caret can keep up, the problem does not seem to be with the event propagation or mouse motion hints. The responsiveness can be improved by flushing GTK+'s outstanding repaints after processing each mouse event. StyledText handles mouse move events by calling Control.redraw() for each line of text that has changed. This uses gdk_window_invalidate_rect() to invalidate the region internally in GTK+. This will not generate an expose event until the GTK+ event loop goes idle. The following patch in StyledText.handleMouseMove() improves the situation on my machine. Note that update() also flushes any expose events from the X server, which is not necessary in this case since all of the invalidations are done internally using gdk_window_invalidate_rect(). However, since this operation is interactive, I am not sure this really matters. Index: Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java =================================================================== RCS file: /home/eclipse/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java,v retrieving revision 1.235 diff -u -r1.235 StyledText.java --- Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java 23 Nov 2004 22:38:23 -0000 1.235 +++ Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java 11 Dec 2004 19:26:38 -0000 @@ -5063,6 +5063,7 @@ } event.y -= topMargin; doMouseLocationChange(event.x, event.y, true); + update(); doAutoScroll(event); } /** | resolved fixed | 17c2577 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledText.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-22T13:31:17Z" | "2004-12-11T18:33:20Z" |
85,525 | Bug 85525 mnemonics are not working | eclipse I20050215-2300 Open any dialog or wizard (I tested on the preference page and Run.. dialog), no mnemonic work. | resolved fixed | 9b0d72e | ["bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Control.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-21T20:02:54Z" | "2005-02-16T18:53:20Z" |
92,181 | Bug 92181 Bogus CTabFolder tab sizes | Running the code in head, 20050421 In the default Java perspective, drag the problems view to the right of the JavaDoc view. The resulting CTabFolder tab sizes are wrong. | resolved fixed | c5bbcb3 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CTabFolder.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-21T17:23:01Z" | "2005-04-21T05:06:40Z" |
92,186 | Bug 92186 Virtual table: not redrawn when item count drops to zero | To reproduce: - create a virtual table with n entries - call setItemCount(0) and cleat(0,0). observe: the content will not be redrawn. The table still shows the n entries. | resolved fixed | 432b06c | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Table.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-21T14:21:12Z" | "2005-04-21T07:53:20Z" |
88,059 | Bug 88059 Line Width of 0 is invisible on the Mac | The default GC.getLineWidth() is zero on all platforms but the Mac. If the line width is set to 0 on the Mac, it becomes invisible. width==0 should result in a line width of 1 pixel, independent of zoom being applied to the GC. | resolved fixed | 20f9768 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/GCData.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-20T21:50:58Z" | "2005-03-15T15:20:00Z" |
85,426 | Bug 85426 Table not getting expose events when partially obscured by another window | I20050215-2300 The following example creates a table in a wide, but short, window. When this shell is being partially obscured by another window, moving a third window around above it causes the table to miss expose events, making it look blank or draw badly. This was seen on GTK+ 2.2.4, RHEL3. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Table t = makeTable(shell); shell.setSize(800, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } public static Table makeTable(Composite parent) { Table table = new Table(parent, SWT.NONE); table.setLinesVisible(true); table.setHeaderVisible(true); String[] titles = { " ", "C", "!", "Description", "Resource", "In Folder", "Location" }; for (int i = 0; i < titles.length; i++) { TableColumn column = new TableColumn(table, SWT.NULL); column.setText(titles[i]); } makeColumns(table, true); table.pack(); return table; } public static void makeColumns(Table table, boolean pack) { int count = 1024; for (int i = 0; i < count; i++) { TableItem item = new TableItem(table, SWT.NULL); item.setText(0, "x"); item.setText(1, "y"); item.setText(2, "!"); item.setText(3, "this stuff behaves the way I expect"); item.setText(4, "almost everywhere"); item.setText(5, "some.folder"); item.setText(6, "line " + i + " in nowhere"); } for (int i = 0; i < table.getColumnCount(); i++) table.getColumn(i).pack(); } | resolved fixed | 20cec0f | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Control.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-20T21:42:04Z" | "2005-02-16T16:06:40Z" |
92,017 | Bug 92017 Support very large Image on Windows platform | Currently an Image on Windows is size-limited - on my system to 16MB. However, a posting in eclipse.platform.swt in response to "Larger image problems" suggested that there is a way to get OS.CreateCompatibleBitmap to transparently return a DIB that is stored in main memory and can be any size. If there is a way to easily support this, it'd be really helpful. | resolved fixed | 978a506 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/Image.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-20T21:07:58Z" | "2005-04-20T01:20:00Z" |
88,717 | Bug 88717 [DND] Tree is scrolling very slow when dragging an Item to the Bottom | null | resolved fixed | f38c6e2 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Drag", "and", "Drop/gtk/org/eclipse/swt/dnd/TableDragUnderEffect.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Drag", "and", "Drop/gtk/org/eclipse/swt/dnd/TreeDragUnderEffect.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Drag", "and", "Drop/motif/org/eclipse/swt/dnd/TableDragUnderEffect.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Drag", "and", "Drop/motif/org/eclipse/swt/dnd/TreeDragUnderEffect.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Drag", "and", "Drop/win32/org/eclipse/swt/dnd/TableDragUnderEffect.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Drag", "and", "Drop/win32/org/eclipse/swt/dnd/TreeDragUnderEffect.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-20T20:15:46Z" | "2005-03-22T08:26:40Z" |
81,298 | Bug 81298 NPE changing style on SashForm in CustomControlExample | eclipse.buildId=I20041214-2000 java.version=1.4.2_06 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=motif, NL=en_US Framework arguments: -showlocation Command-line arguments: -os linux -ws motif -arch x86 -showlocation -clean java.lang.NullPointerException at org.eclipse.swt.examples.controlexample.Tab.log(Tab.java:785) at org.eclipse.swt.examples.controlexample.Tab.setExampleWidgetState(Tab.java:951) at org.eclipse.swt.examples.controlexample.SashFormTab.setExampleWidgetState(SashFormTab.java:136) at org.eclipse.swt.examples.controlexample.Tab.recreateExampleWidgets(Tab.java:805) at org.eclipse.swt.examples.controlexample.Tab$1.widgetSelected(Tab.java:138) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:736) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2948) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2648) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1569) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1540) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:285) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:220) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:710) at org.eclipse.core.launcher.Main.main(Main.java:694) | resolved fixed | 2674cf6 | ["examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashFormTab.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-20T19:47:32Z" | "2004-12-15T19:46:40Z" |
91,060 | Bug 91060 linux copy-paste chinese to StyledText problem | null | resolved fixed | 6188db8 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Drag", "and", "Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-20T19:16:53Z" | "2005-04-11T22:53:20Z" |
91,254 | Bug 91254 [encoding] DBCS3.1: bogus DBCS in editor after re-activation | Driver : M6 Platform: WindowsXP Japanese sp2, Windows2003 Japanese JVM: IBM 1.4.2SR1a steps 1. Open Welcome menu and click "Workbench Go to the workbench" icon to have the Bar 2. Open a java program that contains DBCS 3. click click "Return to Welcom" on the bar 4. click "Workbench Go to the workbench" icon result All of DBCS in the java editor has changed all to square | verified fixed | ea2da2a | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/TextLayout.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-20T16:32:27Z" | "2005-04-13T11:00:00Z" |
92,046 | Bug 92046 Pen leak in TextLayout#draw(...) | I20050419-1200 The conditions under which a new pen for drawing underline and strikethrough styles is created/disposed are not the same. | resolved fixed | d7cd281 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/TextLayout.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-20T15:26:44Z" | "2005-04-20T09:40:00Z" |
91,807 | Bug 91807 Context menu shows twice in combo box. | When setting your own menu , then right clicking on a combo box, you get the default one from the os , and the one you set. There is no break in the case statement in the windowProc method in Combo. case OS.WM_CONTEXTMENU: result = wmContextMenu (hwnd, wParam, lParam); | resolved fixed | 3a73371 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Combo.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Spinner.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-19T15:11:00Z" | "2005-04-18T21:33:20Z" |
69,381 | Bug 69381 Call to new_Shell results in "No more handles" error | Using simple test case with swt dll's in the java "bin" directory SWT_AWT.newShell fails with the following exception: org.eclipse.swt.SWTError: No more handles at org.eclipse.swt.SWT.error(SWT.java:2717) at org.eclipse.swt.SWT.error(SWT.java:2616) at org.eclipse.swt.SWT.error(SWT.java:2587) at org.eclipse.swt.widgets.Widget.error(Widget.java:381) at org.eclipse.swt.widgets.Control.createHandle(Control.java:462) at org.eclipse.swt.widgets.Composite.createHandle(Composite.java:173) at org.eclipse.swt.widgets.Decorations.createHandle (Decorations.java:320) at org.eclipse.swt.widgets.Shell.createHandle(Shell.java:436) at org.eclipse.swt.widgets.Control.createWidget(Control.java:477) at org.eclipse.swt.widgets.Scrollable.createWidget(Scrollable.java:129) at org.eclipse.swt.widgets.Decorations.createWidget (Decorations.java:327) at org.eclipse.swt.widgets.Shell.<init>(Shell.java:251) at org.eclipse.swt.widgets.Shell.win32_new(Shell.java:341) at org.eclipse.swt.awt.SWT_AWT.new_Shell(SWT_AWT.java:269) at org.damselfly.jdev.swt.ole.text.EditorTest.main(EditorTest.java:41) This is preventing me from embedding SWT content into a Swing application. | resolved fixed | 5769cac | ["bundles/org.eclipse.swt/Eclipse", "SWT", "AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "AWT/motif/org/eclipse/swt/awt/SWT_AWT.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "AWT/win32/org/eclipse/swt/awt/SWT_AWT.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-19T15:02:36Z" | "2004-07-06T16:06:40Z" |
91,464 | Bug 91464 [content assist] NPE in CompletionProposalPopup | Getting a lot of these when using content assist today. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:2931) at org.eclipse.swt.SWT.error(SWT.java:2854) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:121) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2834) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2615) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:316) at org.eclipse.core.launcher.Main.basicRun(Main.java:269) at org.eclipse.core.launcher.Main.run(Main.java:948) at org.eclipse.core.launcher.Main.main(Main.java:932) Caused by: java.lang.NullPointerException at org.eclipse.jface.text.contentassist.CompletionProposalPopup.setProposals(CompletionProposalPopup.j ava:623) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$13(CompletionProposalPopup.jav a:580) at org.eclipse.jface.text.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java: 235) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopu p.java:211) at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:319) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) ... 18 more | resolved fixed | 774e165 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Table.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-19T13:03:11Z" | "2005-04-14T20:20:00Z" |
90,192 | Bug 90192 ON_TOP setVisible(true) focus issues on parent of child shell. | Create a shell that is a child of a parent shell. Use flags SWT.ON_TOP and open it via setVisible(true). When that shell is clicked or gets focus in some way, the parent shell goes inactive. Optional way to reproduce: Create a shell and add a CCombo box to that shell, drop down the combo box and the parent shell goes inactive. The desired effect is that the sub-shell gains focus without the parent shell going inactive. This effect can be seen in various places in the Windows operating system (not sure about other OSs). For example; the calendar combo box in MS Outlook, or even just a normal combo box do the correct things. For other places where this happens. CCombo has this problem, as does content assist in the Eclipse IDE (if the content assist window is clicked or gains focus via mouse or any other selection method). Test code: public static void main(String args []) { Display display = new Display(); final Shell parent = new Shell(display, SWT.SHELL_TRIM); parent.setText("Parent"); parent.setLayout(new FillLayout()); parent.setSize(150, 150); Button b = new Button(parent, SWT.PUSH); b.setText("Bug Test"); b.addListener(SWT.Selection, new Listener() { public void handleEvent(Event event) { Shell child = new Shell(parent, SWT.ON_TOP); child.setLayout(new FillLayout()); Label helpLabel = new Label(child, SWT.NONE); helpLabel.setText("Click me and parent shell goes inactive"); child.setSize(200, 200); child.setVisible(true); } }); parent.open(); while (!parent.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } | resolved fixed | 3d2a2ef | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Composite.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Shell.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-18T23:54:58Z" | "2005-04-04T18:40:00Z" |
88,839 | Bug 88839 Embedded Swing: Enter key does not work | I'm running Fedora Core 3 with all the latest updates, JDK 1.5, and the 3.1M5 GTK version of the SWT binary. For some reason, the enter key event does not fire inside an embedded JTextPane. In case it matters, it's also inside multiple embedded JSplitPanes. All other key events work fine. | resolved fixed | 60bbadd | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Composite.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-18T20:17:31Z" | "2005-03-23T03:53:20Z" |
67,626 | Bug 67626 XEmbeddedFrame not found | Tried running some plugins. Works fine on windows. On my linux install (with both blackdown1.4.2 and SUN VM1.4.2_04) some of the plugins throw an exception. The error seems to be generated from the SWT in not finding the class sun.awt.X11.XEmbeddedFrame I checked the rt.jar and it doesnt have the same. Is there any other jar which needs to be included? A log from one of the plugins (metrics) ========================================================== java.version=1.4.2_04 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US !ENTRY com.objectlearn.jdt.j2ee 1 0 Jun 17, 2004 09:33:43.796 !MESSAGE Creating server definition manager[/home/rsarma/eclipse-3.0M8/plugins/com.objectlearn.jdt.j2ee/] !ENTRY net.sourceforge.metrics 4 4 Jun 17, 2004 09:33:57.619 !MESSAGE Could not embed awt panel using reflection !STACK 0 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sourceforge.metrics.ui.DependencyGraphView.createAWTFrame(DependencyGraphView.java:81) at net.sourceforge.metrics.ui.DependencyGraphView.createPartControl(DependencyGraphView.java:62) at org.eclipse.ui.internal.PartPane$1.run(PartPane.java:94) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:610) at org.eclipse.core.runtime.Platform.run(Platform.java:521) at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:90) at org.eclipse.ui.internal.ViewPane.createChildControl(ViewPane.java:160) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:154) at org.eclipse.ui.internal.ViewPane.createControl(ViewPane.java:132) at org.eclipse.ui.internal.PartTabFolder.showPart(PartTabFolder.java:922) at org.eclipse.ui.internal.PartTabFolder.replace(PartTabFolder.java:696) at org.eclipse.ui.internal.PerspectivePresentation.addPart(PerspectivePresentation.java:244) at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1421) at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:727) at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:704) at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:2891) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2888) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2872) at net.sourceforge.metrics.ui.MetricsView.displayDependencyGraphSWT(MetricsView.java:406) at net.sourceforge.metrics.ui.MetricsView.displayDependencyGraph(MetricsView.java:396) at net.sourceforge.metrics.ui.MetricsActionGroup$GraphAction.run(MetricsActionGroup.java:104) at org.eclipse.jface.action.Action.runWithEvent(Action.java:881) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:550) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:502) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:474) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:939) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1953) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1726) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1562) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1536) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:267) at org.eclipse.core.launcher.Main.run(Main.java:692) at org.eclipse.core.launcher.Main.main(Main.java:676) Caused by: org.eclipse.swt.SWTError: Not implemented (java.lang.ClassNotFoundException: sun.awt.X11.XEmbeddedFrame) at org.eclipse.swt.SWT.error(SWT.java:2651) at org.eclipse.swt.awt.SWT_AWT.new_Frame(SWT_AWT.java:58) ... 49 more | resolved wontfix | e28f678 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "AWT/motif/org/eclipse/swt/awt/SWT_AWT.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-18T16:05:34Z" | "2004-06-17T13:46:40Z" |
91,252 | Bug 91252 View toolbars are showing with black backgrounds | Version: 3.1.0 Build id: I20050412-1547 The background of all view local toolbars is black. When I change my theme to standard XP one (Luna) the problem goes away. This problem didn't exist in the previous I build. The black makes it very hard to concentrate :) | resolved fixed | 8db8bcd | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/ToolBar.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-17T00:48:06Z" | "2005-04-13T11:00:00Z" |
91,435 | Bug 91435 Ctrl+SPACE is not a valid keybinding assignment for actions on native widgets | The keybinding preferences should not allow you to assign CTRL+SPACE as the keybinding to actions which are invoked when a Tree or Table has focus. This is the platform keybinding for toggle selection. For example, assign Navigate->Go Into to CTRL+SPACE, and then try to invoke in the package explorer. It seems to work every other time and of course interferes with platform accelerators | resolved fixed | b024555 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Link.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Slider.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Table.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/ToolBar.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Tree.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-17T00:19:23Z" | "2005-04-14T17:33:20Z" |
91,511 | Bug 91511 Directory Dialog - Selection string not externalized? | In the open() method, the string "Selection" appears. Should this be added to the ResourceBundle? | resolved fixed | a8373fc | ["bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-15T17:03:27Z" | "2005-04-15T13:00:00Z" |
91,555 | Bug 91555 Table not visible | For some reason, I can't see the table when I run this code. It works fine on GTK+ and Win32. Shell shell = new Shell(display); Text text = new Text(shell, SWT.NONE); text.setBounds(0,0,300,40); final Table table = new Table(shell, SWT.VIRTUAL); table.setBounds(0,40,300,200); shell.setSize(320,240); shell.open(); while(display.readAndDispatch()); table.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TableItem titem = (TableItem) event.item; int index = table.indexOf(titem); titem.setText("Hello: " + index); } }); table.setItemCount(30000); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } shell.dispose(); | resolved fixed | d66e58d | ["bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Control.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Scrollable.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-15T16:43:59Z" | "2005-04-15T15:46:40Z" |
90,258 | Bug 90258 Table item not updated when item count == 1 | I20050401 (M6) I am using a Table with SWT.VIRTUAL. Everything works fine, except for the case I set the item count to 1, in which case I do not receive an SWT.SetData notification. Tried to reproduce using a modified version of Snippet151, but everything works as expected there. Do you have any idea what could be going wrong? One funny thing is that in the variable view, the debugger displays the updated contents of table.items[0] after calling clearAll(), but I have verified that the data is never ever set. The display fails to update. My code looks like this: ---------------- Table table... table.setItemCount(1); table.clearAll(); ... private void handleSetData(Event event) { TableItem item= (TableItem) event.item; int index= fProposalTable.indexOf(item); ICompletionProposal current= fFilteredProposals[index]; item.setText(current.getDisplayString()); item.setImage(current.getImage()); item.setData(current); } ----------------- | verified fixed | c6ce818 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Table.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-15T14:32:18Z" | "2005-04-05T08:33:20Z" |
91,468 | Bug 91468 GTK+ 2.2 requests data from non-visible rows of a VIRTUAL table | Because the fixed_height_mode property is not supported until GTK+ 2.2, GtkTreeView requests all rows to perform validation. Virtual tables can probably get a good speed boost by returning some dummy data until the row actually becomes visible, rather than going and asking the application for the data too early. | resolved fixed | 3ddaf55 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Table.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Tree.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-14T21:33:32Z" | "2005-04-14T20:20:00Z" |
87,882 | Bug 87882 No default contextual menu item on Mac | null | resolved fixed | c571794 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Menu.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-14T20:10:38Z" | "2005-03-13T18:53:20Z" |
88,133 | Bug 88133 Slow rendering with images with transparancy bit set | I have come across a severe performance issue when dealing with copying lots of images with transparency bit set to an Image used in a double buffer type painting strategy. This code is straight out of "The definitive guide to SWT and JFace" by Robert Warner with the addition of the loop to draw my tiles. If I use the images t1 and t2 as they are (without setting a transparancy bit) then performance is great. But if I extract the ImageData and set transparentPixel then performance drops off to an unacceptable level. Even if I extract the ImageData and create an new image from that without even setting transparentPixel performance is notably reduced. Here is the main class with the paint event etc.: import org.eclipse.swt.SWT; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class DoubleDoppleGanger { private static final int IMAGE_WIDTH = 100; // The timer interval in milliseconds private static final int TIMER_INTERVAL = 10; private ImageManager im; // The location of the "ball" private int x = 0; private int y = 0; // The direction the "floating image" is moving private int directionX = 1; private int directionY = 1; // We draw everything on this canvas private Canvas canvas; /** * Runs the application */ public void run() { final Display display = new Display(); Shell shell = new Shell(display); shell.setText("Animator Double Buffer"); im = new ImageManager(display); createContents(shell); shell.open(); // Set up the timer for the animation Runnable runnable = new Runnable() { public void run() { animate(); display.timerExec(TIMER_INTERVAL, this); } }; // Launch the timer display.timerExec(TIMER_INTERVAL, runnable); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } // Kill the timer display.timerExec(-1, runnable); display.dispose(); } private void createContents(final Shell shell) { shell.setLayout(new FillLayout()); canvas = new Canvas(shell, SWT.NO_BACKGROUND); canvas.addPaintListener(new PaintListener() { public void paintControl(PaintEvent event) { // Create the image to fill the canvas Image image = new Image(shell.getDisplay(), canvas.getBounds()); // Set up the offscreen gc GC gcImage = new GC(image); // Draw the background gcImage.setBackground(event.gc.getBackground()); gcImage.fillRectangle(image.getBounds()); int lx = 0; int ly = 0; int i; int j; boolean indent = false; for (i = 0; i < 30; i++) { if (indent) { lx = 32; indent = false; } else { lx = 0; indent = true; } for (j = 0; j < 14; j++) { gcImage.drawImage(ImageManager.t1, lx, ly); lx += 64; } ly += 16; } gcImage.drawImage(ImageManager.t2, x, y); event.gc.drawImage(image, 0, 0); image.dispose(); gcImage.dispose(); } }); } /** * Animates the next frame */ public void animate() { // Determine the ball's location x += directionX; y += directionY; // Determine out of bounds Rectangle rect = canvas.getClientArea(); if (x < 0) { x = 0; directionX = 1; } else if (x > rect.width - IMAGE_WIDTH) { x = rect.width - IMAGE_WIDTH; directionX = -1; } if (y < 0) { y = 0; directionY = 1; } else if (y > rect.height - IMAGE_WIDTH) { y = rect.height - IMAGE_WIDTH; directionY = -1; } // Force a redraw canvas.redraw(); } } And my very simple image management class. tiles_test.png is a large image with several isometric (64x32) tiles on it on a purple background (rgb 127,0,127) which is the transparent bit. import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.graphics.ImageData; public class ImageManager { private Image blob; static Image t1; static Image t2; ImageManager(Display display) { blob = new Image(display, "tiles_test.png"); Image xt1 = new Image(display, 64, 32); ImageData tData = xt1.getImageData(); int purplePixel = tData.palette.getPixel(new RGB(127,0,127)); tData.transparentPixel = purplePixel; t1 = new Image(display, tData); Image xt2 = new Image(display, 64, 32); ImageData tData2 = xt2.getImageData(); tData2.transparentPixel = purplePixel; t2 = new Image(display, tData2); GC dest = new GC(t1); dest.drawImage(blob, 65, 0, 64, 32, 0, 0, 64, 32); GC dest2 = new GC(t2); dest2.drawImage(blob, 0, 0, 64, 32, 0, 0, 64, 32); } } I am not very savy with SWT or Java for that matter and posted this question to eclipse.platform.swt and subsequently asked to post it to the bug list. So my apologies if I am doing something really stupid here. Builder Chad | resolved fixed | 2dc7cd0 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-14T17:29:46Z" | "2005-03-15T23:40:00Z" |
91,423 | Bug 91423 Fixed size columns used even if fixed_height_mode not supported | To support VIRTUAL, we need to use the fixed_height_mode property which is new in GTK+ versions 2.3.2 and up. However, this means we need to size the column ourselves. For versions that don't support fixed_height_mode, we might as well let GTK+ do the column sizing itself (using AUTOSIZE) since it will be faster. I am not sure if maybe we need to do something similar in Tree... | resolved fixed | aefa025 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Table.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-14T16:18:29Z" | "2005-04-14T17:33:20Z" |
86,741 | Bug 86741 Pressing backspace in browser widget shows navigation cancelled page | Version: 3.1.0 Build id: I20050222-0821 When you press backspace (or Alt+Left) in a browser that has had its contents set using setText an action cancelled page is displayed. I would have expected nothing to happen since there was no previous URL. Calling Browser.back() works as expected. public static void main(String[] args) { Display d = Display.getDefault(); Shell s = new Shell(d, SWT.SHELL_TRIM); s.setLayout(new FillLayout()); Browser b = new Browser(s, SWT.NONE); b.setText("<html><body><p>Press backspace</p></body></html>"); s.open(); while (!s.isDisposed()) if (d.readAndDispatch()) d.sleep(); } | resolved fixed | e537a64 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Browser/win32/org/eclipse/swt/browser/Browser.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-14T15:32:14Z" | "2005-02-26T06:40:00Z" |
76,456 | Bug 76456 Eclipse 3.0.1crashes on HP-UX with a NullPointerException when starting up | When I try to start eclipse, the splash screen appears, but a few seconds later a dialog box informs me that "An error has occured. See the log file 'xxx'." and the process terminates. I attach the log file at the end of the message. Note: I entered 'Other' in the Platform field, as there was no option 'HP'. Note: I am not sure about the Component, but as jface occurs in the stack trace in the log file and Jface is related to SWT, I choose SWT The system is running HP-UX B.11.00 with CDE 2.1.0. Thomas --- !SESSION Oct 18, 2004 10:50:59.644 --------------------------------------------- eclipse.buildId=M200409161125 java.version=1.4.2.05 java.vendor=Hewlett-Packard Co. BootLoader constants: OS=hpux, ARCH=PA_RISC, WS=motif, NL=en !ENTRY org.eclipse.osgi Oct 18, 2004 10:50:59.658 !MESSAGE Application error !STACK 1 java.lang.NullPointerException at org.eclipse.jface.resource.FontRegistry.bestData (FontRegistry.java:336) at org.eclipse.jface.resource.FontRegistry.bestDataArray (FontRegistry.java:369) at org.eclipse.jface.resource.FontRegistry.createFont (FontRegistry.java:389) at org.eclipse.jface.resource.FontRegistry.defaultFontRecord (FontRegistry.java:431) at org.eclipse.jface.resource.FontRegistry.getFontRecord (FontRegistry.java:519) at org.eclipse.jface.resource.FontRegistry.get(FontRegistry.java:472) at org.eclipse.jface.resource.JFaceResources.getDialogFont (JFaceResources.java:182) at org.eclipse.jface.dialogs.Dialog.initializeDialogUnits (Dialog.java:778) at org.eclipse.jface.dialogs.TitleAreaDialog.createContents (TitleAreaDialog.java:93) at org.eclipse.jface.window.Window.create(Window.java:348) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:925) at org.eclipse.jface.window.Window.open(Window.java:637) at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt (ChooseWorkspaceDialog.java:65) at org.eclipse.ui.internal.ide.IDEApplication.promptForWorkspace (IDEApplication.java:314) at org.eclipse.ui.internal.ide.IDEApplication.checkInstanceLocation (IDEApplication.java:219) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:83) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688) | resolved fixed | 9c007f1 | ["bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/SWT.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/graphics/Font.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/Font.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-14T13:35:07Z" | "2004-10-18T09:00:00Z" |
89,779 | Bug 89779 NPE in CCombo.dropDown() | null | resolved fixed | 925f14a | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CCombo.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-13T22:00:04Z" | "2005-03-31T03:33:20Z" |
64,590 | Bug 64590 [browser] widget not sized properly | I was using I20040528-0010 build. The browser wiget on motif displays about 200x200 size, not the size parent expects it to take. Resizing a window causes browser to be redrawn correctly. This is visible when launching help, as well as using "bring up the browser" SWT snippet. Interestingly if shell.setSize() is not called before shell.open(), it works (browser widget taking correct size). If shell.setSize() is called before and after shell.open(), it does not work. If shell.setSize() is called before and after shell.open(), and shell had SWT.DIALOG_TRIM style, it works. | resolved fixed | e1a1554 | ["bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Composite.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-13T19:18:21Z" | "2004-05-28T16:00:00Z" |
86,608 | Bug 86608 Do not understand Javadoc of Link.setText() | 3.1 M5a Javadoc of Link.setText says: * anchor, a single HREF attribute is supported. When a hyperlink is * selected, the text field of the selection event contains either the * text of hyperlink or the value of the HREF, if one was specified. I could not find a field or other way to access the text field of the selection event. Q: If I have > 1 link, how do I know in the selection event which one has been clicked? | resolved fixed | 808e958 | ["bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/events/SelectionEvent.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-13T19:12:22Z" | "2005-02-25T11:13:20Z" |
66,882 | Bug 66882 altgr keys not available | On solaris 9 with german keyboard layout all keys coming with alt-gr (e.g. {[]} ~|@ ) are not available. With javax.swing.* package there is no problem with that. | resolved fixed | ff18321 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledText.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-13T18:16:38Z" | "2004-06-14T08:00:00Z" |
85,312 | Bug 85312 combo is cut off when added to ToolBar | it's probably answering its preferred height wrong? | resolved fixed | 897b53c | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Combo.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Control.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/ToolBar.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/ToolItem.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/ToolBar.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/ToolItem.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Combo.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Control.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/ToolBar.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/ToolItem.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-13T15:37:40Z" | "2005-02-15T20:40:00Z" |
81,691 | Bug 81691 Tracker with SWT.Resize really slow | null | resolved fixed | e00d929 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Tracker.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-13T14:32:30Z" | "2004-12-20T22:00:00Z" |
91,089 | Bug 91089 SWT Snippet 77 For Table Col resize has an error in it (fix included beklow) | null | resolved fixed | 4b1e4f7 | ["examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet77.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-12T20:54:33Z" | "2005-04-12T10:00:00Z" |
84,740 | Bug 84740 crash on windows xp korean | null | resolved fixed | e9c8117 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/win32/org/eclipse/swt/internal/win32/OS.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-12T20:39:36Z" | "2005-02-08T22:00:00Z" |
90,899 | Bug 90899 Using PaintListener on Table destroys repainting (Button is the same case) | null | resolved fixed | 3da6a13 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Widget.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-12T19:21:07Z" | "2005-04-09T12:33:20Z" |
90,946 | Bug 90946 gtk_entry_set_text crashes when passed a zero-length buffer | The Combo box (Combo.java:1369) passes 'gtk_entry_set_text' a zero-length byte buffer. This seems to cause the VM to crash after _gtk_entry_set_text exits. I am triggering this bug using the following procedure: - Using eclipse 3.1M6 - Using CDT 3.0.1 build - Open Window->Preferences - Open C/C++ in the tree - Select 'Editor', which results in Eclipse exiting due to a VM crash 'gtk_entry_set_text' is called elsewhere with a minimum 1-byte buffer, so I consider passing a 0-length buffer to be suspect. I did experiment with the native side of things, and found that checking the buffer length and passing a const "" to the GTK method in the case of a zero-length buffer removed the crash: #ifndef NO__1gtk_1entry_1set_1text JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1entry_1set_1text) (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1) { jbyte *lparg1=NULL; const gchar *text = ""; jsize array_len = 0; OS_NATIVE_ENTER(env, that, _1gtk_1entry_1set_1text_FUNC); if (arg1) { array_len = (*env)->GetArrayLength(env, arg1); if ((lparg1 = (*env)->GetByteArrayElements( env, arg1, NULL)) == NULL) { goto fail; } if (array_len > 0) { text = (const gchar *)lparg1; } } gtk_entry_set_text((GtkEntry *)arg0, text); fail: if (arg1 && lparg1) { (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); } OS_NATIVE_EXIT(env, that, _1gtk_1entry_1set_1text_FUNC); } #endif | resolved fixed | 1f898d2 | ["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Combo.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-12T19:00:16Z" | "2005-04-11T00:40:00Z" |
90,222 | Bug 90222 Device constructor | As part of trimming down the SWT API for eSWT, the DeviceData class was removed and a new constructor for Device was introduced (i.e., Device()). However, doing so has broken binary compatibility between eSWT and SWT. Could you add this new constructor for Device for the 3.1 release? public Device() { this(null); } If not, I can add back DeviceData, but I'd rather not. It is not a necessary class from our perspective. | resolved fixed | dfaf513 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/Device.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/graphics/Device.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/graphics/Device.java", "bundles/org.eclipse.swt/Eclipse", "SWT/photon/org/eclipse/swt/graphics/Device.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/Device.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-12T15:09:56Z" | "2005-04-04T21:26:40Z" |
90,152 | Bug 90152 resizing Label flashes | 3.1M6 - open the hierarchy perspective on any java class or package (select the element and press F4) - move the first vertical sash in the perspective left/right and note that the Labels in the Hierarchy and Problems views flash, even though they're not changing -> note that these are not WRAP labels | resolved fixed | 6a81e78 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/motif/org/eclipse/swt/internal/motif/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Label.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-11T23:15:45Z" | "2005-04-04T13:06:40Z" |
89,367 | Bug 89367 String is not rendered inside stringExtent | public class FontScaling { static float value = 1; public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setText("Shell"); shell.setFont(new Font(display, "Arial", 12, 0)); shell.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { GC gc = e.gc; Transform t = new Transform(display); //t.translate(60, 60); t. scale(value, value); gc.setTransform(t); String s = "Test string XYZ"; Point d = gc.stringExtent(s); gc.drawRectangle(0, 0, d.x, d.y); gc.drawString(s, 0, 0, true); value += 0.003; } }); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } | resolved fixed | e40ab8c | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-11T21:43:08Z" | "2005-03-29T15:26:40Z" |
85,537 | Bug 85537 [JUNIT] Display.map test cases failing | Eclipse 3.1 M5 The Display.map JUnit test cases (there are four of them) are all failing. | resolved fixed | 2db2c96 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Control.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Display.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-11T16:03:22Z" | "2005-02-16T18:53:20Z" |
90,282 | Bug 90282 SWT.RIGHT not working on Text control on Mac OS X | On Mac OS X 10.3 it is not possible to have right aligned text within a Text control (AKA text field). This works on Windows XP and Linux GTK, however, I don't know anything about Carbon, so this might just be unsupported. Here's a small snippet showing the problem: public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); Text text = new Text(shell, SWT.SINGLE | SWT.BORDER | SWT.RIGHT); text.setBounds(10, 10, 200, 25); text.setText("right aligned?"); shell.setBounds(50, 50, 230, 100); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } I'm sorry if this is a dup, couldn't find a bug. Tested with Eclipse 3.1M6. | resolved fixed | 468ab6f | ["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/carbon/org/eclipse/swt/internal/carbon/OS.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Text.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-11T15:19:01Z" | "2005-04-05T14:06:40Z" |
89,378 | Bug 89378 Combo default size too small with certain fonts | I'm using some non-editable Combos with a list of pre-set strings to select from, and I want it to stretch to accomodate the longest string inside the list. This works fine except when I switch to a certain font in Japanese - MS UI Gothic. And it doesn't seem to be a Japanese thing, if I use another font, it works. It seems to be computing the size incorrectly. I've noticed this in our UI, and I can also find some instances in some preference pages where they do the same thing. See screenshots to follow. | closed fixed | c7d423d | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Combo.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-08T20:12:31Z" | "2005-03-29T18:13:20Z" |
90,770 | Bug 90770 Race conditions in Device.getDevice() method | Method org.eclipse.swt.graphics.Device.getDevice() is static and uses static variables (CurrentDevice). In application with several GUI threads it is possible (and it happens) that two or more GUI threads access Device.getDevice() method simultaneously. This leads to situation when getDevice(), called from one thread returns null because getDevice() in another thread set CurrentDevice variable to null. | resolved fixed | c58ba58 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/Device.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/graphics/Device.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/graphics/Device.java", "bundles/org.eclipse.swt/Eclipse", "SWT/photon/org/eclipse/swt/graphics/Device.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-08T18:11:50Z" | "2005-04-08T08:46:40Z" |
90,087 | Bug 90087 GC.copyArea causes continuous repainting of Canvas | Using the second variant of copyArea, that specifies source and destination within the receiver, causes a rapid continous redrawing of the canvas, noticeable as a rapid flickering over the source position of the copyArea command. The attached example shows this by drawing an Image on a Canvas and then copying a fragment of the Image to be displayed at different position on the Canvas, using both copyArea methods. Version: 3.1.0 Build id: I20050219-1500 | resolved fixed | 08b3542 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/photon/org/eclipse/swt/graphics/GC.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/GC.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-08T15:46:47Z" | "2005-04-02T16:40:00Z" |
89,483 | Bug 89483 [Table] No SWT.Resize when Scrollbars become visible | See this Snippet: public class Main { public static void main(String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Table table = new Table(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); table.addListener(SWT.Resize, new Listener() { public void handleEvent(Event event) { System.out.println(event); } }); Thread thread = new Thread() { public void run() { for (int a = 0; a < 100; a++) { try { sleep(100); } catch (InterruptedException e) { return; } display.syncExec(new Runnable() { public void run() { new TableItem(table, SWT.NONE).setText("FOO"); } }); } } }; thread.setDaemon(true); thread.start(); shell.setSize(640, 480); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } } There is no SWT.Resize event fired, although the Scrollbar becomes visible. Ben | resolved fixed | 558d087 | ["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Table.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-07T22:00:12Z" | "2005-03-30T10:53:20Z" |
89,669 | Bug 89669 [browser] F1 does not bring eclipse help content when browser has focus | I20050330 CTRL-SHIFT-T correctly open the type dialog F1 does nothing. IE has a special Help/F1 callback. Check we don't mess it up. | resolved fixed | 8a10734 | ["bundles/org.eclipse.swt/Eclipse", "SWT", "Browser/win32/org/eclipse/swt/browser/WebSite.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Widget.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Widget.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Widget.java", "bundles/org.eclipse.swt/Eclipse", "SWT/photon/org/eclipse/swt/widgets/Widget.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Widget.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-07T21:48:34Z" | "2005-03-30T19:13:20Z" |
90,729 | Bug 90729 Shell with style MODELESS or DIALOG_TRIM ignores setSize() | 3.1M6 - run the snippet below - click in the Shell - this attempts to enlarge the shell, but no size change occurs - this is what's causing the CVS conflicts dialog to not grow when the Details button is pressed public static void main(String[] args) { Display display = new Display(); final Shell shell = new Shell(display, SWT.DIALOG_TRIM); // final Shell shell = new Shell(display, SWT.MODELESS); // <-- also won't resize shell.setBounds(10,10,100,100); shell.addListener(SWT.MouseDown, new Listener() { public void handleEvent(Event event) { System.out.println("try to resize to 200x200!"); shell.setSize(200, 200); } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } | resolved fixed | 7f9d0ae | ["bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Shell.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-07T21:38:46Z" | "2005-04-07T21:40:00Z" |
88,735 | Bug 88735 Table.getClientArea() width is inconsistent with win32 | I'm testing this on Windows and Mac OS X and comparing the two, using SWT from the 3.0.1 RCP binary releases. The Mac code for SWT Table seems to be inconsistent with the getClientArea() JavaDoc, which reads: public Rectangle getClientArea() Returns a rectangle which describes the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings"). I have a Table in a TableViewer in a View and the Table has a single TableColumn. I'm keeping that TableColumn's width the same width as the Table with a ControlListener. When the Table is resized the TableColumn's width is adjusted to match it. On Windows the code works perfectly because SWT on Windows follows the above JavaDoc. Here's the code for the listener's controlResized() method: public void controlResized(ControlEvent event) { super.controlResized(event); Object source = event.getSource(); if (!(source instanceof Table)) return; Table table = (Table)source; if (table.getColumnCount() != 1) return; TableColumn column = table.getColumn(0); column.setWidth(table.getClientArea().width); } On Windows no horizontal scrollbars appear in the Table because the size is exactly the available space for the Table. When a vertical ScrollBar is necessary (and visible) the column size adjusts properly to take this into account. The Table.getClientArea() width doesn't include the width of the ScrollBar when the ScrollBar is visible. On Mac OS X the getClientArea() method is too wide by 20 pixels. I know this because if I subtract 20 pixels [column.setWidth(table.getClientArea().width-20)] then the width is perfect on the Mac -- and then (of course) 20 pixels too small on Windows. The Mac version doesn't seem to be following the JavaDoc. Maybe the vertical ScrollBar and/or trimmings aren't being subtracted from the available size for the Table? It should also be noted that on Mac OS X when I subtracted the width of the Table's vertical ScrollBar (table.getVerticalBar().getSize().x) from Table.getClientArea() that *still* wasn't enough space and the horizontal ScrollBar appeared (short by 4 pixels or so). On Mac OS X a Table's scrollbar placeholders are there all of the time and the scrollbars appear and disappear as they are needed. So I'm guessing that there is also some trimming not being accounted for in the Mac OS X Table.getClientArea() calculation. On the other hand the JavaDoc isn't clear about whether it considers a Table's ScrollBar to be part of the Table's available space or not. If it does, then the Mac OS X implementation may be correct except for the space for the trimmings. Either way the inconsistency between Windows and Mac OS X versions of SWT makes it difficult to write code that behaves the same on both platforms. | resolved fixed | bdabeb6 | ["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/TableColumn.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/TreeColumn.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-07T19:24:01Z" | "2005-03-22T14:00:00Z" |
88,388 | Bug 88388 tree focus cheese | - select a file in the Package Explorer that has a local history - right-click -> Compare With... -> Local History - dismiss the resulting compare dialog - note the focus cheese that's left on the item It's happening because showing the popup menu does not send a FocusOut to the Tree, so it does not remove its focus rectangle. However it has lost focus, so later when it goes to repaint, it doesn't complete the bitten parts of the focus rectangle because isFocus() answers false. SSQ says that the lack of FocusOut event is by design, but may not be needed anymore; to discuss with SN. | resolved fixed | ab9053c | ["bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Control.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-07T16:18:31Z" | "2005-03-17T22:53:20Z" |
90,513 | Bug 90513 Link widget does not have a proper CreateHandle method | The link widget does not have a proper create handle mathod. It needs to take in an index. Currently if you try and create this widget on Photon it crashes the application | resolved fixed | ed8f32b | ["bundles/org.eclipse.swt/Eclipse", "SWT/photon/org/eclipse/swt/widgets/Link.java"] | SWT | https://github.com/eclipse-platform/eclipse.platform.swt | eclipse-platform/eclipse.platform.swt | java | null | null | null | "2005-04-07T15:39:52Z" | "2005-04-06T17:53:20Z" |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.