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
129,609
Bug 129609 [browser] unable to enter text in <textarea>
Its not possible to enter / modify / copy&paste text inside a textarea when using Browser widget under OS X (10.4.4). This is true for both 3.1.2 and 3.2M5
verified fixed
70a4774
["bundles/org.eclipse.swt/Eclipse", "SWT", "Browser/carbon/org/eclipse/swt/browser/Browser.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-24T21:24:34Z"
"2006-02-27T17:06:40Z"
138,062
Bug 138062 NPE in getData
N20060421-0010 on XP, I get this error from SWT (I think a similar bug was fixed on MacOS yesterday). org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3323) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2969) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: java.lang.NullPointerException at org.eclipse.swt.widgets.Widget.getData(Widget.java:518) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.restoreLabels(AsynchronousTreeViewer.java:1134) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.handleEvent(AsynchronousViewer.java:976) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:949) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:934) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:1342) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:1330) at org.eclipse.swt.widgets.TreeItem.getItems(TreeItem.java:756) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.getItems(AsynchronousTreeViewer.java:788) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.doAttemptSelectionToWidget(AsynchronousTreeViewer.java:970) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.restoreSelection(AsynchronousViewer.java:726) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.preservingSelection(AsynchronousViewer.java:701) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.handleEvent(AsynchronousViewer.java:992) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:949) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:934) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:1342) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:1330) at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:5979) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3794) at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:1166) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3298) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1841) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1256) at org.eclipse.swt.widgets.Tree.WM_PAINT(Tree.java:5792) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3299) at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:4686) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1841) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1256) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3334) at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:4686) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:2513) at org.eclipse.swt.widgets.Tree.destroyItem(Tree.java:2189) at org.eclipse.swt.widgets.TreeItem.destroyWidget(TreeItem.java:319) at org.eclipse.swt.widgets.Widget.release(Widget.java:750) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:412) at org.eclipse.swt.widgets.Tree.setItemCount(Tree.java:3376) at org.eclipse.swt.widgets.TreeItem.setItemCount(TreeItem.java:1519) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.setItemCount(AsynchronousTreeViewer.java:764) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.nodeChildrenChanged(AsynchronousViewer.java:918) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel$3.run(AsynchronousTreeModel.java:141) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.preservingSelection(AsynchronousViewer.java:693) at org.eclipse.debug.internal.ui.viewers.AsynchronousModel.preservingSelection(AsynchronousModel.java:415) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel.remove(AsynchronousTreeModel.java:139) at org.eclipse.debug.internal.ui.viewers.RemoveRequestMonitor.performUpdate(RemoveRequestMonitor.java:39) at org.eclipse.debug.internal.ui.viewers.AsynchronousRequestMonitor$1.runInUIThread(AsynchronousRequestMonitor.java:58) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
resolved fixed
139638f
["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
"2006-04-24T18:32:30Z"
"2006-04-21T20:06:40Z"
134,417
Bug 134417 Browser Cannot Be Disposed (Intel Carbon SWT)
The following Snippet works under 3.1 (with universal SWT), but not under 3.2M5 and 3.2M6. My computer is an Intel iMac. public static void main(String [] args) { String html = "<HTML><HEAD><TITLE>HTML Test</TITLE></HEAD><BODY>"; for (int i = 0; i < 20; i++) html += "<P>This is line "+i+"</P>"; html += "</BODY></HTML>"; Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Browser browser = new Browser(shell, SWT.NONE); browser.setText(html); shell.open(); // Here: Browser can't be disposed, one does not see the label afterwards (on >=3.2M5) browser.dispose(); System.out.println("Browser is disposed: "+browser.isDisposed()); Label label = new Label(shell, SWT.NONE); label.setText("This is the label"); shell.layout(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
cce993f
["bundles/org.eclipse.swt/Eclipse", "SWT", "Browser/carbon/org/eclipse/swt/browser/Browser.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-24T14:51:13Z"
"2006-04-02T17:46:40Z"
129,564
Bug 129564 StyledText should render tabs exactly 4 spaces wide
I20060223-1656 StyledText should render tabs exactly 4 spaces wide. In latest builds, indents of 4 spaces don't align with indents of 1 tab in some fonts (e.g. Lucida Console Regular 8). See screenshot. This works as expected in 3.1.2 as well as in notepad.
verified fixed
8541553
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-21T18:27:47Z"
"2006-02-27T14:20:00Z"
136,473
Bug 136473 image capture is purple on Mac
On Mac Intel run Snippet95. Click on Capture button. The result is very purple.
resolved fixed
c57bbbc
["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/graphics/GC.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-20T21:26:15Z"
"2006-04-12T22:13:20Z"
60,273
Bug 60273 Toolbar background colour doesn't match background (XP/Silver)
In Eclipse 2.1, it was possible to distinguish the different groups of toolbars. In 3.0, all of the toolbars run together with not separations.
verified fixed
c09d153
["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
"2006-04-20T21:04:52Z"
"2004-04-28T16:33:20Z"
137,524
Bug 137524 NPE in AsynchronousViewer
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3142) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2912) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) 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:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: java.lang.NullPointerException at org.eclipse.swt.widgets.Widget.getData(Widget.java:743) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.handleEvent(AsynchronousViewer.java:1041) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:340) at org.eclipse.swt.widgets.TreeItem.getImage(TreeItem.java:616) at org.eclipse.swt.widgets.TreeItem.calculateWidth(TreeItem.java:217) at org.eclipse.swt.widgets.Tree.calculateWidth(Tree.java:297) at org.eclipse.swt.widgets.Tree.calculateWidth(Tree.java:299) at org.eclipse.swt.widgets.Tree.setScrollWidth(Tree.java:2883) at org.eclipse.swt.widgets.Tree.itemNotificationProc(Tree.java:2193) at org.eclipse.swt.widgets.Display.itemNotificationProc(Display.java:2230) at org.eclipse.swt.internal.carbon.OS.RemoveDataBrowserItems(Native Method) at org.eclipse.swt.widgets.Tree.destroyItem(Tree.java:885) at org.eclipse.swt.widgets.TreeItem.destroyWidget(TreeItem.java:315) at org.eclipse.swt.widgets.Widget.release(Widget.java:1372) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:639) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.nodeDisposed(AsynchronousViewer.java:850) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel$3.run(AsynchronousTreeModel.java:145) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.preservingSelection(AsynchronousViewer.java:734) at org.eclipse.debug.internal.ui.viewers.AsynchronousModel.preservingSelection(AsynchronousModel.java:415) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel.remove(AsynchronousTreeModel.java:143) at org.eclipse.debug.internal.ui.viewers.RemoveRequestMonitor.performUpdate(RemoveRequestMonitor.java:39) at org.eclipse.debug.internal.ui.viewers.AsynchronousRequestMonitor$1.runInUIThread(AsynchronousRequestMonitor.java:51) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) ... 20 more
resolved fixed
ac91ced
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/TreeItem.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-20T19:06:11Z"
"2006-04-19T15:20:00Z"
137,714
Bug 137714 WinCE: setClipping(x,y,w,h) throws NullPointerException
The version swt-3.2RC1-win32-wce_ppc-arm-j2se throws a NullPointerException when calling setClipping(x,y,w,h). Im using j9 on a T-Mobile MDA2. java.lang.NullPointerException at org.eclipse.swt.graphics.GC.setClipping(Unknown Source) at org.eclipse.swt.graphics.GC.setClipping(Unknown Source) at xyz.swt.simpletable.SimpleTable$4.paintControl(Unknown Source) The previous versions from 3.1 tree are throwing a Uns.LinkException (getWindowOrgEx). (I know, a bug for this is always existing and marked as fixed, which is not...)
resolved fixed
4227db7
["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
"2006-04-20T18:05:44Z"
"2006-04-20T13:33:20Z"
127,716
Bug 127716 GC.drawPoint() calls aren't affected by a Transform
If you use a GC and set a Transform, then call drawPoint(), it won't be affected by the Transform. You can easily test this; you can use SWT Snippet 10 if you need a test case. The bug only happens on Windows.
verified fixed
701d021
["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
"2006-04-19T13:31:06Z"
"2006-02-14T15:13:20Z"
127,216
Bug 127216 [Patch] Table check boxes should have shade when selected
null
resolved fixed
272ce17
["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
"2006-04-18T21:17:57Z"
"2006-02-10T02:53:20Z"
137,320
Bug 137320 [StyledText] caret does not move correctly when inserted text wraps
Run the following example and hit the Escape key. Notice that the caret is somewhere past the end of the first line but it should really be between "by" and "abcdefghij" on the second line. The inserted text has caused the line to wrap but the caret has not followed. If you arrow left or arrow right, the caret fixes itself. public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout(new FillLayout()); final StyledText text = new StyledText(shell, SWT.BORDER | SWT.WRAP); text.setText("A drop target receives data in a Drag and Drop operation. The data received by\n"+ "the drop target may have come from the same widget, from a different widget within \n"+ "the same application, or from a different application altogether. For example, you \n"+ "can drag text from an email application and drop it on your application, or you could \n"+ "drag an item in a tree and drop it below a different node in the same tree."); text.addListener(SWT.KeyDown, new Listener() { public void handleEvent(Event e) { if (e.character == SWT.ESC) { text.setCaretOffset(78); text.insert("abcdefghij"); } } }); Point size = shell.computeSize(SWT.DEFAULT, SWT.DEFAULT); shell.setSize(size.x + 4, size.y + 100); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }
resolved fixed
02a41a7
["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
"2006-04-18T20:52:23Z"
"2006-04-18T19:53:20Z"
136,675
Bug 136675 No scrollbar events for Text
Run Snippet191. Selection events are supposed to be fired when you click on the thumb or in the trough or on the arrows of the scrollbar but no event is fired.
verified fixed
73e7212
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/ScrollBar.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Scrollable.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-18T19:29:08Z"
"2006-04-13T17:40:00Z"
136,641
Bug 136641 Scrollbars not excluded from client area
Run Snippet9. Make the shell smaller. On Windows, the scrollbars become active as soon as you touch the edge of the composite and you are able to scroll to see the full oval. On Mac OS X (tried both Panther and Tiger) you can't see the very edge of the oval when scrolling and the scrollbars do not become active until part of the oval is missing. I think the scrollbars are not being subtracted from the client area of the shell.
verified fixed
7b90249
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Shell.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-18T18:48:19Z"
"2006-04-13T14:53:20Z"
136,451
Bug 136451 ToolItem is not visible if bounds set before text
Run the following example. The toolbar does not appear. Change example to set the bounds after the text was set and toolitem is visible. public static void main (String [] args) { String string = "This is a string\nwith a new line."; Display display = new Display (); Shell shell = new Shell (display); ToolBar bar = new ToolBar (shell, SWT.BORDER); // setting bounds before text - toolitem is not displayed bar.setBounds (10, 220, 200, 100); ToolItem item1 = new ToolItem (bar, SWT.PUSH); item1.setText("tool item"); // setting bounds after text and toolitem appears //bar.setBounds (10, 220, 200, 100); item1.setToolTipText (string); shell.setToolTipText (string); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }
verified fixed
1fc75d8
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/ToolItem.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-18T15:36:09Z"
"2006-04-12T19:26:40Z"
135,040
Bug 135040 CCombo.dropdown doesn't handle the screen's right edge
The 'popup' Shell of a CCombo is allways justified with the left side of the CCombo, regardless of the screen right edge. I believe adding if (x + width > displayRect.x + displayRect.width) x = displayRect.x + displayRect.width - listRect.width; at line 382 in CCombo.java would solve it.
resolved fixed
6d421bc
["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
"2006-04-18T14:56:22Z"
"2006-04-05T15:13:20Z"
127,813
Bug 127813 CCombo.computeSize returning incorrect values when using wHint/hHint
The CCombo.computeSize behavior is inconsistent with other widgets in that the wHint and hHint do not override the internal widget computed size. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); CCombo combo = new CCombo(shell, SWT.WRAP); combo.add("This is some text that is longer than the width hint"); System.out.println("ccombo computesize default: " + combo.computeSize(SWT.DEFAULT, SWT.DEFAULT)); System.out.println("ccombo computesize 40: " + combo.computeSize(40, SWT.DEFAULT)); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); } For me: ccombo computesize default: Point {220, 14} ccombo computesize 40: Point {220, 14} While the width and height are only hints the way inwhich the CCombo implements it is inconsistent with other widgets such as the Combo, Text, Table, etc. In those cases, the hint is returned largely "as is".
resolved fixed
0659e2e
["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
"2006-04-18T14:44:32Z"
"2006-02-14T18:00:00Z"
136,931
Bug 136931 Regression in right-mouse button behavior
In 3.2M6 and earlier, a right-mouse button click brought up the menu for the item under the cursor. In Eclipse 3.2RC1, it no longer does this - instead it brings up the menu for the previously selected item, or the menu for an unselected item in the current window if nothing was previously selected. If you first select an item, then right-click, the correct menu is brought up.
resolved fixed
4a0a013
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Control.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-17T17:35:22Z"
"2006-04-16T12:20:00Z"
95,950
Bug 95950 [KeyBindings] interactions: ALT/COMMAND+ARROW keybindings should be swapped on Mac
Safari uses COMMAND+LEFT/RIGHT_ARROW for navigation history. Eclipse uses ALT. I don't think this is consistent with other Mac applications.
verified fixed
22f4c86
["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
"2006-04-13T18:27:55Z"
"2005-05-19T13:40:00Z"
136,673
Bug 136673 Snippet133 - NullPointerException
Version: 3.2.0 Build id: I20060412-0847- Run Snippet133 ps. Couldn't reproduce the bug in windows, only motif. - Add some text - Go to File -> Change Foreground, pick any color - Go to File -> Change Background, pick any color. The following exception appears: Exception in thread "main" java.lang.NullPointerException at org.eclipse.swt.widgets.Display.showToolTip(Display.java:3342) at org.eclipse.swt.widgets.Control.hoverProc(Control.java:1129) at org.eclipse.swt.widgets.Control.hoverProc(Control.java:1126) at org.eclipse.swt.widgets.Display.mouseHoverProc(Display.java:2583) at org.eclipse.swt.internal.motif.OS._XtAppProcessEvent(Native Method) at org.eclipse.swt.internal.motif.OS.XtAppProcessEvent(OS.java:3737) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2735) at org.eclipse.swt.widgets.ColorDialog.openModal(ColorDialog.java:421) at org.eclipse.swt.widgets.ColorDialog.open(ColorDialog.java:358) at org.eclipse.swt.snippets.Snippet133.menuBackgroundColor(Snippet133.java:189) at org.eclipse.swt.snippets.Snippet133$4.widgetSelected(Snippet133.java:98) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:775) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3059) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2748) at org.eclipse.swt.snippets.Snippet133.open(Snippet133.java:121) at org.eclipse.swt.snippets.Snippet133.main(Snippet133.java:49)
resolved fixed
1a8cc13
["examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet133.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-13T18:23:32Z"
"2006-04-13T14:53:20Z"
136,633
Bug 136633 Failed to execute runnable (java.lang.ArrayIndexOutOfBoundException) in debug mode
Build id: I20060412-0847 To reproduce run any snippet in debug mode (i ran snippet229). Expand some variable names, click on some random variables and then click on variable 'this' a couple times, the exception will show. Failed to execute runnable(java.lang.ArrayIndexOutOfBoundException: -1) org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ArrayIndexOutOfBoundsException: -1) at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3037) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2751) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) 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:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.swt.widgets.Tree.redrawItem(Tree.java:3024) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:263) at org.eclipse.swt.widgets.TreeItem.getBounds(TreeItem.java:800) at org.eclipse.swt.widgets.TreeItem.getBounds(TreeItem.java:797) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.isVisible(AsynchronousTreeViewer.java:880) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.nodeContainerChanged(AsynchronousTreeViewer.java:757) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel.setIsContainer(AsynchronousTreeModel.java:268) at org.eclipse.debug.internal.ui.viewers.ContainerRequestMonitor.performUpdate(ContainerRequestMonitor.java:45) at org.eclipse.debug.internal.ui.viewers.AsynchronousRequestMonitor$1.runInUIThread(AsynchronousRequestMonitor.java:51) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) ... 20 more
resolved fixed
46df07f
["bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java", "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
"2006-04-13T14:41:30Z"
"2006-04-13T14:53:20Z"
123,922
Bug 123922 [Patch] SWT Javadoc: Some typos/minor errors
SWT 20060116 Some typos/minor errors in the public SWT Javadoc. Please see the attached patch. (This is not meant to be a complete list.)
resolved fixed
096d25a
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/BusyIndicator.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CBanner.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CCombo.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CTabFolderEvent.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CTabItem.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/ControlEditor.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/PopupList.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/SashForm.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/ScrolledComposite.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StackLayout.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyleRange.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledText.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledTextContent.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/TableCursor.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/TableTree.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/ViewForm.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "OLE", "Win32/win32/org/eclipse/swt/ole/win32/Variant.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Program/carbon/org/eclipse/swt/program/Program.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", "bundles/org.eclipse.swt/Eclipse", "SWT", "Program/photon/org/eclipse/swt/program/Program.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Program/win32/org/eclipse/swt/program/Program.java", "bundles/org.eclipse.swt/Eclipse", "SWT/cairo/org/eclipse/swt/graphics/Path.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/Path.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/Table.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/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/events/KeyEvent.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/events/TraverseEvent.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/graphics/GlyphMetrics.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/graphics/TextStyle.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/FillLayout.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/FormAttachment.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/FormData.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/FormLayout.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/GridData.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/GridLayout.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/RowData.java", "bundles/org.eclipse.swt/Eclipse", "SWT/common/org/eclipse/swt/layout/RowLayout.java", "bundles/org.eclipse.swt/Eclipse", "SWT/emulated/graphics/org/eclipse/swt/graphics/Path.java", "bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java", "bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Sash.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Table.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Text.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Sash.java", "bundles/org.eclipse.swt/Eclipse", "SWT/motif/org/eclipse/swt/widgets/Text.java", "bundles/org.eclipse.swt/Eclipse", "SWT/photon/org/eclipse/swt/widgets/Sash.java", "bundles/org.eclipse.swt/Eclipse", "SWT/photon/org/eclipse/swt/widgets/Text.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/graphics/Path.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Sash.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/Text.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
"2006-04-12T20:03:58Z"
"2006-01-16T05:40:00Z"
136,272
Bug 136272 Combo on Mac incorrectly sends KeyDown event before Traverse when arrow up/down keys used
N20060410-0010, Mac (OSX 10.3.9, haven't tried others) My understanding of SWT.Traverse is as follows: - for navigation keys in a control, SWT.Traverse should always be received before the corresponding SWT.KeyDown event for that key - setting the doit field to true should cause the Traverse described in the detail field to occur - setting the doit field to false should cancel the Traverse and a corresponding SWT.KeyDown event will be sent for that key. This is NOT happening on the Mac when using the arrowup and arrowdown keys. Instead, a KeyDown event is received, then a Traverse event, and then (optionally) a second keydown event. This is breaking the platform UI field assist popup. It causes double handling of the keystroke. The following snippet will demonstrate the problem by printing the received keystrokes to the console. package snippets; /* * Shouldn't traverse always come before keydown? * On the Mac, hitting the up or down arrow causes a KeyDown before * a Traverse, and then another KeyDown. */ import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class ComboKeystrokes { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout()); Combo combo = new Combo(shell, SWT.DROP_DOWN | SWT.BORDER); combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); combo.setText("Here is some text"); Listener listener = new Listener() { public void handleEvent(Event e) { StringBuffer sb; if (e.type == SWT.Traverse) { sb = new StringBuffer("Traverse"); //$NON-NLS-1$ } else { sb = new StringBuffer("KeyDown"); //$NON-NLS-1$ } sb.append(" received by combo"); //$NON-NLS-1$ dump(sb.toString(), e); } private void dump(String who, Event e) { StringBuffer sb = new StringBuffer( "--- [ContentProposalAdapter]\n"); //$NON-NLS-1$ sb.append(who); sb.append(" - e: keyCode=" + e.keyCode + hex(e.keyCode)); //$NON-NLS-1$ sb.append("; character=" + e.character + hex(e.character)); //$NON-NLS-1$ sb.append("; stateMask=" + e.stateMask + hex(e.stateMask)); //$NON-NLS-1$ sb.append("; doit=" + e.doit); //$NON-NLS-1$ sb.append("; detail=" + e.detail + hex(e.detail)); //$NON-NLS-1$ sb.append("; widget=" + e.widget); //$NON-NLS-1$ System.out.println(sb); } private String hex(int i) { return "[0x" + Integer.toHexString(i) + ']'; //$NON-NLS-1$ } }; combo.addListener(SWT.KeyDown, listener); combo.addListener(SWT.Traverse, listener); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
verified fixed
4f8c243
["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
"2006-04-12T17:00:43Z"
"2006-04-12T05:33:20Z"
134,925
Bug 134925 Table/Tree Columns don't align SWT.RIGHT and SWT.CENTER text properly (regression) (GTK)
The text in an SWT.RIGHT column used to all be right justified. Now it isn't. Scroll to see all rows. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Table table = new Table(shell, SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); final int columns = 11; for (int i = 0; i < columns; i++) { TableColumn tc = new TableColumn(table, SWT.RIGHT); tc.setWidth(157); } table.setItemCount(8); table.addListener(SWT.SetData, new Listener() { public void handleEvent(Event e) { TableItem item = (TableItem) e.item; int c = e.index; if (c > 5) for (int i = 0; i < columns; i++) item.setText(i, "234,443,444,110,231,812"); else for (int i = 0; i < columns; i++) item.setText(i, "1"); } }); table.setHeaderVisible(true); table.setLinesVisible(true); table.setSortDirection(SWT.DOWN); table.setSortColumn(table.getColumn(0)); shell.setSize(350, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
d54f89f
["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
"2006-04-12T16:27:48Z"
"2006-04-05T01:20:00Z"
134,356
Bug 134356 Walkback turning on wrap in StyledText.
1) run the CustomControlExample 2) click on the StyledText tab 3) click in the StyledText widget such that the cursor is at the end 4) type enough text that it scrolls left 5) select some text and click on the "Foreground" button 6) select the SWT.WRAP button 7) walkback: Exception in thread "main" java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.SWT.error(SWT.java:3358) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.SWT.error(SWT.java:3268) at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7733) at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7829) at org.eclipse.swt.examples.controlexample.StyledTextTab.createExampleWidgets(StyledTextTab.java:108) at org.eclipse.swt.examples.controlexample.Tab.recreateExampleWidgets(Tab.java:1135) at org.eclipse.swt.examples.controlexample.Tab$1.widgetSelected(Tab.java:161) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1267) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3273) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2909) at org.eclipse.swt.examples.controlexample.CustomControlExample.main(CustomControlExample.java:54)
verified fixed
c0cf438
["examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/StyledTextTab.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-11T19:15:49Z"
"2006-04-01T02:53:20Z"
134,837
Bug 134837 Tree- Random foreground color appears for Tree when selecting items and subitems
Version: 3.2.0 Build id: I20060125-0800 -> Run Snippet226 -> Expand some of the tree items so the subitems are visible -> Note that all the items and subitmes have foreground color grey but as soon as you select one item or a subitem then some of the rows (happens to random rows, not one in particular) become black. -> Click on various subitems to see the behaviour I am attaching a screenshot of the bug.
verified fixed
0d27e5e
["bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java", "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/Tree.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
"2006-04-11T17:40:08Z"
"2006-04-04T19:46:40Z"
76,740
Bug 76740 [painting] Ctrl+End brings StyledText into strange state
In Text Editor or Java Editor typing CTRL+PAGEUP and CTRL+PAGEDOWN creates left margin if last line is longer than visible editor width and text is longer (vertically) than visible editor area. Workaround: Positioning on last character in last line and typing any key but ARROW UP removes this extra margin. It is reproducable always.
verified fixed
c1944fe
["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
"2006-04-11T16:52:00Z"
"2004-10-21T12:00:00Z"
136,064
Bug 136064 Snippet 225 (balloon tool tip) should say @since 3.2
SWT v3229 As snippet 225 (see URL) uses 3.2 functionality, it should say "@since 3.2", not "@since 3.0". While you're at it, the sample sentence "Here is message for the user." should say "a message" or "the message".
verified fixed
3747eb1
["examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet225.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-11T13:07:44Z"
"2006-04-11T07:20:00Z"
127,902
Bug 127902 Focus gets stuck in Expandbar
Run Snippet223 When example first comes up, focus is in the item header and you can not tab out of it. Place focus in the Spinner. Tab around. Focus goes to the header and gets stuck there. If you do the same thing on Wiindows, tabbing takes you both to the item headers and to the widgets inside.
verified fixed
d42ee8f
["bundles/org.eclipse.swt/Eclipse", "SWT/emulated/expand/org/eclipse/swt/widgets/ExpandBar.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-10T19:58:40Z"
"2006-02-14T20:46:40Z"
135,649
Bug 135649 Mouse wheel scrolls invisible scrollbars
In previous SWT versions, if you made a scrollbar invisible, it did not respond to the mouse wheel. With 3.2 M5, an invisible scrollbar will scroll with the mouse wheel.
resolved wontfix
90b00eb
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Scrollable.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-10T19:54:12Z"
"2006-04-07T20:00:00Z"
134,175
Bug 134175 Not consistenly getting control resize event from table column
In this testcase, there are three buttons: Hide Column 1 Show Column 1 Resize Column 1 Hide Column 1 action sets the width of column 1 to zero. Show Column 1 action sets the width of column 1 to 100. It also adds a control listener to catch the columns's resize event. To see the problem: 1. Press Hide Column 1 action. 2. Press Show Column 1 action. Expected Result: When the Show Column 1 button is pressed, it's expected that my control listener will get a resize event and will print out "Column Resized" in the console. Actual Result: My listener never gets a resize event when "Show Column 1" action is run. However, if I press the "Resize Column 1" action which further resizes the column, my listener will be notified. If I run this testcase on Windows, my control listener is notified consistenly when "Show Column 1" is pressed. public class TestResize { private static TableColumn column1; private static TableColumn column2; private static TableColumn column3; /** * @param args */ public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout()); final Table table = new Table(shell, SWT.BORDER | SWT.MULTI | SWT.VIRTUAL); final TableCursor cursor = new TableCursor(table, SWT.NONE); table.setLayoutData(new GridData(GridData.FILL_BOTH)); column1 = new TableColumn(table, SWT.NONE); column1.setText("A"); column2 = new TableColumn(table, SWT.NONE); column1.setText("B"); column3 = new TableColumn(table, SWT.NONE); column1.setText("C"); for (int i = 0; i < 500; i++) { TableItem item = new TableItem(table, SWT.NONE); item.setText(new String[] { "cell "+i+" 0", "cell "+i+" 1", "cell "+i+" 2"}); } column1.setWidth(100); column2.setWidth(100); column3.setWidth(100); Button action2 = new Button(shell, SWT.PUSH); action2.setText("Hide Column 1"); action2.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { column1.setWidth(0); } public void widgetDefaultSelected(SelectionEvent e) { }}); Button action = new Button(shell, SWT.PUSH); action.setText("Show Column 1"); action.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { column1.addControlListener(new ControlListener() { public void controlMoved(ControlEvent e) { } public void controlResized(ControlEvent e) { column1.removeControlListener(this); System.out.println("Control Resized"); }}); // expect to see "Control Resized" printed when this is called column1.setWidth(100); } public void widgetDefaultSelected(SelectionEvent e) { }}); Button action3 = new Button(shell, SWT.PUSH); action3.setText("Resize Column 1"); action3.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { // expect to see Control Resized printed when this is called column1.setWidth(200); } public void widgetDefaultSelected(SelectionEvent e) { }}); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
verified fixed
b0a6255
["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/TableColumn.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-10T18:37:57Z"
"2006-03-30T23:06:40Z"
128,273
Bug 128273 TableCursor not working properly on Linux GTK
The table cursor is not moving correctly when I navigate with the arrow keys. The behavior I get between a virtual table and a non-virtual table is different. But both cases do not quite work as I expect. Non-Virtual Table =================== I use the Up and Down arrow keys to move the cursor. When the cursor is at the end of the page and if I keep pushing the down button, the table will start to scroll. I see that the top row is changing, but the cursor remains at the same cell. If I push the "Up" button, the cursor goes back to where it is supposed to be and jumps to a cell below. I expect the cursor to behave like it is on windows. If I am at the bottom and I keep moving down, the table should scroll. The cursor should move one cell down. Virtual Table ================== For virtual table, if I keep pressing the down key at the end of the page, the cursor first disappears. If I keep pressing the down key, the table is reloaded with the next page of data and the cursor is moved to the top of the screen. Testcase: ============ public class TestTableBug { private static TableColumn column1; private static TableColumn column2; private static TableColumn column3; public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout()); final Table table = new Table(shell, SWT.BORDER | SWT.MULTI | SWT.VIRTUAL| SWT.V_SCROLL); final TableCursor cursor = new TableCursor(table, SWT.NONE); table.setLayoutData(new GridData(GridData.FILL_BOTH)); column1 = new TableColumn(table, SWT.NONE); column1.setText("A"); column2 = new TableColumn(table, SWT.NONE); column1.setText("B"); column3 = new TableColumn(table, SWT.NONE); column1.setText("C"); for (int i = 0; i < 500; i++) { TableItem item = new TableItem(table, SWT.NONE); item.setText(new String[] { "cell "+i+" 0", "cell "+i+" 1", "cell "+i+" 2"}); } // These have no effects on Linux GTK? column1.pack(); column2.pack(); column3.pack(); Button action = new Button(shell, SWT.PUSH); action.setText("Pack Columns"); action.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { // These have no effects on Linux GTK? column1.pack(); column2.pack(); column3.pack(); } public void widgetDefaultSelected(SelectionEvent e) { }}); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
verified fixed
c3b5c60
["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/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
"2006-04-07T20:44:42Z"
"2006-02-16T20:00:00Z"
130,853
Bug 130853 Implement ExpandBar on GTK 2.2.x
Description:On SuSE Linux Enterprise Sever 9 sp 3, snippet223 fail to run due to SWTError. Build date: Eclipse3.2 M5a, IBM JRE 5GA and Sun JRE1.5.0_06 OS: SLES9 sp3 ja_JP.utf8 and en_US.utf8 Steps to recreate problem: 1- load snippet223 and run following error is displayed at Console view Exception in thread "main" org.eclipse.swt.SWTError: No more handles at org.eclipse.swt.SWT.error(SWT.java:3375) at org.eclipse.swt.SWT.error(SWT.java:3272) at org.eclipse.swt.SWT.error(SWT.java:3243) at org.eclipse.swt.widgets.Widget.error(Widget.java:431) at org.eclipse.swt.widgets.ExpandBar.createHandle(ExpandBar.java:45) at org.eclipse.swt.widgets.Widget.createWidget(Widget.java:378) at org.eclipse.swt.widgets.Control.createWidget(Control.java:364) at org.eclipse.swt.widgets.Scrollable.createWidget(Scrollable.java:148) at org.eclipse.swt.widgets.Control.<init>(Control.java:88) at org.eclipse.swt.snippets.Snippet223.main(Snippet223.java:33)
closed fixed
25e834c
["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java", "bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-07T20:36:50Z"
"2006-03-08T03:53:20Z"
125,812
Bug 125812 new Image(device, image, SWT.IMAGE_COPY) does not work as expected on windows.
I'm using Eclipse-3.1M4/JDK1.5 Creating an image using new Image(device, image, SWT.IMAGE_COPY) does not work as expected. I have the following code to highlight a part of the image. When the imageData is set into the imageCanvas the image appears to be mirrored diagonally (i.e. mirrored vertically then horizontally) The behaviour of the snippet is different on Windows 2000 and Windows XP. On windows XP the image is mirrored diagonally, and the highlighted box appears on the image, at the correct position. On windows 2000 the image is mirrored diagonally, but the image is NOT highlighted. Setting the alpha to 255(or not setting alpha at all) will draw an opaque highlighted box. The snippet works OK on Linux (Ubuntu Linux ver 5.10) --- begin code --- protected void highlightImage(ImageMapDescriptor descriptor) { Image image = Activator.getImage("resources/images/page1.png"); Image imageCopy = new Image(image.getDevice(), image, SWT.IMAGE_COPY); // draw a highlighted rectangle GC gc = new GC(imageCopy); gc.setAlpha(64); gc.setBackground(new Color(gc.getDevice(), 255, 255, 0)); gc.fillRectangle(descriptor.getBounds()); // get the image data. ImageData imageData = imageCopy.getImageData(); // dispose imageCopy.dispose(); gc.dispose(); this.imageCanvas.setImageData(imageData); } --- end code ---
resolved fixed
564af48
["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
"2006-04-07T19:57:00Z"
"2006-01-31T12:20:00Z"
82,769
Bug 82769 [Contributions] Disabled menu items have enabled images when armed
null
verified fixed
40f1c5f
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Label.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/MenuItem.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/ToolItem.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-07T17:44:22Z"
"2005-01-13T18:13:20Z"
132,695
Bug 132695 Disabled image loses transparency
SWT-win32, v3229 In the test case below, a new image is created based on an existing image using the SWT.IMAGE_DISABLE operation. Since the base image had transparency, the expectation is that the greyed-out image will be (partially) transparent too. Currently, however, that does not seem to be the case. Note: The native/GDI+ image loading code gets this right. --- import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; import java.io.*; public class GreyedImageTest2 { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setBackground(display.getSystemColor(SWT.COLOR_GREEN)); Image img = null; try { InputStream in = new FileInputStream("<path>\\red_swt_icon.png"); img = new Image(display, in); in.close(); } catch (Exception ex) { } final Image icon = img; final Image disabledIcon = new Image(display, icon, SWT.IMAGE_DISABLE); shell.addListener(SWT.Paint, new Listener() { public void handleEvent(Event e) { e.gc.drawImage(icon, 16, 16); e.gc.drawImage(disabledIcon, 56, 16); } }); shell.setSize(200, 100); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } icon .dispose(); disabledIcon.dispose(); display .dispose(); } }
resolved fixed
842af38
["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
"2006-04-07T16:53:12Z"
"2006-03-21T16:53:20Z"
106,381
Bug 106381 Can't size columns smaller then title
When I have a column with a long title but narrow data, I cannot make the column smaller than the title. You can see this in Eclipse: Open the Problems view and try to make any column narrower than the title. I would suggest that Eclipse allows to make a column smaller than the title and add a tooltip when the title doesn't fit in the available space.
resolved fixed
e3ab8de
["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/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
"2006-04-07T16:43:50Z"
"2005-08-08T16:53:20Z"
45,918
Bug 45918 eclipse should enable XP visual styles if available (from comctl32.dll)
in order to appear a completely native windows XP application, Eclipse should indicate that it desires version 6.0 of comctl32.dll if it is available. this is apparently done with an "application manifest" file, i'm not sure how well this maps, if at all, to the way the SWT dll works. the main noticeable difference if this is implemented would be the style of the standard push-buttons. (currently they still look very much like windows 2000 controls on XP).
verified fixed
0a0326b
["bundles/org.eclipse.swt/Eclipse", "SWT", "PI/win32/org/eclipse/swt/internal/win32/ACTCTX.java", "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
"2006-04-06T18:49:02Z"
"2003-11-02T10:46:40Z"
135,303
Bug 135303 CBanner draws unwanted gradient line at bottom when it has more height than the default
3.2 M6 - in the browser example, I added a custom trim item that appears at top right by default - this causes the CBanner to be given more height than its computeSize requests - when this happens, the CBanner draws a 1-pixel-high gradient line at the bottom - if the trim item is dragged to the bottom (or when there's no trim item), the gradient line is not seen In this scenario, the CBanner has a left control (a Composite containing the Coolbar), but no right or bottom control.
resolved fixed
946b729
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CBanner.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-06T18:05:14Z"
"2006-04-06T16:13:20Z"
81,264
Bug 81264 Table fails to setTopIndex after new items are added to the table
I am working on a table viewer that keeps track of the scroll bar and loads content into the table dynamically as the user scrolls to the end of the table. Items could be added/removed from the table as the user scrolls. To maintain the position of the table, I call setTopIndex at the end of the update. I have created a small testcase to simulate the process. Here's my testcase to demonstrate the problem: public static void main(String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setBounds(10,10,200,200); final Table table = new Table(shell, SWT.NONE); table.setBounds(10,10,100,100); for (int i = 0; i < 99; i++) { new TableItem(table, SWT.NONE).setText("item " + i); } table.setTopIndex(20); shell.open(); System.out.println("top visible index: " + table.getTopIndex()); for (int i = 0; i < 5; i++) { new TableItem(table, SWT.NONE).setText("item " + i); } table.setTopIndex(40); System.out.println("top visible index: " + table.getTopIndex()); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } Table.setTopIndex fails to position to the correct table item if new items are added to the table after the shell is opened. The first call to setTopIndex succeeds. The table is correctly positioned at item 20. After adding new table items to the table, calling setTopTable(40) has no effect. Calling getTopIndex continues to return 20. Expected Result: Calling setTopIndex(40) should move table item #40 to the top of the table. Calling getTopIndex after should return 40. If the last 5 items are added before the shell is opened, setTopIndex to 40 will also succeed. The testcase works as expected on Windows.
verified fixed
750fbf7
["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/widgets/List.java", "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
"2006-04-06T14:27:41Z"
"2004-12-15T17:00:00Z"
110,794
Bug 110794 [64] Crash when pressing ENTER after having entered value in "Search" form
SUSE Linux Professional 9.3 1 GB RAM I am starting eclipse with a minimal bash script: #!/bin/sh EXE=$HOME/local/eclipse/eclipse JAVA=/home/kjk/local/jdk-1_5_0_05-linux-amd64/bin/java $EXE -vm $JAVA -showLocation $* I am not using an external help browser. Recipe: - Select "Help Contents" from the "Help" menu - Write any word in the "Search" field - Press ENTER In 100% of the cases, Eclipse crashes with this message: # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00002aaaaae4ac75, pid=17632, tid=46912501717760 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_05-b05 mixed mode) # Problematic frame: # C [libc.so.6+0x6fc75] memmove+0x85 (I will soon try to attach the .log file) The reason for my not choosing severity "critical" is that the workaround is simple: Click the "GO" button instead of pressing ENTER.
resolved fixed
7cb97e4
["bundles/org.eclipse.swt/Eclipse", "SWT", "Browser/mozilla/org/eclipse/swt/browser/PromptService.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-06T14:13:57Z"
"2005-09-27T14:06:40Z"
134,482
Bug 134482 [64] SWT Snippet24 (default selection) does not work on amd64
I am using an AMD 64bit machine and Eclipse 3.2M6 on linux_gtk. I run the SWT snippet 24 and pressing CR in either the text field or combo does nothing. My actual code used the same technique in order to listen for default selection events on text fields and it worked on 3.2M5 on a 32bit linux_gtk system. The same code did fail on 3.2M4 and 3.2M6 on a 64bit linux_gtk system (the default selection part).
verified fixed
8523dd7
["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
"2006-04-05T21:42:30Z"
"2006-04-03T10:26:40Z"
134,882
Bug 134882 Resizing a TableColumn triggers SelectionEvent
SWT: 3.2 M6 MacOSX: 10.4.6 When resizing a TableColumn, a SelectionEven is fired. I can not see this behaviour in the Finder for instance. ben
resolved fixed
3410ffe
["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
"2006-04-05T20:56:43Z"
"2006-04-04T22:33:20Z"
113,559
Bug 113559 [build] Dependency on libstdc++.so.5
The swt-mozilla library depends on the libstdc++ library. Currently, we are compiling against libstdc++.so.5 however, RHEL4 defaults to libstdc++.so.6. We need a strategy for supporting both libstdc++.so.5 and libstdc++.so.6. It would appear that removing the dependency on this library altogether is not possible.
verified fixed
5adf547
["bundles/org.eclipse.swt/Eclipse", "SWT", "Browser/motif/org/eclipse/swt/browser/Browser.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
"2006-04-05T18:47:53Z"
"2005-10-24T16:06:40Z"
134,874
Bug 134874 Contextual Menu opens from parent Widgets as well
SWT: 3.2 M6 MacOSX: 10.4.6 Having this snippet, open the contextual menu on the table. Then click again on the table and see the Shell's popup menu appear: public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Menu m1 = new Menu(shell, SWT.POP_UP); MenuItem item1 = new MenuItem(m1, SWT.NONE); item1.setText("Item1"); shell.setMenu(m1); Table t = new Table(shell, SWT.BORDER); new TableItem(t, SWT.None).setText("Hello World"); Menu m2 = new Menu(shell, SWT.POP_UP); MenuItem item2 = new MenuItem(m2, SWT.NONE); item2.setText("Item2"); t.setMenu(m2); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } } Ben
resolved fixed
9aec3da
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Control.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-04T21:21:43Z"
"2006-04-04T19:46:40Z"
127,848
Bug 127848 CustomControlExample CLabel background image differences
null
resolved fixed
d954405
["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
"2006-04-04T20:04:50Z"
"2006-02-14T20:46:40Z"
134,313
Bug 134313 Custom selection does not redraw when resizing window
This bug can be seen by running Snippet229 and resizing the window using the right side of the shell. Resize in and out and the gradient for the custom selection will disappear in some places. - It works WITHOUT the manifest but does not work WITH manifest. - Tested in motif, Mac and gtk and they seem to not have that problem.
resolved fixed
5c289e9
["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
"2006-04-03T19:24:04Z"
"2006-03-31T21:20:00Z"
134,382
Bug 134382 TableColumn: StringIndexOutOfBoundsException
SWT Motif CVS Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 11 at java.lang.String.substring(String.java:1441) at org.eclipse.swt.widgets.TableColumn.computeDisplayText(TableColumn.java:207) at org.eclipse.swt.widgets.TableColumn.setSortDirection(TableColumn.java:651) at org.eclipse.swt.widgets.Table.setSortColumn(Table.java:3491) -- OR -- Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind ex out of range: 11 at java.lang.String.substring(String.java:1441) at org.eclipse.swt.widgets.TableColumn.computeDisplayText(TableColumn.ja va:207) at org.eclipse.swt.widgets.TableColumn.updateWidth(TableColumn.java:703) at org.eclipse.swt.widgets.Table.updateColumnWidth(Table.java:3792) at org.eclipse.swt.widgets.TableColumn.setWidth(TableColumn.java:693) ---- public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Table table = new Table(shell, SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); final int columns = 11; for (int i = 0; i < columns; i++) { TableColumn tc = new TableColumn(table, SWT.LEFT); tc.setText("Directory"); tc.setWidth(137); } table.setHeaderVisible(true); table.setLinesVisible(true); table.setSortDirection(SWT.DOWN); table.setSortColumn(table.getColumn(0)); shell.setSize(350, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
d938b9e
["bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/TableColumn.java", "bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/TreeColumn.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-04-03T15:16:06Z"
"2006-04-01T22:20:00Z"
134,269
Bug 134269 Adding column to var view causes VM to GP
null
resolved fixed
742626d
["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
"2006-03-31T18:02:22Z"
"2006-03-31T15:46:40Z"
134,181
Bug 134181 Font.init does not initialise the device of a font
I20060330 On MacOS Font.init does not initialise the device of a font. As a consequence Font.getDevice() always returns null.
resolved fixed
81bd540
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/Font.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-31T15:47:13Z"
"2006-03-30T23:06:40Z"
133,126
Bug 133126 BIDI3.2: Arabic characters shaping is not handled correctly in Java Scrapbook page editor
Build date: m5a OS: Win XP, 2000 and 2003 Steps to recreate problem: 1. Create a new Scrap page (Go to file -> New -> other then select Java -> Java run/debug -> Scrapbook page and follow the wizad to create the page and add it to a Java project). 2. Double click on the file to open it. 3. Write any Arabic word (For example use the keys "fdk") then press space and write another one (For example use the keys "udk"). Expected output: Arabic chracters are properly shaped. Actual output: Arabic characters are not correctly shaped, the last character in the first word in the example is represented in "Middle" shape while it is expected to be "Final" and the first character in the second word in the example is represented in "Middle" shape while it is expected to be "Initial". It seems the space is not being treated as a word separator, thus, the surronuding charcaters are being shaped as if it is an Arabic character. See the attached screen capture
closed fixed
3094c5a
["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
"2006-03-30T22:55:43Z"
"2006-03-24T11:33:20Z"
132,989
Bug 132989 ExpandBar does not support WM_PRINT
It is hard to support ExpandBar in GUI builder without this feature. :-)
resolved fixed
9d60ac8
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/ExpandBar.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-29T22:47:24Z"
"2006-03-23T13:20:00Z"
132,979
Bug 132979 Text sometime not fire verify event
if you keep you moust left button down out side the text(but the text have focus) and then press any key the Text not fire verify event.
resolved fixed
b281ae7
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Text.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-29T19:31:06Z"
"2006-03-23T10:33:20Z"
133,680
Bug 133680 Tree PaintItem event has wrong x
- run the snippet below, which draws a focus box with the event's bounds for each item - note that beyond the root level of depth the focus box does not move to the right with the item that it's giving the PaintItem coordinates for, so client code that uses the event's x to determine where to draw its custom contents will paint at the wrong place public static void main(String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setBounds(10,10,200,200); final Tree tree = new Tree(shell, SWT.MULTI | SWT.FULL_SELECTION); tree.setBounds(10,10,150,150); TreeItem item = new TreeItem(tree, SWT.NONE); item.setText("root"); for (int i = 0; i < 4; i++) { item = new TreeItem(item, SWT.NONE); item.setText("child " + i); } tree.addListener(SWT.PaintItem, new Listener() { public void handleEvent(Event event) { event.gc.drawFocus(event.x, event.y, event.width, event.height); System.out.println("x=" + event.x); } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
53f86c8
["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
"2006-03-29T18:57:05Z"
"2006-03-28T21:06:40Z"
133,756
Bug 133756 Regression in SWT.Label
If a label lives in a composite that has a background image, and the label has the same background image, then the label has always been painted with "transparent" backgroun, so that the parent's background shines through. This is not the case in I20060322_1335 (which our project uses as target). Instead, the label maps the background's (0,0) to its own (0,0). This is bad. Furthermore, if you change the label text the old text is not cleaned first and you get a complete mess. Please find attached a zipped MFP (minimal faulty program) and screen dumps using the M5A and I20060322_1335 builds as targets.
resolved fixed
8dbb340
["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
"2006-03-29T18:19:19Z"
"2006-03-28T23:53:20Z"
105,245
Bug 105245 Tree horizontal scroll increment too small.
SWT 3.1 win32 swt-N20050721 Horizontal scrolling (click the horizontal scrollbar arrow, or the bar itself) is a much smaller increment on Trees than it is on Tables. This is different from the old TableTree implementation which had the same increment as a Table. public static void main(String[] a) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout(new FillLayout()); Table table = new Table(shell, SWT.H_SCROLL); table.setHeaderVisible(true); table.setLinesVisible(true); for (int i = 0; i < 10; i++) { new TableColumn(table, SWT.NONE).setWidth(100); } Tree tree = new Tree(shell, SWT.H_SCROLL); tree.setHeaderVisible(true); tree.setLinesVisible(true); for (int i = 0; i < 10; i++) { new TreeColumn(tree, SWT.NONE).setWidth(100); } shell.setBounds(50, 50, 600, 200); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }
resolved fixed
24ebeb9
["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
"2006-03-29T15:25:39Z"
"2005-07-26T23:20:00Z"
128,451
Bug 128451 likely error in ControlEditor
3.2M5 The eclipse compiler with additional warnings turned on pointed out that the "editor == null" check in ControlEditor line 247 is not needed because it can never fail. However it looks like this was possibly meant to be "this.editor == null", since it is preceded by resize() which can fire a Resize callback and thereby gives the client the opportunity to set a new editor or null editor.
resolved fixed
b429e9b
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/ControlEditor.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-29T13:48:43Z"
"2006-02-17T18:13:20Z"
132,912
Bug 132912 transparent images with advanced (cairo) graphics fail sometimes
Loading a png image with transparency using: new Image(display, (new File("myImageName.png)).toUrl().openStream()); and drawing it on a GC that is using cairo: setAdvanced(true), displays the transparent pixel color with an alpha of what looks like 50%. If the same image is loaded using a String like: new Image(display, "myImageName.png") it is displayed correctly. I will attach the actual image I'm using to test. I'm using swt.gtk.linux.x86_3.2.0.v3224 And I'll attach a screen shot when the follow is run: Image imageURL = new Image(display, (new File("myImageName.png)).toUrl().openStream()); Image imageString = new Image(display, "myImageName.png"); gc.setAdvanced(true); gc.setBackground(new org.eclipse.swt.graphics.Color(display, 0,255,0)); gc.fillRectangle(0,0,100,100); gc.drawImage (imageURL, origin.x, origin.y); gc.drawImage (imageString, origin.x + 30, origin.y);
resolved fixed
9509222
["bundles/org.eclipse.swt/Eclipse", "SWT/gtk/org/eclipse/swt/graphics/Image.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-28T20:02:58Z"
"2006-03-22T23:26:40Z"
124,415
Bug 124415 Browser causes blank white box on OSX
In an SWT app that embeds a Browser widget within a CTabFolder in a ViewForm which is at the bottom of a StackLayout (other composites sit atop it, with tables and such), the Browser causes a large blank white box on top of the app. When the browser is disabled, the white box does not appear on top of the app. Since I don't have a mac I can't produce the problem, but every mac user reports this problem with the SWT app (which doesn't have this problem on gtk or win32), so I'm hoping this can be easily replicated somehow on osx (with a Browser created in a StackLayout with other things on top of it I presume). SWT 3.2M4 is in use.
resolved fixed
c2374aa
["bundles/org.eclipse.swt/Eclipse", "SWT", "Browser/carbon/org/eclipse/swt/browser/Browser.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-23T21:52:18Z"
"2006-01-19T00:20:00Z"
127,821
Bug 127821 ControlExample crash when setting background image on SEPARATOR Label
Feb. 14th 8:00am build - run the Control Example, go to the Label tab - check the Background Image checkbox - check the SWT.SEPARATOR checkbox -> this crashes the control example with the following: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4A3AA7 Function=XtWidgetToApplicationContext+0x16 Library=/usr/X11R6/lib/libXt.so.6 Current Java thread: at org.eclipse.swt.internal.motif.OS._XtTranslateCoords(Native Method) at org.eclipse.swt.internal.motif.OS.XtTranslateCoords(OS.java:4205) at org.eclipse.swt.widgets.Label.redrawWidget(Label.java:412) at org.eclipse.swt.widgets.Control.setBounds(Control.java:1967) at org.eclipse.swt.widgets.Label.setBounds(Label.java:525) at org.eclipse.swt.widgets.Control.setBounds(Control.java:2033) at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:682) at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:186) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1186) at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:964) at org.eclipse.swt.widgets.Control.setBounds(Control.java:2033) at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:682) at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:186) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1186) at org.eclipse.swt.widgets.Composite.layout(Composite.java:686) at org.eclipse.swt.examples.controlexample.Tab.setExampleWidgetSize(Tab.java:1122) at org.eclipse.swt.examples.controlexample.Tab.setExampleWidgetState(Tab.java:1137) at org.eclipse.swt.examples.controlexample.AlignableTab.setExampleWidgetState(AlignableTab.java:81) at org.eclipse.swt.examples.controlexample.LabelTab.setExampleWidgetState(LabelTab.java:177) at org.eclipse.swt.examples.controlexample.Tab.recreateExampleWidgets(Tab.java:1017) at org.eclipse.swt.examples.controlexample.Tab$1.widgetSelected(Tab.java:147) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:775) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3059) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2748) at org.eclipse.swt.examples.controlexample.ControlExample.main(ControlExample.java:202) Dynamic libraries: 003dc000-003ee000 r-xp 00000000 03:02 670249 /lib/libnsl-2.3.4.so 003ee000-003f0000 rwxp 00011000 03:02 670249 /lib/libnsl-2.3.4.so 00451000-00455000 r-xp 00000000 03:02 1299185 /usr/X11R6/lib/libXtst.so.6.1 00455000-00456000 rwxp 00003000 03:02 1299185 /usr/X11R6/lib/libXtst.so.6.1 0048b000-004d8000 r-xp 00000000 03:02 1295143 /usr/X11R6/lib/libXt.so.6.0 004d8000-004dc000 rwxp 0004c000 03:02 1295143 /usr/X11R6/lib/libXt.so.6.0 005b2000-005c7000 r-xp 00000000 03:02 670237 /lib/ld-2.3.4.so 005c7000-005c8000 r-xp 00014000 03:02 670237 /lib/ld-2.3.4.so 005c8000-005c9000 rwxp 00015000 03:02 670237 /lib/ld-2.3.4.so 005cf000-006f2000 r-xp 00000000 03:02 670238 /lib/tls/libc-2.3.4.so 006f2000-006f3000 r-xp 00123000 03:02 670238 /lib/tls/libc-2.3.4.so 006f3000-006f6000 rwxp 00124000 03:02 670238 /lib/tls/libc-2.3.4.so 006fa000-0071b000 r-xp 00000000 03:02 670239 /lib/tls/libm-2.3.4.so 0071b000-0071d000 rwxp 00020000 03:02 670239 /lib/tls/libm-2.3.4.so 0071f000-00721000 r-xp 00000000 03:02 670240 /lib/libdl-2.3.4.so 00721000-00723000 rwxp 00001000 03:02 670240 /lib/libdl-2.3.4.so 00737000-007fa000 r-xp 00000000 03:02 244883 /usr/X11R6/lib/libX11.so.6.2 007fa000-007fe000 rwxp 000c3000 03:02 244883 /usr/X11R6/lib/libX11.so.6.2 00800000-0080d000 r-xp 00000000 03:02 244884 /usr/X11R6/lib/libXext.so.6.4 0080d000-0080e000 rwxp 0000c000 03:02 244884 /usr/X11R6/lib/libXext.so.6.4 00810000-0081e000 r-xp 00000000 03:02 670241 /lib/tls/libpthread-2.3.4.so 0081e000-00820000 rwxp 0000d000 03:02 670241 /lib/tls/libpthread-2.3.4.so 00824000-00839000 r-xp 00000000 03:02 244890 /usr/X11R6/lib/libICE.so.6.3 00839000-0083a000 rwxp 00014000 03:02 244890 /usr/X11R6/lib/libICE.so.6.3 0083e000-00845000 r-xp 00000000 03:02 1294272 /usr/X11R6/lib/libSM.so.6.0 00845000-00846000 rwxp 00007000 03:02 1294272 /usr/X11R6/lib/libSM.so.6.0 00923000-0092a000 r-xp 00000000 03:02 244885 /usr/X11R6/lib/libXrender.so.1.2.2 0092a000-0092b000 rwxp 00006000 03:02 244885 /usr/X11R6/lib/libXrender.so.1.2.2 0092d000-00935000 r-xp 00000000 03:02 244887 /usr/X11R6/lib/libXcursor.so.1.0.2 00935000-00936000 rwxp 00007000 03:02 244887 /usr/X11R6/lib/libXcursor.so.1.0.2 08048000-0804e000 r-xp 00000000 03:02 1845400 /opt/jre/bin/java 0804e000-0804f000 rwxp 00005000 03:02 1845400 /opt/jre/bin/java ab84e000-ab868000 r-xp 00000000 03:02 1388080 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 ab868000-ab86a000 rwxp 0001a000 03:02 1388080 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 ab86a000-ab871000 r-xp 00000000 03:02 1298526 /usr/X11R6/lib/libXp.so.6.2 ab871000-ab872000 rwxp 00006000 03:02 1298526 /usr/X11R6/lib/libXp.so.6.2 ab88c000-ab88e000 r-xp 00000000 03:02 1388081 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 ab88e000-ab88f000 rwxp 00001000 03:02 1388081 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 ab88f000-aba13000 r-xp 00000000 03:02 2174387 /opt/32M4/motif/eclipse/libXm.so.2 aba13000-aba26000 rwxp 00183000 03:02 2174387 /opt/32M4/motif/eclipse/libXm.so.2 aba27000-aba71000 r-xp 00000000 03:02 1159027 /opt/32M4/motif/eclipse/workspace/org.eclipse.swt.motif.linux.x86/libswt-motif-3224.so aba71000-aba74000 rwxp 0004a000 03:02 1159027 /opt/32M4/motif/eclipse/workspace/org.eclipse.swt.motif.linux.x86/libswt-motif-3224.so aba75000-abb14000 r-xs 00000000 03:02 1944587 /opt/jre/lib/ext/localedata.jar abb14000-abb31000 r-xs 00000000 03:02 1944585 /opt/jre/lib/ext/sunjce_provider.jar abd35000-abd3e000 r-xp 00000000 03:02 667858 /lib/libnss_files-2.3.4.so abd3e000-abd40000 rwxp 00008000 03:02 667858 /lib/libnss_files-2.3.4.so abd4c000-abd4f000 r-xs 00000000 03:02 1944586 /opt/jre/lib/ext/dnsns.jar abd4f000-abd5d000 r-xs 00000000 03:02 1944588 /opt/jre/lib/ext/ldapsec.jar b6014000-b62d0000 r-xs 00000000 03:02 1845444 /opt/jre/lib/charsets.jar b62d0000-b62e3000 r-xs 00000000 03:02 1845427 /opt/jre/lib/jce.jar b62e3000-b6354000 r-xs 00000000 03:02 1845428 /opt/jre/lib/jsse.jar b6354000-b636b000 r-xs 00000000 03:02 1845426 /opt/jre/lib/sunrsasign.jar b63ae000-b7a7d000 r-xs 00000000 03:02 1845446 /opt/jre/lib/rt.jar b7a7d000-b7a92000 r-xp 00000000 03:02 1861027 /opt/jre/lib/i386/libzip.so b7a92000-b7a94000 rwxp 00014000 03:02 1861027 /opt/jre/lib/i386/libzip.so b7a94000-b7ab5000 r-xp 00000000 03:02 1861025 /opt/jre/lib/i386/libjava.so b7ab5000-b7ab7000 rwxp 00020000 03:02 1861025 /opt/jre/lib/i386/libjava.so b7ab7000-b7ac7000 r-xp 00000000 03:02 1861024 /opt/jre/lib/i386/libverify.so b7ac7000-b7ac9000 rwxp 0000f000 03:02 1861024 /opt/jre/lib/i386/libverify.so b7ac9000-b7ad2000 r-xp 00000000 03:02 1878869 /opt/jre/lib/i386/native_threads/libhpi.so b7ad2000-b7ad3000 rwxp 00008000 03:02 1878869 /opt/jre/lib/i386/native_threads/libhpi.so b7ad4000-b7dec000 r-xp 00000000 03:02 1890923 /opt/jre/lib/i386/client/libjvm.so b7dec000-b7fd0000 rwxp 00317000 03:02 1890923 /opt/jre/lib/i386/client/libjvm.so Local Time = Tue Feb 14 13:29:04 2006 Elapsed Time = 22 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode) # # An error report file has been saved as hs_err_pid5798.log. # Please refer to the file for further information. #
resolved fixed
b4c8aae
["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
"2006-03-23T20:38:26Z"
"2006-02-14T18:00:00Z"
116,749
Bug 116749 Some widgets don't match default background inside Group
null
resolved fixed
66abee3
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Control.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Group.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Shell.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/TabFolder.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-23T17:42:13Z"
"2005-11-16T22:26:40Z"
94,691
Bug 94691 Code Style Page crops "Configure Project Specific" message
I20050509-2010 I will attach a screenshot. Also, the link doesn't honour the dialog font.
resolved fixed
792e19e
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/TextLayout.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-22T23:33:11Z"
"2005-05-11T14:00:00Z"
132,874
Bug 132874 List control does not allow 0th item to be deselected.
List.deselect says: public void deselect (int index) { checkWidget(); if (0 < index && index < itemCount) { int [] ids = new int [] {index + 1}; deselect (ids, ids.length); } } It should be: public void deselect (int index) { checkWidget(); if (0 <= index && index < itemCount) { int [] ids = new int [] {index + 1}; deselect (ids, ids.length); } } I had to work around the problem by deselecting everything, then reselecting everything but the 0th item.
resolved fixed
326be7b
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/List.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-22T22:32:33Z"
"2006-03-22T17:53:20Z"
115,234
Bug 115234 [DnD] [WorkbenchParts] Resizing tiled editors incorrectly sizes editor parts at start of drag
Steps to reproduce: 1. open 2 or more editors and tile them vertically 2. start dragging the separator between them to resize them As you start the resize the top editor collapses to its minimum vertical size. You can keep dragging to resize the editors but the mouse is now in the wrong place. This also happens when resizing horizontally, the editor on the left collapses to its minimum horizontal size. Once you've finished the drag, you can no longer pick up the separator between the editors and resize them again.
resolved fixed
c69b8ae
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Sash.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-22T22:29:03Z"
"2005-11-06T12:26:40Z"
120,241
Bug 120241 MouseListener on Sash does not receive mouseUp events
It looks like mouseUp events are not sent by a Sash on OS X. This prevents the expand/collapse buttons on VE's custom Sash from working as it does on other platforms. See the attached test program.
verified fixed
635b5f0
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Sash.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-22T21:28:57Z"
"2005-12-11T00:13:20Z"
120,051
Bug 120051 Some font names on OS X have null (\0) characters between every character
The names of some fonts returned by the call Display.getFontList(null, true) have a null (\0) character between every character. Most fonts are correct, and I cannot find any pattern in the incorrect fonts. The problem fonts are standard ones installed on OS X 10.4.3.
verified fixed
9796170
["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/graphics/Device.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/graphics/Font.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/FontDialog.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-22T20:47:17Z"
"2005-12-09T03:46:40Z"
113,019
Bug 113019 Browser.setText() sometimes appends dust characters after html
In DocumentComplete event handling block, Browser allocates memory with size of UTF8BOM and html, but does not care for stream size. GlobalAlloc rounds its size, so allocated memory size is different from required size. Without GMEM_ZEROINIT, memory will be rough. IStream eats them unrequired garbage. It should be allocated with GMEM_ZEROINIT. Or stream size should be set by IStream.SetSize (this is better but not implemented now).
resolved fixed
51c921b
["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
"2006-03-20T17:39:41Z"
"2005-10-19T00:00:00Z"
127,373
Bug 127373 Hyperlinks covered by a table widget receives a linkActivated event when double click on the table
A hyperlink widget is getting activated wrongly when one double click on a table (SelectionDialog) wich covers the hyperlink. This behaviour can be easily reproduced at the plugin.xml editor page. Choose the "Browse..." button and move the upcomming dialog over a hyperlink widget and double click onto an element within the dialogs table. The underlying hyperlink will get activated.
resolved fixed
75a7307
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Link.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-17T22:09:13Z"
"2006-02-11T15:00:00Z"
128,750
Bug 128750 Error occurs when delete text in StyledText
null
resolved fixed
f6d78f0
["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
"2006-03-17T20:24:10Z"
"2006-02-21T05:33:20Z"
131,906
Bug 131906 StackOverflowError in StyledText
I20060314-1200 I had to kill the Workbench because of this. java.lang.StackOverflowError at org.eclipse.jface.text.projection.ProjectionMapping.getImageLength(ProjectionMapping.java:571) at org.eclipse.jface.text.projection.ProjectionTextStore.getLength(ProjectionTextStore.java:121) at org.eclipse.jface.text.AbstractDocument.getLength(AbstractDocument.java:800) at org.eclipse.jface.text.AbstractDocument.computeIndexInCategory(AbstractDocument.java:495) at org.eclipse.jface.text.projection.ProjectionMapping.findSegmentIndex(ProjectionMapping.java:107) at org.eclipse.jface.text.projection.ProjectionMapping.toExactOriginRegions(ProjectionMapping.java:537) at org.eclipse.jface.text.projection.ProjectionTextStore.get(ProjectionTextStore.java:144) at org.eclipse.jface.text.AbstractDocument.get(AbstractDocument.java:997) at org.eclipse.jface.text.DefaultDocumentAdapter.doGetLine(DefaultDocumentAdapter.java:145) at org.eclipse.jface.text.DefaultDocumentAdapter.getLine(DefaultDocumentAdapter.java:168) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:727) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:673) at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:4728) at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:6612) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:892) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:673) at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:4728) at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:6612) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:892) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:673) at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:4728) at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:6612) ...
resolved fixed
b5d3c82
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-16T21:57:25Z"
"2006-03-15T10:53:20Z"
131,727
Bug 131727 SWT_AWT frames in task bar
On switching between windows there are SWT panels disposed with embedded AWT (with SWT_AWT.newFrame). On this actions I got empty windows appearing in taskbar (windows). It could be acceptable for 1 but when I see appearing 5 in a time and disappearing, it doesn't look nice. Perhaps, instead of the "invokeLater" on disposing frame, should be used some kind of "invokeAndWait"
resolved fixed
5b3222d
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Composite.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-16T21:15:00Z"
"2006-03-14T15:26:40Z"
132,089
Bug 132089 Tree: Text corruption in cells after moving column 0 and resizing column
SWT CVS Win32 This problem only occurs if TreeColumn 0 is moved and resized. Setting it as the sort column doesn't seem to matter, but it highlights the problem in this snippet. 1. Move column 0 (drag and drop). 2. Resize that same selected column thinner and then wider. The text in all cells in that column becomes corrupted. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final Tree tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); for (int i = 0; i < columns; i++) { TreeColumn tc = new TreeColumn(tree, SWT.LEFT); tc.setWidth(75); tc.setMoveable(true); } tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); tree.setItemCount(10); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; String text = String.valueOf(event.index) + "MMMMMMMMMMMMMMMMMMMMMMMM"; for (int i = 0; i <= columns; i++) { item.setText(i, text); } } }); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
0c70daa
["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
"2006-03-16T16:18:05Z"
"2006-03-16T06:20:00Z"
131,724
Bug 131724 adding PaintItemListener to Table causes NPE
- run the snippet below and you'll get the NPE shown at the bottom public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,200,250); final Table table = new Table(shell, SWT.CHECK); table.setBounds(10,10,150,140); new TableItem(table, SWT.NONE).setText("item one"); table.addListener(SWT.PaintItem, new Listener() { public void handleEvent(Event event) { } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } Exception in thread "main" java.lang.NullPointerException at org.eclipse.swt.widgets.Table.rendererRenderProc(Table.java:2397) at org.eclipse.swt.widgets.Display.rendererRenderProc(Display.java:1221) at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5233) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1128) at org.eclipse.swt.internal.gtk.OS._gdk_window_process_updates(Native Method) at org.eclipse.swt.internal.gtk.OS.gdk_window_process_updates(OS.java:3379) at org.eclipse.swt.widgets.Control.update(Control.java:3667) at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1441) at org.eclipse.swt.widgets.Shell.open(Shell.java:988) at win32.Main.main(Main.java:25
resolved fixed
95a4750
["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
"2006-03-15T16:53:18Z"
"2006-03-14T15:26:40Z"
129,999
Bug 129999 EraseItem event's gc does not have the item's colours or font set
- run the snippet below - on all other platforms the snippet does not spew any "...didn't match..." messages public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setBounds(10,10,200,200); final Table table = new Table(shell, SWT.NONE); table.setBounds(10,10,150,150); new TableColumn(table, SWT.NONE).setWidth(100); FontData data = table.getFont().getFontData()[0]; data.setHeight(data.getHeight() - 2); final Font otherFont = new Font(display, data); final Color[] colours = new Color[] { display.getSystemColor(SWT.COLOR_BLUE), display.getSystemColor(SWT.COLOR_CYAN), display.getSystemColor(SWT.COLOR_GRAY), }; for (int i = 0; i < 2; i++) { TableItem item = new TableItem(table, SWT.NONE); item.setText("item " + i); item.setForeground(colours[i]); item.setBackground(colours[i+1]); item.setFont(otherFont); } table.addListener(SWT.EraseItem, new Listener() { public void handleEvent(Event event) { int index = table.indexOf((TableItem)event.item); if (!event.gc.getFont().equals(otherFont)) { System.out.println("the font didn't match for item " + index); } /* custom colurs do not apply if item is selected because selection colours are used */ if (table.isSelected(index)) return; if (!event.gc.getForeground().equals(colours[index])) { System.out.println("the foreground didn't match for item " + index); } if (!event.gc.getBackground().equals(colours[index + 1])) { System.out.println("the background didn't match for item " + index); } } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } otherFont.dispose(); display.dispose(); }
resolved fixed
44bd6ed
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Table.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/TableItem.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/TreeItem.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-15T16:25:49Z"
"2006-03-01T19:06:40Z"
127,827
Bug 127827 implement background image in Table and Tree
null
resolved fixed
c2e5c64
["bundles/org.eclipse.swt/Eclipse", "SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java", "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/Tree.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
"2006-03-15T15:25:08Z"
"2006-02-14T18:00:00Z"
131,805
Bug 131805 Tree: Sorted background column colour does not move with movable columns
SWT Win32 CVS Drag a Tree column header to a different location. The sorted background colour does not move with the column. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final Tree tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); for (int i = 0; i < columns; i++) { TreeColumn tc = new TreeColumn(tree, SWT.LEFT); tc.setWidth(75); tc.setMoveable(true); } tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); tree.setItemCount(10); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; String text = String.valueOf(event.index); for (int i = 0; i <= columns; i++) { item.setText(i, text); } } }); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
1c53659
["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
"2006-03-14T23:10:26Z"
"2006-03-14T21:00:00Z"
131,739
Bug 131739 adding EraseItem listener to Tree causes major drawing problem
- run the snippet below - an image with the Tree that this shows is attached public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,200,200); final Tree tree = new Tree(shell, SWT.NONE); tree.setBounds(10,10,150,150); new TreeItem(tree, SWT.NONE).setText("item 0"); new TreeItem(tree, SWT.NONE).setText("item 1"); tree.addListener(SWT.EraseItem, new Listener() { public void handleEvent(Event event) { } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
249534e
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/TreeColumn.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-14T19:56:16Z"
"2006-03-14T18:13:20Z"
130,605
Bug 130605 CBanner needs to use both the left and right sides to compute its height
The CBanner currently calculates its height based on the height of the left hand side. The new trim work needs it to be capable of checking both sides and basing its height on the max of the two areas. (Soory for the delay in opening this; I guess I coulda/shoulda opened it right after my meeting with Veronika)
resolved fixed
f66a4a7
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CBanner.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/CBannerLayout.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-14T19:00:08Z"
"2006-03-06T18:33:20Z"
128,400
Bug 128400 class ST misuses javadoc comments as category headers
I20060216-2000 Class org.eclipse.swt.custom.ST misuses javadoc comments as category headers. The generated javadoc looks strange, since only a few apparently random constants have a javadoc. Either each constant should get its own javadoc, or the javadocs should be converted back to non-javadoc comments.
resolved fixed
812ce2c
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/ST.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-14T17:49:09Z"
"2006-02-17T12:40:00Z"
131,654
Bug 131654 Decorations.computeTrim can cause program to hang
SWT-win32, v3228 - Run the snippet below - The while loop in Decorations.computeTrim never terminates, causing the test case to hang --- import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; public class ShellHangTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setMenuBar(new Menu(shell, SWT.BAR)); shell.setVisible(true); shell.setMinimized(true); shell.setVisible(false); System.out.println("Before shell.computeTrim"); shell.computeTrim(0, 0, 100, 100); System.out.println("After shell.computeTrim"); display.dispose(); } }
resolved fixed
a088931
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Decorations.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-14T16:42:41Z"
"2006-03-14T04:20:00Z"
131,393
Bug 131393 adding TableColumn at index 0 makes cell disappear
- run the snippet below - press the button, which creates a TableColumn at index 0 with width 60 - note that when this column is created that item 0's column 0 text disappears public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,300,300); final Table table = new Table(shell, SWT.NONE); table.setBounds(10,10,200,200); table.setLinesVisible(true); table.setHeaderVisible(true); for (int i = 0; i < 2; i++) { TableColumn column = new TableColumn(table, SWT.NONE); column.setWidth(60); column.setText("col" + i); } new TableItem(table, SWT.NONE).setText(new String[] {"item0col0", "item0col1"}); shell.open(); Button button = new Button(shell, SWT.PUSH); button.setBounds(10,230,70,30); button.setText("Push"); button.addListener(SWT.Selection, new Listener() { public void handleEvent(Event event) { new TableColumn(table, SWT.NONE, 0).setWidth(60); // <-- } }); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
f5e57c3
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/TableItem.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/TreeItem.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-14T16:27:58Z"
"2006-03-10T19:46:40Z"
128,719
Bug 128719 [StyledText] A lot of cheese displaying Japaneese and Chinese
I am not sure wether this is a known issue, but the new StyledText seems to have some problems rendering Japanese and Chinese. I can reproduce with M4 and M5. See the attached images. Ben
resolved fixed
b6c6479
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-14T16:20:46Z"
"2006-02-20T21:13:20Z"
131,625
Bug 131625 Tree adds useless vertical scrollbar
SWT CVS win32 The tree adds a vertical scrollbar that is useless, the table does not. I'm also not sure why the clientArea() of the tree is negative(0,-20...). TREE CLIENT AREA: Rectangle {0, -20, 392, 562} BOUNDS: Rectangle {0, 0, 396, 566} TABLE CLIENT AREA: Rectangle {0, 0, 392, 562} BOUNDS: Rectangle {396, 0, 396, 566} public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final int itemCount = 15; final Tree tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); tree.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TreeColumn(tree, SWT.LEFT).setWidth(75); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; int index = event.index; TreeItem parentItem = item.getParentItem(); String text = null; if (parentItem == null) { text = "node " + tree.indexOf(item); } else { text = parentItem.getText() + " - " + parentItem.indexOf(item); } for (int i = 0; i < columns; i++) { item.setText(i, text); } if (index % 2 == 0) { Color c = display.getSystemColor(SWT.COLOR_DARK_YELLOW); item.setBackground(c); } item.setItemCount(itemCount); } }); final Table table = new Table(shell, SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); table.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TableColumn(table, SWT.LEFT).setWidth(75); table.setLinesVisible(true); table.setHeaderVisible(true); table.setSortDirection(SWT.DOWN); table.setSortColumn(table.getColumn(0)); table.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TableItem item = (TableItem) event.item; int index = event.index; String text = null; text = "node " + index; for (int i = 0; i < columns; i++) { item.setText(i, text); } if (index % 2 == 0) { Color c = display.getSystemColor(SWT.COLOR_DARK_YELLOW); item.setBackground(c); } } }); final int timerDelay = 1250; final Runnable r = new Runnable() { public void run() { if (c++ >= columns - 1) c = 0; int dir = table.getSortDirection() == SWT.DOWN ? SWT.UP : SWT.DOWN; tree.setItemCount(itemCount); table.setItemCount(itemCount); table.setSortDirection(dir); table.setSortColumn(table.getColumn(c)); tree.setSortColumn(tree.getColumn(c)); tree.setSortDirection(dir); display.timerExec(timerDelay, this); } }; display.timerExec(timerDelay, r); shell.setSize(800, 600); shell.open(); System.err.println("TREE CLIENT AREA: " + tree.getClientArea() + "\tBOUNDS: " + tree.getBounds()); System.err.println("TABLE CLIENT AREA: " + table.getClientArea() + "\tBOUNDS: " + table.getBounds()); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
8a56e0c
["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
"2006-03-14T02:40:20Z"
"2006-03-14T01:33:20Z"
131,623
Bug 131623 Tree selected column bgcolour does not draw on empty rows when setting a tree background colour
SWT Win32 CVS Without the call to tree.setBackground(), the selected column background color fills in all empty rows at the bottom of the tree. With it, the rows are not filled in with the select column background colour. The table widget fills it in properly. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final int itemCount = 15; final Tree tree = new Tree(shell, SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); tree.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TreeColumn(tree, SWT.LEFT).setWidth(75); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; int index = event.index; TreeItem parentItem = item.getParentItem(); String text = null; if (parentItem == null) { text = "node " + tree.indexOf(item); } else { text = parentItem.getText() + " - " + parentItem.indexOf(item); } for (int i = 0; i < columns; i++) { item.setText(i, text); } if (index % 2 == 0) { Color c = display.getSystemColor(SWT.COLOR_DARK_YELLOW); item.setBackground(c); } item.setItemCount(itemCount); } }); final Table table = new Table(shell, SWT.H_SCROLL | SWT.V_SCROLL | SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); table.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TableColumn(table, SWT.LEFT).setWidth(75); table.setLinesVisible(true); table.setHeaderVisible(true); table.setSortDirection(SWT.DOWN); table.setSortColumn(table.getColumn(0)); table.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TableItem item = (TableItem) event.item; int index = event.index; String text = null; text = "node " + index; for (int i = 0; i < columns; i++) { item.setText(i, text); } if (index % 2 == 0) { Color c = display.getSystemColor(SWT.COLOR_DARK_YELLOW); item.setBackground(c); } } }); final int timerDelay = 1250; final Runnable r = new Runnable() { public void run() { if (c++ >= columns - 1) c = 0; int dir = table.getSortDirection() == SWT.DOWN ? SWT.UP : SWT.DOWN; tree.setItemCount(itemCount); table.setItemCount(itemCount); table.setSortDirection(dir); table.setSortColumn(table.getColumn(c)); tree.setSortColumn(tree.getColumn(c)); tree.setSortDirection(dir); display.timerExec(timerDelay, this); } }; display.timerExec(timerDelay, r); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
d9e0480
["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
"2006-03-14T02:23:17Z"
"2006-03-14T01:33:20Z"
131,627
Bug 131627 Tree: Empty tree does not show selected column background colour, unlike Table
SWT win32 CVS The empty tree has a selected column, but even when no background colour is set, the column is not drawn with the selected column. The table does have the selected column colour. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final Tree tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); // tree.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TreeColumn(tree, SWT.LEFT).setWidth(75); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); final Table table = new Table(shell, SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); // table.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TableColumn(table, SWT.LEFT).setWidth(75); table.setLinesVisible(true); table.setHeaderVisible(true); table.setSortDirection(SWT.DOWN); table.setSortColumn(table.getColumn(0)); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
667736f
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/TreeColumn.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-14T02:09:22Z"
"2006-03-14T01:33:20Z"
83,133
Bug 83133 Expose causes dialog to move behind shell.
1) Switch to "CVS Repositories" perspective 2) Right click in CVS Repositories view and select New -> Repository Location... 3) When the dialog opens, activate Expose (usually F9) 4) Now click on the main window (i.e. not on the dialog) Notice that the dialog window moves behind the main window, although the main window does not become active.
resolved fixed
9e19a2c
["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/Shell.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
"2006-03-13T22:13:47Z"
"2005-01-18T20:26:40Z"
130,756
Bug 130756 Tree does not use the OSs selected column background color
The Table sets a selected column background color on Win32 using the .manifest file. (Hopefully a configurable option in the future) An option to use this same color on a Tree's selected columns is not available, nor is this color available from Display.getSystemColor() so that it could be emulated by the app for consistency between Trees and Tables.
resolved fixed
dab9408
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/TreeColumn.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-13T21:15:39Z"
"2006-03-07T16:46:40Z"
125,656
Bug 125656 Eclipse freezes dismissing popup windows (Quick Fix, Spell Check, etc)
I'm a CS professor and have been programming and teaching Java since it came out. But I've always used BBEDIT+ javac for my development on MAC & UNIX. Now I'm learning about Eclipse with simple examples like "Hello world" but I find often that Eclipse stops responding and I have to use the FINDER "FORCE QUIT". I'm using Eclipse 3.1 and Mac OSX 10.4.4. What more can I say. Mainly it occurs when I'm editing source code. Today I've been doing JUNIT Tutorials. So I download examples off the Internet and do cut and paste of code from the browser window. Wish I could be more helpful but my code examples are quite simple and generally they work but then the application stops responding.... and it's the only application of the many I use that does this. So I'll go back to BBEDIT and javac.
resolved fixed
58de877
["bundles/org.eclipse.swt/Eclipse", "SWT/carbon/org/eclipse/swt/widgets/Shell.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-13T19:49:34Z"
"2006-01-30T00:13:20Z"
131,585
Bug 131585 notifed is not a word
This is really minor, but I frequently see this phrase in SWT doc: "Adds the listener to the collection of listeners who will be notifed... " Where "notifed" should be spelled "notified". Trivial, but a quick search found 45 references to the non-word "notifed" in the SWT javadoc.
resolved fixed
0d28468
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Display.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
"2006-03-13T19:37:00Z"
"2006-03-13T20:00:00Z"
129,526
Bug 129526 Proposal for new snippet : Non-rectangular Shell using transparent images
null
resolved fixed
aee5bcc
["examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet219.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-13T16:10:10Z"
"2006-02-27T08:46:40Z"
123,188
Bug 123188 Snippet 212 has error, embedded image overlapped with text
null
resolved fixed
333eb2d
["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
"2006-03-10T22:45:26Z"
"2006-01-10T02:26:40Z"
131,160
Bug 131160 background color problems in tree with columns
I20060309-1000 The background color in tree columns gets corrupted when a window is moved to the background and then brought back to the foreground. The background color is extended to the "non-existant n+1" column in the tree (i.e. if a tree has 2 columns, the 3rd column takes on the background color of the 2nd column). Example code: import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.ShellAdapter; import org.eclipse.swt.events.ShellEvent; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.graphics.RGB; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.TreeColumn; import org.eclipse.swt.widgets.TreeItem; public class TreeExample implements Listener { private static boolean done = false; int counter = 0; public Color red; public static void main(String[] args) { TreeExample example = new TreeExample(); Shell shell = example.openShell(); shell.addShellListener(new ShellAdapter() { public void shellClosed(ShellEvent e) { done = true; super.shellClosed(e); } }); example.createTree(shell); example.waitForClose(); } public Shell openShell() { Shell shell = new Shell(Display.getCurrent(), SWT.CLOSE | SWT.RESIZE | SWT.TITLE); shell.open(); return shell; } public void waitForClose() { while (!done) { Display.getCurrent().readAndDispatch(); } } public void createTree(Shell shell) { GridLayout layout = new GridLayout(1, true); shell.setLayout(layout); Button button = new Button(shell, SWT.PUSH); button.setText("Next"); final Tree tree = new Tree(shell, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER | SWT.VIRTUAL); GridData gd = new GridData(GridData.FILL_BOTH); tree.setLayoutData(gd); tree.addListener(SWT.SetData, this); TreeColumn column = new TreeColumn(tree, SWT.NONE); column.setText("ONE"); column = new TreeColumn(tree, SWT.NONE); column.setText("TWO"); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setItemCount(10); red = new Color(tree.getDisplay(), new RGB(255, 0, 0)); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { TreeItem[] items = tree.getItems(); if (counter > items.length) { counter = 0; } for (int i = 0; i < items.length; i++) { TreeItem item = items[i]; if (counter == i) { for (int j = 0; j < tree.getColumnCount(); j++) { item.setBackground(j, red); } } else { for (int j = 0; j < tree.getColumnCount(); j++) { item.setBackground(j, null); } } } counter++; } }); } /* (non-Javadoc) * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ public void handleEvent(Event event) { final int index = event.index; final TreeItem item = (TreeItem) event.item; Integer integer = new Integer(index); item.setData(integer); item.getDisplay().asyncExec(new Runnable() { public void run() { item.setText(new String[]{Integer.toHexString(index + 34), Integer.toHexString(index + 34)}); item.setItemCount(1); } }); } }
resolved fixed
70797a0
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Tree.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/TreeItem.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-10T22:35:32Z"
"2006-03-09T18:46:40Z"
92,548
Bug 92548 GB18030: Part of Uigur characters(4-bytes) cause whole line sinkage to 1/3.
OS: SLES9 with SP1 Language: Simplified Chinese Build level: 20050418 JDK version: J2RE 1.4.2 IBM build cxia32142sr1a-20050209 (JIT enabled: jitc) Summary: GB18030: Part of Uigur characters(4-bytes) cause whole line sinkage to 1/3. Steps to recreate problem: 1. Create a simple project. 2. Create a file. 3. Enter [unicode (Uigur set) 06B0 and 06BC] in the editor. --> Problem: The Uigur characters can't be displayed correctly. Expected Result: Uigur characters(4-bytes) could correctly displayed with other characters. Remark: 1. The normal(without Uigur char) and incorrect screen capture is attached. (normal_snapshot.JPG & incorrect_snapshot.JPG) 2. No such problem in Windows & RedHat platform. 3. Other 4-bytes and DBCS character haven't found this problem. 4. Uigur character range. CharSet GB18030 Range Unicode -------------------------------------------------------- Uigur 0x81318132-0x81319934 0x060C-0x06FE 5. Before executing above steps, all the fonts have been set to GB18030 character set from menu Windows -> Preference -> General -> Appearance -> Colors & Fonts.
resolved fixed
f125628
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-10T20:12:22Z"
"2005-04-25T03:33:20Z"
108,996
Bug 108996 Support gradient backgrounds for StyledText widgets
The StyledText widget should support gradient backgrounds.
resolved fixed
3c8cfdb
["bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledText.java", "bundles/org.eclipse.swt/Eclipse", "SWT", "Custom", "Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java", "bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/Canvas.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-09T22:51:37Z"
"2005-09-07T21:53:20Z"
123,384
Bug 123384 Embedded control in StyledText has some problem with scrolling
Run below snippet. Try to drag scroll bar up and down, will find the button's location sometimes goes wrong. But the image is ok when scrolling. My system is Windows XP Chinese version. public class Snippet { class StyleObject { public static final int IMAGE = 0; public static final int CONTROL = 1; public int objectType; public Object object; public StyleObject(int ot, Object obj) { objectType = ot; object = obj; } public Rectangle getBounds() { switch(objectType) { case IMAGE: return ((Image)object).getBounds(); case CONTROL: return ((Control)object).getBounds(); default: return new Rectangle(0, 0, 0, 0); } } public boolean isDisposed() { switch(objectType) { case IMAGE: return ((Image)object).isDisposed(); case CONTROL: return ((Control)object).isDisposed(); default: return false; } } public void dispose() { switch(objectType) { case IMAGE: ((Image)object).dispose(); break; case CONTROL: ((Control)object).dispose(); break; } } } StyledText styledText; String text = "Embedded images:\u0014 works fine when scrolling\n" + "Embeded control:\u0014 has some problem with scrolling\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n"; int[] offsets; private StyleObject[] objects; void addObject(StyleObject so, int offset) { StyleRange style = new StyleRange(); style.start = offset; style.length = 1; Rectangle rect = so.getBounds(); style.metrics = new GlyphMetrics(rect.height, 0, rect.width); styledText.setStyleRange(style); } public static void main(String[] args) { Snippet t = new Snippet(); t.run(); } public void run() { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new GridLayout()); styledText = new StyledText(shell, SWT.WRAP | SWT.BORDER | SWT.V_SCROLL); styledText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); styledText.setText(text); Button button = new Button(styledText, SWT.PUSH); button.setText("Button"); button.setCursor(display.getSystemCursor(SWT.CURSOR_ARROW)); button.setSize(button.computeSize(SWT.DEFAULT, SWT.DEFAULT)); objects = new StyleObject[] { new StyleObject(StyleObject.IMAGE, display.getSystemImage(SWT.ICON_QUESTION)), new StyleObject(StyleObject.CONTROL, button) }; offsets = new int[objects.length]; int lastOffset = 0; for(int i = 0; i < objects.length; i++) { int offset = text.indexOf("\u0014", lastOffset); offsets[i] = offset; addObject(objects[i], offset); lastOffset = offset + 1; } styledText.addPaintObjectListener(new PaintObjectListener() { public void paintObject(PaintObjectEvent event) { GC gc = event.gc; StyleRange style = event.style; int start = style.start; for(int i = 0; i < offsets.length; i++) { int offset = offsets[i]; if(start == offset) { switch(objects[i].objectType) { case StyleObject.IMAGE: Image image = (Image)objects[i].object; int x = event.x; int y = event.y + event.ascent - style.metrics.ascent; gc.drawImage(image, x, y); break; case StyleObject.CONTROL: Control control = (Control)objects[i].object; control.setLocation(event.x, event.y + event.ascent - objects[i].getBounds().height); break; } } } } }); shell.setSize(400, 200); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } for(int i = 0; i < objects.length; i++) { if(objects[i] != null && !objects[i].isDisposed()) { objects[i].dispose(); } } display.dispose(); } }
resolved fixed
400a47e
["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
"2006-03-09T22:36:44Z"
"2006-01-11T06:13:20Z"
131,198
Bug 131198 ExpandBar leaves space for scrollbar when not required
Run the following example. The top item should fill as much space as is available. When the shell first opens and when expanding and collapsing the bottom item sometimes there is space left for a scrollbar when none is needed or showing. Also, sometimes the top item does not grow when collapsing the bottom item. Not sure why. public static void main(String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final ExpandBar expandBar = new ExpandBar(shell, SWT.NONE); expandBar.setSpacing(3); ExpandItem item = new ExpandItem(expandBar, SWT.NONE); item.setText("Folders"); item.setExpanded(true); Text label = new Text(expandBar, SWT.BORDER); label.setText("item 1"); item.setControl(label); item = new ExpandItem(expandBar, SWT.NONE); item.setText("Search"); item.setHeight(100); item.setExpanded(false); label = new Text(expandBar, SWT.BORDER); label.setText("item 2"); item.setControl(label); Listener listener = new Listener() { public void handleEvent(Event e) { ExpandItem[] items = expandBar.getItems(); Rectangle area = expandBar.getClientArea(); int spacing = expandBar.getSpacing(); int header0 = 24; //items[0].getHeaderHeight(); int header1 = 24; //items[1].getHeaderHeight(); area.height -= (items.length + 1)*spacing + header0 + header1; boolean expanded1 = items[1].getExpanded(); if (e.type == SWT.Expand || e.type == SWT.Collapse) { ExpandItem item = (ExpandItem)e.item; if (item == items[1]) { expanded1 = !expanded1; } } if (expanded1) area.height -= items[1].getHeight(); items[0].setHeight(area.height); } }; expandBar.addListener(SWT.Resize, listener); expandBar.addListener(SWT.Expand, listener); expandBar.addListener(SWT.Collapse, listener); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
resolved fixed
1dc1a8b
["bundles/org.eclipse.swt/Eclipse", "SWT/win32/org/eclipse/swt/widgets/ExpandBar.java"]
SWT
https://github.com/eclipse-platform/eclipse.platform.swt
eclipse-platform/eclipse.platform.swt
java
null
null
null
"2006-03-09T21:41:19Z"
"2006-03-09T21:33:20Z"
130,971
Bug 130971 TreeItem not showing text
I20060317-1315 I don't have a simple SWT test case for this yet, but the behavior can be seen using the folloing test case in the debugger (works on GTK, does not work on XP). Debug the following program (breakpoint on first line) public class NowYouSeeIt { public static void main(String[] args) { for (int i = 0; i < 10; i ++) { Integer integer = new Integer(i); System.out.println(integer); } } } * Step over the declaration of "integer" (it appears in variables view) * Step over, step over (println, then "integer" disappears - out of scope) * Step over, step over (integer is back in scope, but its label does not appear) The "data" of the item appears to be set, cause selecting does show the proper 'toString()' in the details area.
resolved fixed
ab3ecaf
["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
"2006-03-08T23:42:17Z"
"2006-03-08T20:33:20Z"
130,991
Bug 130991 Table: Sort indicator appears on newly-created column
SWT-win32, v3227 In the snippet below, a sort indicator appears in the column header even though the column in question has not been set as the sort column. Apparently, the arrow icon is somehow "inherited" from a previous sort column which was disposed of earlier. --- import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class TableSortIndicatorTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Table tbl = new Table(shell, SWT.NONE); tbl.setHeaderVisible(true); tbl.setSortDirection(SWT.UP); TableColumn col = new TableColumn(tbl, SWT.NONE); tbl.setSortColumn(col); col.dispose(); col = new TableColumn(tbl, SWT.NONE); col.setText("Column"); col.setWidth(100); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
resolved fixed
161705a
["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
"2006-03-08T23:34:15Z"
"2006-03-08T20:33:20Z"
130,876
Bug 130876 Background Image not inherited running w/o manifest
Tested with 3.2 M5a and latest IBuild. The following snippet is problematic running it without the manifest. The buttons dont inherit the background image: public class Main { static Image oldImage; public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBackgroundMode(SWT.INHERIT_DEFAULT); FillLayout layout1 = new FillLayout(SWT.VERTICAL); layout1.marginWidth = layout1.marginHeight = 10; shell.setLayout(layout1); Group group = new Group(shell, SWT.NONE); group.setText("Group "); RowLayout layout2 = new RowLayout(SWT.VERTICAL); layout2.marginWidth = layout2.marginHeight = layout2.spacing = 10; group.setLayout(layout2); for (int i = 0; i < 8; i++) { Button button = new Button(group, SWT.RADIO); button.setText("Button " + i); } shell.addListener(SWT.Resize, new Listener() { public void handleEvent(Event event) { Rectangle rect = shell.getClientArea(); Image newImage = new Image(display, Math.max(1, rect.width), 1); GC gc = new GC(newImage); gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE)); gc.setBackground(display.getSystemColor(SWT.COLOR_BLUE)); gc.fillGradientRectangle(rect.x, rect.y, rect.width, 1, false); gc.dispose(); shell.setBackgroundImage(newImage); if (oldImage != null) oldImage.dispose(); oldImage = newImage; } }); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } if (oldImage != null) oldImage.dispose(); display.dispose(); } } Snippet was taken from 3.2 M4 N&N btw. Ben
resolved fixed
4104b9f
["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
"2006-03-08T19:41:34Z"
"2006-03-08T09:26:40Z"
130,792
Bug 130792 Table: Disposing sort column should update background
SWT-win32, v3227 When the sort column is disposed of, the "selected column" needs to be cleared in the OS. Currently, the next column to appear at the index of the disposed column just inherits the internal selection status. For this reason the background is not updated. --- import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class TableSortDisposeTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout(SWT.VERTICAL)); final Table tbl = new Table(shell, SWT.NONE); tbl.setHeaderVisible(true); tbl.setSortDirection(SWT.UP); final TableColumn col0 = new TableColumn(tbl, SWT.LEFT); col0.setText("Column 0"); col0.setWidth(100); tbl.setSortColumn(col0); TableColumn col1 = new TableColumn(tbl, SWT.LEFT); col1.setText("Column 1"); col1.setWidth(100); final Button btn = new Button(shell, SWT.PUSH); btn.setText("Click me"); btn.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { col0.dispose(); System.out.println(tbl.getSortColumn()); btn.setEnabled(false); } }); shell.setSize(300, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
resolved fixed
97869b7
["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
"2006-03-08T19:20:31Z"
"2006-03-07T19:33:20Z"
130,113
Bug 130113 eclipse (64-bit) crashes as soon as code complete is invoke (ctrl-space) in java files
OS: Fedora Core 4, 64 bit, (updated to latest version) GUI: gnome JDK: 1.5 release 6 (64 bit), AND 1.6.0-beta (64 bit) Eclipse: 3.2 m5 (x86_64/GTK 2) AND 3.2 m5a (x86_64/GTK 2) Steps to Reproduce: 1. Open a Java File 2. Press CTRL-SPACE to invoke Code Complete. 3. The Eclipse crashes instantly.
resolved fixed
bd0b030
["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
"2006-03-08T17:17:39Z"
"2006-03-02T14:33:20Z"