id
int64
1
6.5k
bug_id
int64
2.03k
426k
summary
stringlengths
9
251
description
stringlengths
1
32.8k
report_time
stringlengths
19
19
report_timestamp
int64
1B
1.39B
status
stringclasses
6 values
commit
stringlengths
7
9
commit_timestamp
int64
1B
1.39B
files
stringlengths
25
32.8k
project_name
stringclasses
6 values
2,761
103,719
Bug 103719 SWT.CENTER causes composite to not be displayed
I am using the code snippet below to create a button bar in a dialog. Composite buttonBar = new Composite(parent, SWT.CENTER); GridLayout layout = new GridLayout(); layout.numColumns = 0; layout.makeColumnsEqualWidth = true; buttonBar.setLayout(layout); GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_CENTER); buttonBar.setLayoutData(gd); Button agreeButton = createButton(buttonBar, LicenseAcceptanceDialog.OK, CachePlugin.getResourceString(_UI_CACHE_DIALOG_AGREE_BUTTON), false); Button disagreeButton = createButton(buttonBar, LicenseAcceptanceDialog.CANCEL, CachePlugin.getResourceString(_UI_CACHE_DIALOG_DISAGREE_BUTTON), false); return buttonBar; On Windows this displays two buttons in the dialog, on linux the buttons are not displayed. Changing the first line Composite buttonBar = new Composite(parent, SWT.CENTER); to Composite buttonBar = new Composite(parent, SWT.NONE); displays properly on both platforms. This inconsistent behaviour makes it very difficult to diagnose problems. I'm using Eclipse 3.1, RedHat Enterprise Linux WS r3.
2005-07-13 17:23:35
1,121,290,000
closed wontfix
c6b4190
1,121,380,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
SWT
2,762
101,799
Bug 101799 Enabling advanced graphics will cause alpha gradient to be applied
If advanced graphics (GC.setAdvanced(true)) is enabled on a graphics context then calling GC.drawImage(Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight) where the destination width and/or height is greater than that of the source image will draw an image with an alpha gradient. Specially, the drawn image will be the desired color at its center but have an alpha graient applied towards its edges (as if the act of stretching implies an alpha shift). An example can be quickly cooked up using SWT image snippet #112: public static void main (String [] args) { Display display = new Display (); final Image image = new Image(display, 2, 10); final Color color = display.getSystemColor(SWT.COLOR_BLUE); final GC gc = new GC (image); gc.setBackground(color); gc.fillRectangle(image.getBounds()); gc.dispose (); color.dispose (); Shell shell = new Shell (display); shell.setLayout (new FillLayout ()); Group group = new Group (shell, SWT.NONE); group.setLayout (new FillLayout ()); group.setText ("a square"); Canvas canvas = new Canvas (group, SWT.NONE); canvas.addPaintListener (new PaintListener () { public void paintControl (PaintEvent e) { // NOTE: turning on advanced graphics here (regardless of any // alpha value set) will cause the stretched image to have // an alpha gradient applied // NOTE: this same effect can be seen by performing any function // that would enabled advanced graphics such as: // e.gc.setAlpha(0xFE); // or: // e.gc.setAntialias(SWT.ON); e.gc.setAdvanced(true); // NOTE: the image is stretched in both dimensions e.gc.drawImage(image, 0, 0, 2, 10, 0, 0, 300, 300); } }); shell.pack (); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } image.dispose (); display.dispose (); } This gradient occurs regardless of the source of the source image (e.g. a loaded image or a created image as in the snippet above). (This bug becomes more severe with the use of GEF as there is no way to disable the use of advanced graphics on a Graphics object after it has been enabled. (And it hasn't been shown that disabling advanced graphics will even solve the problem.))
2005-06-26 17:17:27
1,119,820,000
resolved fixed
73975c2
1,121,110,000
bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/gdip/Gdip.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,763
102,165
Bug 102165 ImageLoader closes OutputStream on save
I'm trying to write a bunch of images (each in their own ImageLoader) to a ZipOutputStream. This fails when I attempt to write more than one image (or anything at all to the OutputStream after an image), as ImageLoader.save(OutputStream, int) is closing the stream. I did a little more investigation, and the issue is actually in FileFormat.unloadIntoStream(), which looks like this: public void unloadIntoStream(ImageData image, LEDataOutputStream stream) { try { outputStream = stream; unloadIntoByteStream(image); outputStream.close(); } catch (Exception e) { try {outputStream.close();} catch (Exception f) {} SWT.error(SWT.ERROR_IO, e); } } I can't come up with a compelling reason why the stream would need to be closed there (in the successful case, anyway). My solution, in the short term, is to extend ZipOutputStream and add a close() method that does nothing. That's obviously not a very clean solution, though.
2005-06-29 12:01:27
1,120,060,000
resolved fixed
e78c0e3
1,121,110,000
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java
SWT
2,764
102,543
Bug 102543 Height of MenuItems differs when using Icons and Text compared to just use Text
When having a Menu with MenuItems, some having an Image of 16x16px set and some not, you can see that the Items having an Image set have a bigger gap to the next Item, compared to the ones without an Image. Check this Snippet to reproduce: public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Menu menu = new Menu(shell, SWT.BAR); MenuItem subMenu = new MenuItem(menu, SWT.CASCADE); subMenu.setText("File"); Menu sub = new Menu(subMenu); subMenu.setMenu(sub); MenuItem imgItem1 = new MenuItem(sub, SWT.NONE); imgItem1.setText("Hello World"); imgItem1.setImage(new Image(display, 16, 16)); imgItem1 = new MenuItem(sub, SWT.NONE); imgItem1.setText("Hello World"); imgItem1.setImage(new Image(display, 16, 16)); imgItem1 = new MenuItem(sub, SWT.NONE); imgItem1.setText("Hello World"); imgItem1.setImage(new Image(display, 16, 16)); imgItem1 = new MenuItem(sub, SWT.NONE); imgItem1.setText("Hello World"); imgItem1 = new MenuItem(sub, SWT.NONE); imgItem1.setText("Hello World"); imgItem1 = new MenuItem(sub, SWT.NONE); imgItem1.setText("Hello World"); shell.setMenuBar(menu); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } } First of all I have checked how the Explorer is handling a Menu that uses Images for some Items. It seems that it sets the same height, even for the Items that have no Image set. Ben
2005-07-01 20:14:48
1,120,260,000
resolved fixed
59f1930
1,121,100,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java
SWT
2,765
101,839
Bug 101839 support MacOS command line option "-Xdock:name=<application name>"
SWT already supports the "-Xdock:icon=<path to icon file>" command line option by checking for a environment variable "APP_ICON_xxxx" in Display.createDisplay(). For consistency reason the "-Xdock:name=<application name>" should be supported as well. The corresponding environment variable is "APP_NAME_xxxx"
2005-06-27 05:02:35
1,119,860,000
resolved fixed
6c5d4ad
1,121,100,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java
SWT
2,766
102,201
Bug 102201 disposing TableColumn can change display order
3.1 - run the snippet below, which arranges the columns in the order 0, 2, 1 - clicking on the Shell will dispose column 0 - do this and note that when column 0 is disposed that column 1 now appears as the first column, but it should be column 2 since this was the case before disposing column 0 (ie.- they should have just visually shifted right) public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell (display); shell.setBounds(10,10,400,500); final Table table = new Table(shell,SWT.CHECK); table.setBounds(10,10,300,400); TableColumn column = new TableColumn(table, SWT.NONE); column.setText("one"); column.setWidth(100); column = new TableColumn(table, SWT.NONE); column.setText("two"); column.setWidth(100); column = new TableColumn(table, SWT.NONE); column.setText("three"); column.setWidth(100); table.setColumnOrder(new int[] {0,2,1}); table.setHeaderVisible(true); new TableItem(table, SWT.NONE).setText(new String[] {"a","b","c"}); new TableItem(table, SWT.NONE).setText(new String[] {"a","b","c"}); shell.open(); shell.addListener(SWT.MouseDown, new Listener() { public void handleEvent(Event event) { table.getColumn(0).dispose(); } }); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2005-06-29 16:07:23
1,120,080,000
resolved fixed
6d400f7
1,121,020,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,767
103,238
Bug 103238 TrayItem obscures KDE's gradient
If you have an image with a transparency mask in a TrayItem, the background around the image is composited onto gray (the default GTK+ widget background colour). KDE uses a gradient as the background of their panel by default. This causes the SWT TrayItem to stand out, as it appears in a gray box rather than honour KDE's gradient. One possible fix is to use the X SHAPE extension and define a shape mask for the window.
2005-07-08 20:00:41
1,120,870,000
resolved fixed
b904ed6
1,120,890,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java
SWT
2,768
102,830
Bug 102830 Junit test of TableColumn (test_setTextLjava_lang_String) use wrong comparaison operator
In the junit test test_setTextLjava_lang_String from Test_org_eclipse_swt_widgets_TableColumn.java, wrong comparaison operator is used to compare 2 strings: .. assertTrue(":a:", tableColumn.getText() == ""); tableColumn.setText("text"); assertTrue(":b:", tableColumn.getText() == "text"); .. it should be replaced by either a .equals() or an assertEquals(..)
2005-07-06 08:35:26
1,120,650,000
verified fixed
938cd9b
1,120,790,000
tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TableColumn.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TreeColumn.java
SWT
2,769
102,617
Bug 102617 Table right mouse double click registers as left mouse click
Using the following code: table.addMouseListener(new MouseAdapter() { public void mouseDoubleClick(MouseEvent e) { } public void mouseDown(MouseEvent e) { } }); The mouseDoubleClick method is called correctly when a double right mouse click is performed on a Table. However, the given MouseEvent's button always == 1, even if the left button was not used. However, when using a single mouse click the mouseDown method is also correctly called. However, it's MouseEvent's button is assigned correctly to 1,2,3, etc. To get around this I use a selection listener instead and use the widgetDefaultSelected to capture left double mouse clicks on a Table. However, the double click behaviour will not allow a differentiation between left and right clicks. Is this correct behavior? ie platform specific?
2005-07-03 21:45:17
1,120,440,000
resolved fixed
b02939b
1,120,790,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,770
102,952
Bug 102952 Foreground color gets lost when painting a Path
We have a test case which fails only on windows. The test turns off advanced graphics, sets the foreground color to black, and then draws a path. The path is rendered using dark blue, the previous foreground color used. The class is AdvancedGraphicsTests in the draw2d.tests project. the specific test is "testPathDraw" which is commented out to avoid failing during our builds.
2005-07-06 18:10:09
1,120,690,000
resolved fixed
daf3513
1,120,750,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,771
102,080
Bug 102080 Unused variables in GC.java
There are two unused variable warnings in GC.java (local variable fh is never read).
2005-06-28 15:42:08
1,119,990,000
resolved fixed
2a56cea
1,120,360,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
SWT
2,772
85,389
Bug 85389 [preferences] Changing Code Formatter tab width does not change displayed tab width in open editor
I20050215-2300 - Java project with project-specific code formatter settings - open a CU of this project - change tab width from 4 to 2 -> expected: displayed width of a tab character is now 2 -> was: still 4 The code formatter settings are already applied on Source > Format. Closing and reopening the editor gives the correct new width.
2005-02-16 06:38:07
1,108,550,000
resolved fixed
9f97305
1,120,060,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
SWT
2,773
100,741
Bug 100741 Unused variable in ScrollBar.java
scrolledHandle in ScrollBar.getSize() is never read.
2005-06-19 23:46:13
1,119,240,000
resolved fixed
1586f33
1,119,990,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
SWT
2,774
94,502
Bug 94502 Redundant check for the pointer coordinates
In Control#gtk_motion_notify, gdk_window_get_pointer() is used to get the coordinates relative to the root window. However, Control#sendMouseEvent maps these back into widget-relative coordinates. It would be more efficient and straightforward to simply request the mouse position relative to the target window in the first place. The attached patch solves this.
2005-05-10 16:03:20
1,115,760,000
resolved fixed
2363d61
1,119,980,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
SWT
2,775
94,429
Bug 94429 Group label doesn't fire mouse events
3.1M7 test build - run the ControlExample, go to the Group tab - turn on the Title Text checkbox - listen for MouseDown, MouseUp, MouseMove, MenuDetect events - these fire if the pointer is within the group, but not if it's over the label - this probably just requires hooking these listeners to the label handle that's internal to the group
2005-05-10 13:04:58
1,115,740,000
resolved fixed
1649f92
1,119,980,000
bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java
SWT
2,776
101,093
Bug 101093 [browser] crash when setting html as url
3.1RC3 - run the snippet below and click on the shell - this does a setUrl() with some html contents (I meant to do setText()) - this causes a crash because the third line of decidePolicyForNavigationAction tries to CFStringGetLength on 0 public static void main (String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,300,300); final Browser browser = new Browser(shell, SWT.NONE); browser.setBounds(10,10,250,250); shell.open(); shell.addListener(SWT.MouseDown, new Listener() { public void handleEvent(Event event) { String string = "<html><body></body></html>"; browser.setUrl(string); } }); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2005-06-21 13:31:26
1,119,380,000
resolved fixed
7a8bd7b
1,119,980,000
bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java
SWT
2,777
99,761
Bug 99761 pressing down arrow selects tool item
3.1RC2 - give focus to a ToolItem - press Space, and the item's action is invoked
2005-06-13 14:14:16
1,118,690,000
resolved fixed
6e74eb4
1,119,980,000
bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolItem.java
SWT
2,778
99,746
Bug 99746 Table and Tree column resize line matches foreground color
null
2005-06-13 13:37:53
1,118,680,000
resolved fixed
4f47421
1,119,980,000
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
2,779
101,795
Bug 101795 GC.fillGradientRectangle() with GDI+ causes crash
(SWT-RC4 and before) GC.fillGradientRectangle() lines 2204 - 2205 deletes the incorrect color causing a VM core dump. Gdip.Color_delete(fromColor); Gdip.Color_delete(toColor); must be changed to: Gdip.Color_delete(fromGpColor); Gdip.Color_delete(toGpColor);
2005-06-26 15:03:59
1,119,810,000
resolved fixed
7d30ae6
1,119,880,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,780
84,891
Bug 84891 In the specifications some methods do not describe their return value fully
In the specs, the return value of some methods has not been specified fully, especially when there is nothing to return or an error has occurred (eg an invalid parameter has been received). When there is nothing to return, should an empty array/string be returned or should null be returned? I suspect there is a generic convention but I could not find it anywhere. Class Method ----- ------ SWTError public String getMessage() SWTException public String getMessage() Combo public String [] getItems () Combo public String getText () Composite public Control [] getChildren () Composite public Control [] getTabList () Display public Shell [] getShells () List public String [] getItems () Menu public MenuItem [] getItems () Text public String getSelectionText () Text public String getText () FileDialog public String getFileName () FileDialog public String [] getFileNames () FileDialog public String getFilterPath () List public int getSelectionIndex () MenuItem public int getAccelerator () MessageBox public String getMessage () Text public String getText (int start, int end) Table public TableItem [] getItems () TableItem public Rectangle getImageBounds (int index) Tree public TreeItem [] getItems () TreeItem public TreeItem [] getItems ()
2005-02-10 09:58:22
1,108,050,000
resolved fixed
a35f719
1,119,450,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.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/MessageBox.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/TableItem.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 bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java
SWT
2,781
78,634
Bug 78634 ImageData.getTransparencyMask - incorrect javadoc or implementation wrong
The implementation of getTransparencyMask appears to return a fully opaque mask when the image has no transparency. The javadoc seems to infer that it would return null in that case. /** * Returns an <code>ImageData</code> which specifies the * transparency mask information for the receiver, or null if the * receiver has no transparency and is not an icon. * * @return the transparency mask or null if none exists */ public ImageData getTransparencyMask() (see implementation of ImageData.colorMask) On a different note, should we return a transparent mask based on the the alphaData values with the 127 threshold?
2004-11-15 12:29:39
1,100,540,000
resolved fixed
5c18af5
1,119,450,000
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java
SWT
2,782
100,699
Bug 100699 Widget.setKeyState reads from memory which has been freed
Here is what happens: 1. Have a StyledText widget to type into: public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); StyledText text = new StyledText(shell, SWT.NONE); text.setFont(new Font(display, "Monospace", 10, SWT.NORMAL)); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); } 2. Press a key. Entry is gtk_commit in Control. 3. gtk_commit does: sendIMKeyEvent (SWT.KeyDown, null, chars); 4. When the second argument is null, sendIMKeyEvent makes a copy of the event, memmoves it into a GdkEventKey Java object, and calls gdk_event_free() on the original event. 5. Widget.setKeyState (Event event, GdkEventKey keyEvent) is called. 6. This calls: OS.g_utf8_strlen (keyEvent.string, keyEvent.length) > 1) Unfortunately, keyEvent.string is an OS pointer to a string. This point is no longer valid, as we have freed the event already in step 4.
2005-06-18 01:30:43
1,119,070,000
resolved fixed
e4d0f72
1,119,380,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
SWT
2,783
99,348
Bug 99348 Java doc for Decorations.setImages(Images[] images) does not mention alpha or how images are selected when multiple types provided
null
2005-06-10 09:27:05
1,118,410,000
resolved fixed
7b11ed2
1,119,380,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java
SWT
2,784
86,562
Bug 86562 Can Widget.getDisplay() be called from a background thread?
3.1 M5 Widget.getDisplay()'s Javadoc has: <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> But the implementation, at least on Windows, does not check the thread. It seems like this should work from any thread, otherwise it would really complicate the common code pattern: control.getDisplay().asyncExec(...) Can this be used from any thread, or not?
2005-02-24 16:08:24
1,109,280,000
resolved fixed
036585f
1,119,380,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java
SWT
2,785
100,663
Bug 100663 [64] Links do not paint
3.1RC3 - happens on our amd64 box, does not happen on my 32-bit linux - open the preferences dialog - go to one of the following pages and note that they have gaps at the top; these gaps are where Links should be (and are; if you hover over them you may see the cursor change to a hand at some point) -> General - Content Types -> General - Editors -> General - Editors - File Associations -> many others...
2005-06-17 16:20:38
1,119,040,000
resolved fixed
b1a480e
1,119,370,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java
SWT
2,786
49,674
Bug 49674 DND.FEEDBACK_INSERT_BEFORE and DND.FEEDBACK_INSERT_AFTER support for table
null
2004-01-08 04:11:53
1,073,550,000
resolved fixed
4c45ddd
1,119,360,000
bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DND.java
SWT
2,787
100,231
Bug 100231 Name Conflict dialog appears behind Progress dialog
3.1RC2, GTK+ 2.6.7, metacity 2.10 1. Select a file in the resource navigator 2. Hit Ctrl+C 3. Hit Ctrl+V A progress dialog appears, and it is immediately followed by a "Name Conflict" dialog. Unfortunately, the progress dialog is above the conflict dialog in the stacking order, obscuring it from view.
2005-06-15 12:26:39
1,118,850,000
verified fixed
f1bdc2e
1,119,020,000
bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
SWT
2,788
100,065
Bug 100065 GC.drawImage() inhibits further drawing (on Image for a Button)
After a call to GC.drawImage() the Image associated with this GC cannot be modified any further, e.g. GC.drawText() or GC.fillRectangle() will not produce any visible result. To create a Button with both an Image and text, I draw an Image at runtime wich contains both of them. Then I set the combined Image as the Image for the Button. This worked with SWT 3.1m4. With SWT 3.1rc2, this no longer works - the image displays nicely, but the text is missing. Two guesses as to what the source of the problem might be: 1. The Button looks beautiful with the new XP style, perhaps there has been introduced a bug along with this new feature? 2. The image is a PNG with 32 bit alpha channel, perhaps the problem is associated with the handling of this type of image? Example (this code worked with 3.1m4): // Paint the combined Image for the Button final Image wholeImage = new Image(getDisplay(), width, height); final GC wholeImageCanvas = new GC(wholeImage); wholeImageCanvas.setFont(button.getFont()); wholeImageCanvas.setBackground(button.getBackground()); wholeImageCanvas.setForeground(button.getForeground()); wholeImageCanvas.drawImage(image, imageX, imageY); wholeImageCanvas.drawText(button.getText(), textX, textY, SWT.DRAW_MNEMONIC | SWT.DRAW_TRANSPARENT);
2005-06-14 16:06:42
1,118,780,000
resolved fixed
95c5bd5
1,118,960,000
bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,789
99,376
Bug 99376 TableColumn has width=0 and second column missing
31RC2 - Window -> Show View -> Other... - select PDE Runtime - Plug-in Registry, OK - in the opened view, the Table that's to the right of the Tree has two problems: -> column 0 has width 0 (its width can be increased by dragging its separator) -> column 1 seems non-existent
2005-06-10 10:56:39
1,118,420,000
resolved fixed
8da795f
1,118,960,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/SashFormLayout.java
SWT
2,790
98,845
Bug 98845 Crash when a Combo disposed on FocusOut
Motif crashes when focus is lost to the Combo's drop down. To reproduce, run the following example and click on the down arrow in the Combo. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Button b1 = new Button(shell, SWT.NONE); b1.addListener(SWT.FocusOut, new Listener() { public void handleEvent(Event event) { b1.dispose(); } }); final Combo c = new Combo(shell, SWT.NONE); c.addListener(SWT.FocusOut, new Listener() { public void handleEvent(Event event) { c.dispose(); } }); c.add("Hi"); Text text = new Text(shell, SWT.NONE); shell.setSize(320, 240); shell.open(); b1.setFocus(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2005-06-07 17:29:06
1,118,180,000
resolved fixed
f1495b2
1,118,960,000
bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Combo.java
SWT
2,791
98,087
Bug 98087 EXCEPTION_ACCESS_VIOLATION by Combo with READ_ONLY
I use a Combo-Widget in my code with the attribute READ_ONLY (combo = new Combo(parent, SWT.READ_ONLY);) When I select this Combo and close it by selecting another Widget the following error occures: # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77d3baf7, pid=5572, tid=3964 # # Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing) # Problematic frame: # C [USER32.dll+0x2baf7] # # An error report file with more information is saved as hs_err_pid5572.log #
2005-06-02 08:14:17
1,117,710,000
resolved fixed
5879540
1,118,940,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
SWT
2,792
99,525
Bug 99525 TextLayout.getLineOffsets() leaks a pango iter
TextLayout.getLineOffsets() calls pango_layout_get_iter() but does not call pango_layout_iter_free(). I belive this is a leak.
2005-06-12 00:12:50
1,118,550,000
verified fixed
93e67c3
1,118,930,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
SWT
2,793
99,697
Bug 99697 Can't navigate to external web sites
null
2005-06-13 11:35:57
1,118,680,000
resolved fixed
d1d1b30
1,118,930,000
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
2,794
99,527
Bug 99527 Dialog size problems when using the ion window manager
null
2005-06-12 04:37:01
1,118,570,000
verified fixed
3a67f55
1,118,930,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java
SWT
2,795
99,535
Bug 99535 FontDialog leaks a string
The result of gtk_font_selection_dialog_get_font_name() is a newly allocated string that must be freed.
2005-06-12 10:41:29
1,118,590,000
verified fixed
66b4dda
1,118,870,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java
SWT
2,796
99,518
Bug 99518 Extremely jumpy resizing in the ControlExample
null
2005-06-11 16:05:25
1,118,520,000
verified fixed
0a985d6
1,118,860,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
SWT
2,797
99,936
Bug 99936 [browser] nsIRequest has some incorrect method signatures
None of these are currently referenced, but they're wrong... [from Ron Capelli] In particular, look at the following methods in nsIRequest: GetStatus previous: public int GetStatus(int[] status) current: public int GetStatus(int /*long*/ aStatus) correct: public int GetStatus(int /*long*/[] aStatus) GetLoadGroup previous: public int GetLoadGroup(int[] aLoadGroup) current: public int GetLoadGroup(int /*long*/ aLoadGroup) correct: public int GetLoadGroup(int /*long*/[] aLoadGroup) GetLoadFlags previous: public int GetLoadFlags(int[] loadFlags) current: public int GetLoadFlags(int /*long*/ aLoadFlags) correct: public int GetLoadFlags(int /*long*/[] aLoadFlags) In each case, the previous version was correct, and the edits to add /*long*/ lost the array brackets. The array element is used for the return parameter. If you look at a mozilla build, in mozilla/dist/include/necko/nsIRequest.h, the methods in question are defined as: NS_IMETHOD GetStatus(nsresult *aStatus) = 0; NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) = 0; NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) = 0; Now consider the GetName method. In nsIRequest.h, it is defined as: NS_IMETHOD GetName(nsACString & aName) = 0; using a reference (&) argument rather than a return address (*). In nsIRequest.java previous: public int GetName(int aName) current: public int GetName(int /*long*/ aName) The current version is correct, matching the original. In this case, the parameter is not an array.
2005-06-14 08:09:32
1,118,750,000
verified fixed
3dd0846
1,118,860,000
bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIRequest.java
SWT
2,798
97,170
Bug 97170 [About] Eclipse logo not rendered correctly in about dialog and start-up progress window
Build id: I20050527-1300 The Eclipse logo is not drawn properly in the "About Eclipse Platform" dialog (one region looks corrupted). See the attached screenshot. On the left, the expected look has been inserted for comparison purposes. The new "Eclipse Platform Starting" progress window that is shown at start-up time (after the splash screen) has a similar problem though for some reason I was not able to take a screen capture of that.
2005-05-30 04:03:54
1,117,440,000
resolved fixed
ef2bef8
1,118,860,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
SWT
2,799
97,625
Bug 97625 Intro Test A.4 Eclipse crashed.
3.1 RC1. Executing Test A4 crashed Eclipse. I clicked Workbench basics, it opened fine, Team Support opened fine, but Java development crashed JVM. I restared Eclipse tried again and cannot reproduce. This is probably a dup of some existing bug, but I have not installed any samples. Just to let you know.
2005-05-31 14:07:20
1,117,560,000
verified fixed
25ef809
1,118,850,000
bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java
SWT
2,800
100,199
Bug 100199 Display.asyncExec() can hang Windows
The following code demonstrates the hang. Try to move the shell or scroll the table as it is being filled. You won't be able to click on the task bar or any other Windows application until the table is completely filled. import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.layout.*; public class Table8 { static final int COLUMNS = 3, ROWS = 100000, PAGE = 100; static final String [] [] DATA = new String [ROWS] [COLUMNS]; static { for (int i = 0; i < ROWS; i++) { for (int j = 0; j < COLUMNS; j++) { DATA [i][j] = "Item " + i + "-" + j; } } } public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); RowLayout layout = new RowLayout(SWT.VERTICAL); layout.fill = true; shell.setLayout(layout); final Table table = new Table(shell, SWT.BORDER); table.setLayoutData(new RowData(400, 400)); table.setHeaderVisible(true); for (int i = 0; i < COLUMNS; i++) { TableColumn column=new TableColumn(table,SWT.NONE); column.setText("Column " + i); column.setWidth(128); } final ProgressBar progress = new ProgressBar(shell, SWT.NONE); progress.setMaximum(ROWS - 1); shell.pack(); shell.open(); fillTable(table, progress, PAGE); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } static void fillTable( final Table table, final ProgressBar progress, final int page) { final Display display = table.getDisplay(); Runnable runnable = new Runnable() { int index = 0; public void run() { if (table.isDisposed()) return; int end = Math.min(index + page, ROWS); while (index < end) { TableItem item = new TableItem(table, SWT.NULL); for (int j = 0; j < COLUMNS; j++) { item.setText(j, DATA[index][j]); } index++; } if (end == ROWS) end = 0; progress.setSelection(end); if (index < ROWS) display.asyncExec(this); } }; display.asyncExec(runnable); } }
2005-06-15 10:53:30
1,118,850,000
resolved fixed
f222e7e
1,118,850,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
SWT
2,801
100,040
Bug 100040 Slowdown between 3.1 RC1 and N20050602 due to change to ImageList
build N20050602 Several of the UI performance tests got slower between RC1 and N20050602, on Windows. I tried running one of them, the OpenCloseWindowTest on N20050602, and also with N20050602+RC1's SWT. Here are the numbers (on Win2K): N20050602: testOpenCloseWindows:org.eclipse.debug.ui.DebugPerspective Elapsed Process: 844 ms Elapsed Process: 828 ms Elapsed Process: 854 ms average: 842 N20050602 with SWT from RC1 (I20050527-1300): testOpenCloseWindows:org.eclipse.debug.ui.DebugPerspective Elapsed Process: 751 ms Elapsed Process: 757 ms Elapsed Process: 731 ms average: 746ms increase: 96 over 746 = 13% slower I've only included the times for the debug perspective. The other perspectives showed less of a change, and seemed to correlate with the numer of icons (either in the menus or toolbars or both). The debug perspective has the most icons. I'm suspicious of the ImageList change to always specify OS.ILC_MIRROR. I'll see if unwinding that single change makes a difference.
2005-06-14 14:19:10
1,118,770,000
resolved fixed
0be85fb
1,118,850,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ImageList.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.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/ToolItem.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,802
99,745
Bug 99745 Tray doesn't support image with alpha
null
2005-06-13 13:37:32
1,118,680,000
resolved fixed
0fab6cf
1,118,850,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TrayItem.java
SWT
2,803
99,561
Bug 99561 GDI+ crash with icons where width > height [was: GEF paint() with setAlpha caused JVM crash]
I'll give more information later if needed. Eclipse 3.1RC2, GEF 3.1RC1, WindowsXP. This might be a SWT but though and not GEF I'm guessing. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77F83AED Function=RtlSizeHeap+0x7D7 Library=C:\WINDOWS\System32\ntdll.dll Current Java thread: at org.eclipse.swt.internal.gdip.Gdip.Bitmap_new(Native Method) at org.eclipse.swt.graphics.Image.createGdipImage(Image.java:890) at org.eclipse.swt.graphics.GC.drawImage(GC.java:671) at org.eclipse.swt.graphics.GC.drawImage(GC.java:622) at org.eclipse.draw2d.SWTGraphics.drawImage(SWTGraphics.java:343) at org.eclipse.draw2d.ImageFigure.paintFigure(ImageFigure.java:121) at org.eclipse.draw2d.Figure.paint(Figure.java:1053) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1127) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at com.lombardisoftware.client.ae.gef.widgets.TWAbstractStepFigure.paint(TWAbstractStepFigure.java:144) at com.lombardisoftware.bpd.component.flowcomponent.activity.ae.ActivityWidget.paint(ActivityWidget.java:56) at teamworks.bpd.heatmap.marker.BPDMarker$MarkerShape.fillShape(BPDMarker.java:119) at org.eclipse.draw2d.Shape.paintFigure(Shape.java:107) at org.eclipse.draw2d.Figure.paint(Figure.java:1053) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:156) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.DeferredUpdateManager.repairDamage(DeferredUpdateManager.java:225) at org.eclipse.draw2d.DeferredUpdateManager.performUpdate(DeferredUpdateManager.java:145) - locked <0x10da3ba0> (a org.eclipse.draw2d.DeferredUpdateManager) at org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(DeferredUpdateManager.java:40) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) - locked <0x10014a00> (a org.eclipse.swt.widgets.RunnableLock) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3035) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2694) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1716) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1680) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:365) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) Dynamic libraries: 0x00400000 - 0x0040B000 C:\Program Files\Java\j2re1.4.2_08\bin\javaw.exe 0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll 0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll 0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll 0x78000000 - 0x78087000 C:\WINDOWS\system32\RPCRT4.dll 0x77D40000 - 0x77DCD000 C:\WINDOWS\system32\USER32.dll 0x7F000000 - 0x7F041000 C:\WINDOWS\system32\GDI32.dll 0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll 0x08000000 - 0x08138000 C:\Program Files\Java\j2re1.4.2_08\bin\client\jvm.dll 0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll 0x10000000 - 0x10007000 C:\Program Files\Java\j2re1.4.2_08\bin\hpi.dll 0x00820000 - 0x0082E000 C:\Program Files\Java\j2re1.4.2_08\bin\verify.dll 0x00830000 - 0x00849000 C:\Program Files\Java\j2re1.4.2_08\bin\java.dll 0x00850000 - 0x0085E000 C:\Program Files\Java\j2re1.4.2_08\bin\zip.dll 0x02E70000 - 0x02E7F000 C:\Program Files\Java\j2re1.4.2_08\bin\net.dll 0x71AB0000 - 0x71AC4000 C:\WINDOWS\System32\WS2_32.dll 0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll 0x02E80000 - 0x02E88000 C:\Program Files\Java\j2re1.4.2_08\bin\nio.dll 0x03350000 - 0x033A0000 C:\Dev\Community\.metadata\.plugins\org.eclipse.pde.core\Eclipse Application\org.eclipse.osgi\bundles\98\1\.cp\swt-win32-3137.dll 0x4FEC0000 - 0x4FFF6000 C:\WINDOWS\system32\ole32.dll 0x77340000 - 0x773CB000 C:\WINDOWS\system32\COMCTL32.dll 0x763B0000 - 0x763F5000 C:\WINDOWS\system32\comdlg32.dll 0x70A70000 - 0x70AD6000 C:\WINDOWS\system32\SHLWAPI.dll 0x7CD00000 - 0x7D4FA000 C:\WINDOWS\system32\SHELL32.dll 0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.dll 0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.dll 0x72FA0000 - 0x72FFA000 C:\WINDOWS\System32\USP10.dll 0x71950000 - 0x71A35000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1643_x-ww_7c3a9bc6\comctl32.dll 0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll 0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll 0x74C80000 - 0x74CAC000 C:\WINDOWS\System32\oleacc.dll 0x55900000 - 0x55961000 C:\WINDOWS\System32\MSVCP60.dll 0x71A50000 - 0x71A8B000 C:\WINDOWS\System32\mswsock.dll 0x76F20000 - 0x76F45000 C:\WINDOWS\System32\DNSAPI.dll 0x76FB0000 - 0x76FB7000 C:\WINDOWS\System32\winrnr.dll 0x76F60000 - 0x76F8C000 C:\WINDOWS\system32\WLDAP32.dll 0x76FC0000 - 0x76FC5000 C:\WINDOWS\System32\rasadhlp.dll 0x76380000 - 0x76385000 C:\WINDOWS\System32\msimg32.dll 0x605D0000 - 0x605D8000 C:\WINDOWS\System32\mslbui.dll 0x03A40000 - 0x03A66000 C:\Program Files\Trillian\events.dll 0x7C340000 - 0x7C396000 C:\Program Files\Trillian\MSVCR71.dll 0x03B00000 - 0x03B13000 C:\Program Files\Dell\QuickSet\dadkeyb.dll 0x71A90000 - 0x71A98000 C:\WINDOWS\System32\wshtcpip.dll 0x03A70000 - 0x03A76000 C:\Program Files\Java\j2re1.4.2_08\bin\ioser12.dll 0x7C890000 - 0x7C911000 C:\WINDOWS\System32\CLBCATQ.DLL 0x77050000 - 0x77115000 C:\WINDOWS\System32\COMRes.dll 0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll 0x74770000 - 0x747FF000 C:\WINDOWS\System32\mlang.dll 0x04870000 - 0x04982000 C:\Program Files\Java\j2re1.4.2_08\bin\awt.dll 0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV 0x04990000 - 0x049E1000 C:\Program Files\Java\j2re1.4.2_08\bin\fontmanager.dll 0x04030000 - 0x04042000 C:\Dev\Community\.metadata\.plugins\org.eclipse.pde.core\Eclipse Application\org.eclipse.osgi\bundles\98\1\.cp\swt-gdip-win32-3137.dll 0x70D00000 - 0x70E91000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.1360_x-ww_24a2ed47\gdiplus.dll 0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll 0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll 0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL Heap at VM Abort: Heap def new generation total 1536K, used 202K [0x10010000, 0x101b0000, 0x104f0000) eden space 1408K, 9% used [0x10010000, 0x10031758, 0x10170000) from space 128K, 53% used [0x10170000, 0x101813d8, 0x10190000) to space 128K, 0% used [0x10190000, 0x10190000, 0x101b0000) tenured generation total 18656K, used 9451K [0x104f0000, 0x11728000, 0x14010000) the space 18656K, 50% used [0x104f0000, 0x10e2ad18, 0x10e2ae00, 0x11728000) compacting perm gen total 25088K, used 24967K [0x14010000, 0x15890000, 0x18010000) the space 25088K, 99% used [0x14010000, 0x15871e58, 0x15872000, 0x15890000) Local Time = Sun Jun 12 23:26:01 2005 Elapsed Time = 93 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) # # An error report file has been saved as hs_err_pid2120.log. # Please refer to the file for further information. #
2005-06-13 00:30:32
1,118,640,000
resolved fixed
619a5f6
1,118,690,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
SWT
2,804
99,541
Bug 99541 Cursors not disposed in SWT FileViewer example
The cursors are not disposed and cause a leak in the example.
2005-06-12 15:32:22
1,118,600,000
resolved fixed
44290f0
1,118,600,000
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/IconCache.java
SWT
2,805
99,341
Bug 99341 GDI leak in Label with transparent images (png, gif)
null
2005-06-10 08:21:54
1,118,410,000
resolved fixed
601e16b
1,118,430,000
bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
SWT
2,806
99,167
Bug 99167 Hover Event fired continiously although Mouse not moving
Using latest Nightly + this Snippet: public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); shell.addListener(SWT.MouseHover, new Listener() { public void handleEvent(Event event) { System.out.println("Hover Event"); } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } Move Mouse into Shell, notice that Events are received continiusly, although the mouse is not moving. Regards, Ben
2005-06-09 11:21:17
1,118,330,000
resolved fixed
279ca6e
1,118,410,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java
SWT
2,807
63,364
Bug 63364 "Selection Foreground/Background Color" Preference cannot be changed for Java/Editor/Appearance
In the Preferences for Java->Editor->Appearance, you cannot change the "Selection Foreground Color" from the default. When you uncheck the "System Default" checkbox, and choose a color, your color selection is ignored. My Eclipse info is: Version: 3.0.0 Build id: 200404281424 MacOS: 10.3.3
2004-05-21 00:00:31
1,085,110,000
resolved fixed
2c52adb
1,118,350,000
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/TextLayout.java
SWT
2,808
96,679
Bug 96679 OutOfMemory Exception from corrupted clipboard?
While trying to debug/test a new plugin, I started seeing some odd behavior on the startup of a new Eclipse instance. Typically, this would correspond to seemingly random 'OutOfMemory' errors from the main instance as well. I set a breakpoint on the OutOfMemory exception, and managed to get the following stack trace Thread [main] (Suspended (exception OutOfMemoryError)) ResourceTransfer.nativeToJava(TransferData) line: 160 Clipboard.getContents(Transfer, int) line: 304 Clipboard.getContents(Transfer) line: 236 PasteAction$1.run() line: 186 UISynchronizer(Synchronizer).syncExec(Runnable) line: 147 UISynchronizer.syncExec(Runnable) line: 28 Display.syncExec(Runnable) line: 3255 PasteAction.updateSelection(IStructuredSelection) line: 181 PasteAction(BaseSelectionListenerAction).selectionChanged(IStructuredSelection) line: 124 RefactorActionGroup.updateActionBars() line: 154 MainActionGroup.updateActionBars() line: 315 ResourceNavigator.updateActionBars(IStructuredSelection) line: 1206 ResourceNavigator.createPartControl(Composite) line: 275 ViewReference.createPartHelper() line: 310 ViewReference.createPart() line: 185 ViewReference(WorkbenchPartReference).getPart(boolean) line: 559 WorkbenchPage$ActivationList.setActive(IWorkbenchPartReference) line: 3399 WorkbenchPage.onActivate() line: 2089 WorkbenchWindow$5.run() line: 2359 BusyIndicator.showWhile(Display, Runnable) line: 69 WorkbenchWindow.setActivePage(IWorkbenchPage) line: 2341 WorkbenchWindow.busyOpenPage(String, IAdaptable) line: 695 Workbench.busyOpenWorkbenchWindow(String, IAdaptable) line: 617 Workbench.openFirstTimeWindow() line: 1168 WorkbenchConfigurer.openFirstTimeWindow() line: 180 IDEWorkbenchAdvisor(WorkbenchAdvisor).openWindows() line: 706 Workbench.init(Display) line: 981 Workbench.runUI() line: 1541 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 315 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 143 IDEApplication.run(Object) line: 103 PlatformActivator$1.run(Object) line: 230 EclipseStarter.run(Object) line: 371 EclipseStarter.run(String[], Runnable) line: 160 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object[]) line: 324 Main.invokeFramework(String[], URL[]) line: 330 Main.basicRun(String[]) line: 274 Main.run(String[]) line: 977 Main.main(String[]) line: 952 Looking at the local variables for the topmost stack element, I see the following: this= ResourceTransfer (id=46) transferData= TransferData (id=73) bytes= byte[12] (id=75) in= DataInputStream (id=76) count= 1718185572 It appears that somehow the count is being corrupted. The variables from one level up are as follows: this= Clipboard (id=47) transfer= ResourceTransfer (id=46) clipboards= 1 selection_data= 142456008 typeIds= int[1] (id=527) gtkSelectionData= GtkSelectionData (id=528) tdata= TransferData (id=73) I seem to be able to duplicate this on a fairly regular basis, so if someone ones to give me pointers on what to look for, I may be able to help more.
2005-05-25 14:43:23
1,117,050,000
resolved fixed
5d419d1
1,118,350,000
bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java
SWT
2,809
96,212
Bug 96212 org.eclipse.ui could not be found.
Steps to reproduce: Open welcome. double click on view to put in standby. click on Overview. now click on any other page link, you get an unexpected pop-up.
2005-05-21 05:51:15
1,116,670,000
resolved fixed
997b95a
1,118,350,000
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
2,810
99,109
Bug 99109 ComputeSize on Link gives different results when calling two times in a row
RC1 I have a Link widgets embeeded in the new Jaba class wizard. The JDT class is NewClassWizardPage The text of the link widget is "Do you want to add comments as configured in the <a>properties</a> of the current project?" When I call computeSize of the link using the following code System.out.println(29 + " " + children[29].computeSize(SWT.DEFAULT, SWT.DEFAULT) + " " + children[29].computeSize(SWT.DEFAULT, SWT.DEFAULT)); where the Link is the 29th child of a composite I get the following results: 29 Point {408, 13} Point {408, 0} To reproduce add the following to lines to the end of the createControl in NewClassWizardPage Control[] children= composite.getChildren(); System.out.println(29 + " " + children[29].computeSize(SWT.DEFAULT, SWT.DEFAULT) + " " + children[29].computeSize(SWT.DEFAULT, SWT.DEFAULT));
2005-06-09 04:43:50
1,118,310,000
resolved fixed
78e6e2f
1,118,340,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
SWT
2,811
98,691
Bug 98691 GC.setAdvanced(false) changes line width from 0 to 2
I am doing some painting at width==2, followed by some more painting at width==0. Then, I call setAdvanced(false). After stepping over setAdvanced(false), the line width gets changed back to 2. I do some more painting and expected the width to still be 0.
2005-06-07 11:01:58
1,118,160,000
resolved fixed
8404d67
1,118,270,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,812
97,915
Bug 97915 Table.remove(int) can change selection
3.1RC1 - run the snippet below - its last two items are initially selected - click on the shell, this invokes Table.remove(0) - note that "item1" has lost its selection as a result of this 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.MULTI); table.setBounds(10,10,200,200); new TableItem(table, SWT.NONE).setText("item 0"); new TableItem(table, SWT.NONE).setText("item 1"); new TableItem(table, SWT.NONE).setText("item 2"); shell.open(); table.setSelection(new int[] {1,2}); shell.addListener(SWT.MouseDown, new Listener() { public void handleEvent(Event event) { table.remove(0); } }); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2005-06-01 13:01:58
1,117,650,000
resolved fixed
d0a02b5
1,118,240,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/List.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Table.java
SWT
2,813
60,635
Bug 60635 MouseEnter should be fired even when the mouse is down (BBAWT)
1. Run the following testcase 2. Click on the label on the left side, and hold the button down 3. Move the button over the label on the right, without releasing the button 4. After a few seconds, release the button over the right label Notice that the mouseEnter event isn't fired until the button is released. I believe it should be fired regardless of whether the button is down (i.e. the second you cross over to the right label in step 3). --- testcase --- import org.eclipse.swt.SWT; import org.eclipse.swt.events.MouseEvent; import org.eclipse.swt.events.MouseMoveListener; import org.eclipse.swt.events.MouseTrackListener; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; public class SWTTestMouseExitEnterEvents implements MouseTrackListener, MouseMoveListener{ private Display display; private Shell shell; //------------------------------------------------------------------- // //------------------------------------------------------------------- static public void main(String[] args) { new SWTTestMouseExitEnterEvents().runMain(args); } //------------------------------------------------------------------- // //------------------------------------------------------------------- private void runMain(String[] args) { display = new Display(); shell = new Shell(display); shell.setText(getClass().getName()); shell.setLayout(new FillLayout()); shell.setSize(300, 300); Label label1 = new Label(shell,SWT.BORDER); Label label2 = new Label(shell,SWT.BORDER); label1.setText("left"); label2.setText("right"); label1.addMouseTrackListener(this); label2.addMouseTrackListener(this); label1.addMouseMoveListener(this); label2.addMouseMoveListener(this); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } public void mouseEnter(MouseEvent e) { System.out.println("mouseEntered " + e.widget); } public void mouseExit(MouseEvent e) { System.out.println("mouseExited " + e.widget); } public void mouseHover(MouseEvent e) { } public void mouseMove(MouseEvent e) { System.out.println("mouseMoved " + e.widget); } }
2004-04-30 16:03:40
1,083,360,000
resolved fixed
d58da33
1,118,190,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java
SWT
2,814
97,046
Bug 97046 PNG images look corrupt as main window icon
I am using 3.1 M7. When I load a 16*16 PNG file as an image and display it on a canvas all is well. When I set the same image to top level shell I see a corrupt image in the top left corner of the window. The issue seems to be related to the handling of transparent and semi-transparent pixels.
2005-05-27 14:16:18
1,117,220,000
resolved fixed
a7944d2
1,118,180,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java
SWT
2,815
98,802
Bug 98802 Focus cannot be given to visible but zero-sized controls
null
2005-06-07 15:06:36
1,118,170,000
resolved fixed
59c8377
1,118,170,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
SWT
2,816
98,439
Bug 98439 Pixel corruption when using clipping on a double-buffered control
SWT-win32, v3136 (3.1RC1) - Run the testcase below - The canvas is supposed to have its left half painted red, the right half painted green - Move the shell partly off the screen, then back in order to cause the damaged regions to be redrawn; note that the result does not look as expected Without the SWT.DOUBLE_BUFFERED style, the problem goes away. --- import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class DoubleBufferClippingTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Canvas cnv = new Canvas(shell, SWT.DOUBLE_BUFFERED); cnv.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { int width = cnv.getSize().x; int height = cnv.getSize().y; int halfWidth = width / 2; e.gc.setClipping(0, 0, halfWidth, height); e.gc.setBackground(cnv.getDisplay().getSystemColor(SWT.COLOR_RED)); e.gc.fillRectangle(0, 0, width, height); e.gc.setClipping(halfWidth, 0, width - halfWidth, height); e.gc.setBackground(cnv.getDisplay().getSystemColor(SWT.COLOR_GREEN)); e.gc.fillRectangle(0, 0, width, height); } }); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } }
2005-06-05 08:40:54
1,117,980,000
resolved fixed
0e9002f
1,118,160,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,817
98,596
Bug 98596 api spec on GC.setLineDash(int[]) should mention null
setLineDash currently accepts NULL, and it is equivalent to calling GC#setLineStyle(SWT.LINE_SOLID). It this intentional? It should be specified in the API so that new ports get it right.
2005-06-06 17:25:31
1,118,090,000
resolved fixed
fc8e38f
1,118,160,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,818
91,319
Bug 91319 [accessibility, consistency] Make Link and Spinner accessible on GTK
Need to get the latest GTK, ATK, and Gnopernicus first, because apparently, the latest accessibility works much better than before. Spinner might just work, because it's native, but it needs to be tested. Link is emulated, so it will need to have accessibility added. Also need to test all controls, given that accessibility is 'real' on GTK now.
2005-04-13 13:41:52
1,113,410,000
resolved fixed
1dbfbf1
1,118,090,000
bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java
SWT
2,819
97,662
Bug 97662 Dragging sash changes selection in widget above
3.1 RC1 - switch to the Java browsing perspective - select items so that the four panes are filled with something - below any one of the top four panes, drag the sash lower - the item in the pane above that was at the pointer's start position is selected - if there was no item at that position, the selection is cleared
2005-05-31 15:02:15
1,117,570,000
resolved fixed
170de71
1,117,840,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Sash.java
SWT
2,820
97,696
Bug 97696 ToolItem with image is blank or shows cheese
3.1 RC1 - check the "Always run in background" preference - show the Progress view - kick off some long-running operation (e.g. Project > Clean) - in the Progress view, the cancel button for this Job is blank - resize the window while the job is still going - the button is not redrawn properly, i.e. it shows cheese from what was in that screen rectangle before Also saw this in the progress dialog on shutdown. This uses a ToolItem with image set. The image changes depending on the state of the job. See code in NewProgressViewer.JobItem's constructor.
2005-05-31 16:00:29
1,117,570,000
resolved fixed
438aa1d
1,117,830,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolBar.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java
SWT
2,821
97,992
Bug 97992 javadoc warnings in RC1
Build: 3.1 RC1 The javadoc builder reported the following warnings for RC1 build: /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:2355: warning - Tag @see: missing #: "setAdvanced()" /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:2355: warning - Tag @see: can't find setAdvanced() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3168: warning - Tag @see: can't find setAlpha() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3168: warning - Tag @see: can't find setAntialias() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3168: warning - Tag @see: can't find setBackgroundPattern() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3168: warning - Tag @see: can't find setClipping() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3168: warning - Tag @see: can't find setForegroundPattern() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3168: warning - Tag @see: can't find setInterpolation() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3168: warning - Tag @see: can't find setTextAntialias() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3168: warning - Tag @see: can't find setTransform() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3206: warning - Tag @see: can't find setTextAntialias() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.ui.forms/src/org/eclipse/ui/forms/widgets/ExpandableComposite.java:750: warning - Tag @see: can't find getTitle in org.eclipse.ui.forms.widgets.ExpandableComposite /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java:3870: warning - Tag @see: can't find setAntialias() in org.eclipse.swt.graphics.GC /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Path.java:463: warning - @param argument "cx1" is not a parameter name. /builds/I200505271300/src/plugins/org.eclipse.platform.doc.isv/../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Path.java:463: warning - @param argument "cy1" is not a parameter name.
2005-06-01 16:39:48
1,117,660,000
resolved fixed
633e0f5
1,117,830,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Path.java
SWT
2,822
98,286
Bug 98286 Link doesn't get paint events
Run the ControlExample and use the Select Listeners button to listen for SWT.Paint. You don't get them. I noticed this when browsing the code for Link.drawWidget(). It doesn't call super.
2005-06-03 10:50:53
1,117,810,000
resolved fixed
5cbbc87
1,117,830,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Link.java
SWT
2,823
97,697
Bug 97697 CCombo - drop down list appears in wrong place
Eclipse 3.1 RC1 Drop down the list for a CCombo. On Windows, Motif and Max OS X, the list appears directly below the text widget. On GTK the list appears over top of the text widget.
2005-05-31 16:04:22
1,117,570,000
resolved fixed
4767c79
1,117,830,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
SWT
2,824
97,725
Bug 97725 GTK - Layout Example table editor combo in wrong place
Eclipse 3.1 RC1 Show the SWT Layouts view. Go to the GridLayout tab. Add three buttons. Click on the last Button entry in the "Children" table - an editor should pop up but doesn't. Click on the second last Button entry in the "Children" table. This time an editor pops up - change Button to Combo and click away. Notice that "Combo" appears in the last row of the table and not the second row. Click on the second last Button entry in the "Children" table. Change the horizontalSpan to 2 and click away. Notice that the horizontalSpan of 2 appears for the last button. Click again on the second last Button entry in the "Children" table. Notice that the editor for horizontalSpan says 1 and not 2. Click away and note that the horizontalSpan for the last Button has changed to 1. This example works fine on Windows.
2005-05-31 16:44:38
1,117,570,000
resolved fixed
d5ba1ee
1,117,820,000
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
2,825
77,661
Bug 77661 [KeyBindings] interactions: "Esc, Shift+R" key binding doesn't work
200411022000 Create a binding to Esc, Shift + R Hit Esc Hold Shift At this point the system will beep and the R will not be honoured Hold Shift Hit Esc Hit R Command executes as expected Hit Esc Wait for hint dialog to appear Hold Shift Hit R Command executes as expected
2004-11-03 11:12:30
1,099,500,000
verified fixed
45ed422
1,117,810,000
bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/COM.java
SWT
2,826
97,978
Bug 97978 Table/TreeColumns don't fire ControlEvents on dispose() [osx]
null
2005-06-01 15:51:31
1,117,660,000
resolved fixed
07561f3
1,117,810,000
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
2,827
97,659
Bug 97659 TreeColumns don't fire ControlEvents on dispose() [win32]
3.1RC1 - run the snippet below - each time the button to the right of the Tree is pressed, the Tree's first column is disposed -> this should fire a Move for all other columns as they shift left, but no events are fired - this works as expected for Table/TableColumn public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10, 10, 300, 300); final Tree tree = new Tree(shell, SWT.NONE); tree.setBounds(10, 10, 200, 200); tree.setLinesVisible(true); tree.setHeaderVisible(true); ControlListener listener = new ControlListener() { public void controlResized(ControlEvent e) { System.out.println("column resize: " + e.widget); } public void controlMoved(ControlEvent e) { System.out.println("column move: " + e.widget); } }; TreeColumn column = new TreeColumn(tree, SWT.NONE); column.setText("1"); column.setWidth(50); column.addControlListener(listener); column = new TreeColumn(tree, SWT.NONE); column.setText("2"); column.setWidth(50); column.addControlListener(listener); column = new TreeColumn(tree, SWT.NONE); column.setText("3"); column.setWidth(50); column.addControlListener(listener); column = new TreeColumn(tree, SWT.NONE); column.setText("4"); column.setWidth(50); column.addControlListener(listener); Button button = new Button(shell, SWT.PUSH); button.setBounds(230,10,30,30); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { tree.getColumn(0).dispose(); } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2005-05-31 14:57:16
1,117,570,000
resolved fixed
00b98ba
1,117,810,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,828
97,931
Bug 97931 Coolbar fails to show contents until resized
1. Run Snippet20 2. Note that nothing is displayed 3. Move the coolbar handle, a button pops into view On GTK+ and Windows XP, the snippet opens a window with a correct looking coolbar.
2005-06-01 14:01:28
1,117,650,000
resolved fixed
7c6db7f
1,117,730,000
bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java
SWT
2,829
97,743
Bug 97743 [portability] Drag Tool Turns Off on Linux
When you're dragging something and the mouse goes over an object, a tooltip, or the edge, it cancel out of drag mode and goes back to a normal selection tool. This only happens on Linux and has been a real source of annoyance for our users. Sure would love a fix.
2005-05-31 17:17:19
1,117,570,000
resolved fixed
69bd419
1,117,730,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
SWT
2,830
96,525
Bug 96525 Painting a translucent image fails when the GC is mirrored
Snippet showing the problem: Display d = new Display(); PaletteData pData = new PaletteData(0xFF, 0xFF00, 0xFF0000); RGB rgb = d.getSystemColor(SWT.COLOR_LIST_SELECTION).getRGB(); int fillColor = pData.getPixel(rgb); ImageData iData = new ImageData(1, 1, 24, pData); iData.setPixel(0, 0, fillColor); iData.setAlpha(0, 0, 55); final Image image = new Image(d, iData); Shell shell = new Shell(d, SWT.RIGHT_TO_LEFT | SWT.SHELL_TRIM); shell.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { e.gc.drawImage(image, 0, 0, 1, 1, 0, 0, 100, 100); } }); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) if (!d.readAndDispatch()) d.sleep(); If you change the Shell's orientation to be LTR instead of RTL, the image appears as expected. I'm using 3.1M7
2005-05-24 17:30:09
1,116,970,000
resolved fixed
1c70972
1,117,660,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,831
97,813
Bug 97813 height of Text widgets for SWT/GTK differs from native GTKEntry widgets
The height of "Text" widgets rendered on GTK from within SWT is slightly taller than "GtkEntry" widgets. Below I include a GTK program which displays a window containing just a single line GtkEntry, and a Java program which displays a single line Text widget. Both have the same appearance (they each have a border), but if you display them both next to each other you can see that the SWT version is slightly taller. The programs also output the height of the text widget, giving sizes of 26 and 24 for SWT and GTK respectively. I think maybe this is happening as a result of the INNER_BORDER stuff inside gtk/org/eclipse/swt/widgets/Text.java - but I don't see why this is being done, as it is it makes the windows I get in a SWT application look slightly different (I realise it's not a big difference but it sometimes catches the eye). I reproduced this with 3.0.2 and 3.1 ------------------------------------------------------------------------------ /* Java program TextHeight.java */ import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; public class TextHeight { private static Text text; public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); GridLayout layout = new GridLayout(); layout.numColumns = 2; shell.setLayout(layout); Label label = new Label(shell, SWT.WRAP); label.setText("Label : "); Text text = new Text(shell, SWT.BORDER); text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); shell.open(); Point p = text.getSize(); System.out.println("height of text is " + p.y); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } ------------------------------------------------------------------------------ /* C program gtktest.c */ #include <gtk/gtk.h> gint delete_event(GtkWidget *widget, GdkEvent event, gpointer data ) { return FALSE; } void end_program ( GtkWidget *widget, GdkEvent *event, gpointer data ) { g_print ("Bye\n"); gtk_main_quit(); } int main( int argc, char *argv[] ) { GtkWindow *window; GtkWidget *entry; GtkRequisition requisition; gtk_init (&argc, &argv); window = g_object_new(GTK_TYPE_WINDOW, "default-height", 200, "default-width", 200, "border-width", 12, "title", "GtkTest", NULL); g_signal_connect(window, "delete_event", G_CALLBACK(delete_event), NULL); g_signal_connect(window, "destroy", G_CALLBACK(end_program), NULL); entry = g_object_new(GTK_TYPE_ENTRY, "has-frame",TRUE, NULL); gtk_widget_size_request(entry,&requisition); g_print ("height of text widget is %d\n", requisition.height); gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(entry)); gtk_widget_show_all(GTK_WIDGET(window)); gtk_main(); return 0; }
2005-06-01 06:35:44
1,117,620,000
resolved fixed
96d3d34
1,117,650,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
SWT
2,832
97,762
Bug 97762 Hiding redraw window before destroying it
In GTK+ 2.6.0 and higher, when a GdkWindow is unmapped, GDK will unset the background pixmap of its parent temporarily to reduce flicker. However, this is only done when you call gdk_window_hide(), not if you simply call gdk_window_destroy(). By adding a call to gdk_window_hide() in setRedraw(true) before destroying the window, all flicker on GTK+ for setRedraw() magically disappears for GTK+ 2.6 users.
2005-05-31 18:33:09
1,117,580,000
resolved fixed
d463ee3
1,117,640,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
SWT
2,833
97,125
Bug 97125 Antialiasing chops off edges of rectangles
Antialiasing chops off some of the boundaries of rectangles. The included snippet will display a thin black line when antialiasing is turned on, but not when it is off. Antialiasing should have no effect on rectangles. package org.eclipse.swt.snippets; import org.eclipse.swt.SWT; import org.eclipse.swt.events.PaintEvent; import org.eclipse.swt.events.PaintListener; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; public class Snippet13 { public static void main (String [] args) { final Display display = new Display (); Shell shell = new Shell (display); Canvas canvas = new Canvas(shell, SWT.NONE); canvas.setBackground(display.getSystemColor(SWT.COLOR_BLACK)); canvas.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { GC gc = e.gc; gc.setAntialias(SWT.ON); gc.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); gc.fillRectangle(0, 0, 200, 100); gc.fillRectangle(0, 100, 200, 100); } }); canvas.setBounds(0,0,200,200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2005-05-28 17:21:14
1,117,320,000
resolved fixed
13e67a3
1,117,570,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GCData.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,834
97,686
Bug 97686 AIOOB when removing non-existent TableItem by index
3.1RC1 - run the snippet below, you'll get the exception that follows - it's because the bounds check in Table.remove(int) should change from: if (!(0 <= index && index <= itemCount)) error (SWT.ERROR_ITEM_NOT_REMOVED); to if (!(0 <= index && index < itemCount)) error (SWT.ERROR_ITEM_NOT_REMOVED); snippet: public static void main(String[] args) { Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,400,400); Table table = new Table(shell, SWT.NONE); table.setBounds(10,10,300,300); shell.open(); table.remove(0); // <---- while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } exception: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.eclipse.swt.widgets.Table.remove(Table.java:1823) at win32.Main.main(Main.java:20)
2005-05-31 15:33:37
1,117,570,000
resolved fixed
bb6f172
1,117,570,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
SWT
2,835
97,552
Bug 97552 setAntialias breaks background color
GC.setAntialias(SWT.*) causes the background of the next fillRectangle to become permanent for all following rectangles, ignoring subsequent calls to setBackground. Note this happens on ANY call to setAntialias, even just setting it to SWT.OFF. I have not tested whether the effect extends beyond fillRectangle. package org.eclipse.swt.snippets; import org.eclipse.swt.SWT; import org.eclipse.swt.events.PaintEvent; import org.eclipse.swt.events.PaintListener; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; public class Snippet13 { public static void main (String [] args) { final Display display = new Display (); Shell shell = new Shell (display); Canvas canvas = new Canvas(shell, SWT.NONE); canvas.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { GC gc = e.gc; gc.setAntialias(SWT.OFF); gc.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); gc.fillRectangle(0, 0, 200, 100); gc.setBackground(display.getSystemColor(SWT.COLOR_BLACK)); // This rectange should be black, but is white instead! gc.fillRectangle(0, 100, 200, 100); } }); canvas.setBounds(0,0,200,200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2005-05-31 11:59:41
1,117,560,000
resolved fixed
94e116a
1,117,560,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,836
97,370
Bug 97370 gnopernicus no longer reads custom widgets in eclipse
3.1RC1 - this worked in 3.0.2 - this works in stand-alone examples - so something about running in the context of eclipse is problematic
2005-05-30 17:58:46
1,117,490,000
resolved fixed
abe7a6e
1,117,490,000
bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleFactory.java
SWT
2,837
97,011
Bug 97011 Custom Table font is not applied to first column header
If a Table has a visible header, a custom font, and multiple columns, then the first column's header uses the default system font rather than the custom font. I've reproduced this both in my own application and in a simple test case I created (which I can attach if it would be helpful). Steps to reproduce: 1. Create a custom Font. 2. Create a Table. 3. Make the Table's header visible and set its font to the custom font. 4. Add multiple columns to the Table. Actual results: The first column in the header uses the default system font, and all the others use the custom font. Expected results: All columns in the header use the custom font. I'm using SWT/GTK 3.1M7. I think this is platform-specific, since I don't remember this bug occurring in Windows; but I'll have to check to make sure.
2005-05-27 11:30:57
1,117,210,000
resolved fixed
ae629f7
1,117,490,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.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
2,838
96,844
Bug 96844 TabItems appear above TabFolder titles when set to a minimum size on Mac OS X
If a TabFolder in a SashForm is reduced in size so that only the tab titles are visible, for certain positions, the TabItem appears on top of the tab titles. When this happens the TabItems can no longer be selected. The code below illustrates this problem. If the upper part of the SashForm is reduced in size at certain positions when the TabItem should no longer be visible, it appears above the title. This occurs with Eclipse 3.1M6 Mac OS X (10.3) package test; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.SashForm; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.TabFolder; import org.eclipse.swt.widgets.TabItem; public class TestMacTabFolder { private Shell shell; private Display display; private SashForm sashForm; public TestMacTabFolder() { // shell display = new Display(); shell = new Shell(display); shell.setLayout(new GridLayout()); shell.setSize(640, 480); // main composite final Composite mainComposite = new Composite(shell, SWT.BORDER); mainComposite.setLayout(new GridLayout()); mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); // Sash form split vertically sashForm = new SashForm(mainComposite, SWT.VERTICAL); sashForm.setLayout(new GridLayout()); sashForm.setLayoutData(getGridData()); // Create the tab folder TabFolder tabFolder = new TabFolder(sashForm, SWT.BORDER | SWT.BOTTOM); tabFolder.setLayout(new GridLayout()); tabFolder.setLayoutData(getGridData()); // first tab item Composite itemComposite1 = new Composite(tabFolder, SWT.NONE); itemComposite1.setLayout(new GridLayout()); itemComposite1.setLayoutData(getGridData()); itemComposite1.setBackground(display.getSystemColor(SWT.COLOR_GREEN)); TabItem item1 = new TabItem(tabFolder, SWT.NONE); item1.setText("Item 1"); item1.setControl(itemComposite1); // second tab item Composite itemComposite2 = new Composite(tabFolder, SWT.NONE); itemComposite2.setLayout(new GridLayout()); itemComposite2.setLayoutData(getGridData()); itemComposite2.setBackground(display.getSystemColor(SWT.COLOR_BLUE)); TabItem item2 = new TabItem(tabFolder, SWT.NONE); item2.setText("Item 2"); item2.setControl(itemComposite2); // bottom composite in the sash formm Composite bottomComposite = new Composite(sashForm, SWT.BORDER); bottomComposite.setLayout(new GridLayout()); bottomComposite.setLayoutData(getGridData()); bottomComposite.setBackground(display.getSystemColor(SWT.COLOR_RED)); // layout the shell shell.layout(); } private void run() { shell.open(); while (shell != null && !shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } } private GridData getGridData() { GridData gridData = new GridData(); gridData.grabExcessHorizontalSpace = true; gridData.grabExcessVerticalSpace = true; gridData.horizontalAlignment = GridData.FILL; gridData.verticalAlignment = GridData.FILL; return gridData; } public static void main(String[] args) { TestMacTabFolder testMacSashForm = new TestMacTabFolder(); testMacSashForm.run(); } }
2005-05-26 14:46:47
1,117,130,000
resolved fixed
cd672be
1,117,480,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TabFolder.java
SWT
2,839
93,724
Bug 93724 Drag-and-drop creates signal names every time
Here is an example of some code in DragSource.java for GTK+: byte[] buffer = Converter.wcsToMbcs(null, "drag_data_get", true); OS.g_signal_connect(control.handle, buffer, DragGetData.getAddress(), 0); buffer = Converter.wcsToMbcs(null, "drag_end", true); OS.g_signal_connect(control.handle, buffer, DragEnd.getAddress(), 0); buffer = Converter.wcsToMbcs(null, "drag_data_delete", true); OS.g_signal_connect(control.handle, buffer, DragDataDelete.getAddress(), 0); Rather than converting the names for the signals every time, these signal names should be defined in OS.java so that they can be only created once.
2005-05-04 17:35:58
1,115,240,000
resolved fixed
27237e4
1,117,480,000
bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
SWT
2,840
91,547
Bug 91547 Insertion line in TreeViewer does not show up during drag operation
Using the Visual Editor, create a Shell application, drop two controls onto the Shell. In the Beans view (tree view), drag the second control before the first control. The insertion line does not show up anywhere when dragging the control in the tree view.
2005-04-15 10:54:09
1,113,580,000
resolved fixed
9d88cc5
1,117,480,000
bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TreeDragUnderEffect.java
SWT
2,841
97,340
Bug 97340 MouseEnter not fired when scroll bar released
1. Run the following example. 2. Type a load of text in the StyledText so that it gets a vertical scrollbar. 3. Drag around the scrollbar. While dragging, move the mouse above the StyledText widget. 4. Release the mouse. No MouseEnter event is fired. Reproducable on Linux-GTK and Linux-Motif, works on Carbon and win32. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); StyledText text = new StyledText(shell, SWT.H_SCROLL|SWT.V_SCROLL); shell.setSize(320, 240); text.addListener(SWT.MouseEnter, new Listener() { public void handleEvent(Event event) { System.out.println("ENTER x: " + event.x); } }); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2005-05-30 14:51:53
1,117,480,000
resolved fixed
3c252d2
1,117,480,000
bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
SWT
2,842
96,723
Bug 96723 Table not shown when there are no rows initially
I am using eclipse 3.1m7 on several platforms (linux, windows and aix) and it only has this problem when I run on AIX ( AIX 5.1, with Motif, java 1.4.2). The problem was not there on 3.1m6 or 3.0.1 If I start running with no TableItems, the table does not show the column header text (even though they were set to be visible. Also, later when TableItems are added, they do not show up in the table. I have a work-around by making sure that at least 1 TableItem exists, Even if the text in the cells are just empty Strings)
2005-05-25 19:10:59
1,117,060,000
resolved fixed
a3431aa
1,117,220,000
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
2,843
96,042
Bug 96042 computeTrim() is not returning the correct value
Snippet showing the problem (in 3.1M7): public static void main(String[] args) { Display d = new Display(); final Shell shell = new Shell(SWT.TOOL | SWT.ON_TOP); shell.setSize(100, 100); System.out.println(shell.computeTrim(0,0,0,0)); shell.open(); for (int i = 0; i < 5; i++) if (!d.readAndDispatch()) d.sleep(); shell.dispose(); } Clearly, the shell has a trim, but computeTrim() doesn't reflect that.
2005-05-19 18:58:22
1,116,540,000
resolved fixed
92b1989
1,117,220,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java
SWT
2,844
96,692
Bug 96692 GC.setClipping fails to overwrite previous clipping after AA turned on
public static void main(String[] args) { Display display = new Display(); final Shell shell = new Shell(display); shell.setText("Shell"); shell.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { e.gc.setClipping(20, 20, 100, 100); e.gc.setAntialias(SWT.ON); e.gc.setClipping(50, 50, 200, 200); e.gc.drawLine(50, 200, 200, 50); } }); shell.setSize(500, 380); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2005-05-25 15:40:36
1,117,050,000
resolved fixed
6b71999
1,117,130,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,845
81,232
Bug 81232 X Error in GC.drawText()
eclipse.buildId=I20041214-2000 test_drawTextLjava_lang_StringIII(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_GC) java.lang.StackOverflowError
2004-12-15 11:51:16
1,103,130,000
resolved fixed
64effad
1,117,130,000
bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Device.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java
SWT
2,846
96,445
Bug 96445 Need API to check advanced graphics mode
Most operating systems offer a different library to do advanced graphics (Mac does not). The advanced graphics support in SWT makes use of this library to implement features such as antialiasing, tranformations, alpha etc. When one of these features is requested, SWT graphics begins to use the advanced library for all graphics operations, even those that are not advanced. Since two different operating system graphics libraries are in use, there may be differences in output (such as string measuring) and performance. We would like to add GC.getAdvanced() and GC.setAdvanced(boolean) to allow appliations to have control over advanced mode.
2005-05-24 11:23:44
1,116,950,000
resolved fixed
e88f9a0
1,117,120,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT
2,847
86,819
Bug 86819 TreeEditor doesn't scroll with the Tree
hen you place a TreeEditor on a TreeItem of a Tree, and when you scroll the Tree using the mouse wheel, the TreeEditor doesn't scroll with the Tree. Example code: import org.eclipse.swt.SWT; import org.eclipse.swt.custom.TreeEditor; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.*; public class TreeScroll { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Tree tree = new Tree(shell, SWT.BORDER); tree.setLinesVisible(true); TreeColumn column = new TreeColumn(tree, SWT.NONE); column.setWidth(200); for (int i = 0; i < 20; i++) { TreeItem item = new TreeItem(tree, SWT.NONE); item.setText("item " + i); } TreeItem[] items = tree.getItems(); TreeEditor editor = new TreeEditor(tree); Text text = new Text(tree, SWT.NONE); text.setText("text editor"); editor.grabHorizontal = true; editor.setEditor(text, items[6]); text.setFocus(); shell.pack(); shell.setSize(250, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } To reproduce the bug, execute the example and scroll the tree using the mouse wheel. All items are scrolling, but the editor (on item 6) rest in place. When using directly the scroll bar, it works. I'm using Eclipse 3.1M5a.
2005-02-28 07:39:26
1,109,590,000
resolved fixed
3cca361
1,117,070,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,848
82,169
Bug 82169 In console pane, cannot click "Terminate" and then "Remove all Terminated launches" without clicking somewhere else in between
This is when I terminate a Java program I'm running. The "Remove all Terminated launches" enables after clicking Terminate, but clicking it does nothing until I click somewhere else first. I believe this bug has existed for a while, I seem to remember since I first started using eclipse, with one of the 3.0 milestone builds. I only experience this in GTK, works fine in windows.
2005-01-04 14:01:51
1,104,870,000
resolved fixed
840e85c
1,117,050,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
SWT
2,849
96,635
Bug 96635 Repaint problem with Table, Image and SWT_HIDE_SELECTION
Having a Table with the Hint SWT.HIDE_SELECTION and an Image inside the TableItem, makes some problems. When the Table has lost Focus, the Row hides the Selection for the Text, but the Image is still painted in the Selection Color. Reproduce with this Snippet: public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Image image = new Image(display, 16, 16); Table table1 = new Table(shell, SWT.BORDER | SWT.HIDE_SELECTION); TableItem item1 = new TableItem(table1, SWT.NONE); item1.setText("Hello World"); item1.setImage(image); Table table2 = new Table(shell, SWT.BORDER | SWT.HIDE_SELECTION); TableItem item2 = new TableItem(table2, SWT.NONE); item2.setText("Hello World"); item2.setImage(image); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } 1.) Click into Left Table 2.) Click into Right Table Ben
2005-05-25 12:08:15
1,117,040,000
resolved fixed
84354eb
1,117,040,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,850
96,494
Bug 96494 Memory Leak in EventTable listener array
The EventTable arrays will grow infinitely in the presence of just a pair of listeners. Put a breakpoint in hook with a hit count of 20 and start typing. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); final Text text = new Text(shell, SWT.NONE); text.setBounds(10, 10, 90, 30); text.setText("blah"); class Hooked implements ModifyListener, VerifyListener { public void modifyText(ModifyEvent e) { text.removeModifyListener(this); text.addVerifyListener(this); } public void verifyText(VerifyEvent e) { text.removeVerifyListener(this); text.addModifyListener(this); } }; text.addModifyListener(new Hooked()); text.addModifyListener(new Hooked()); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } }
2005-05-24 14:56:36
1,116,960,000
resolved fixed
31ecf4c
1,117,040,000
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/EventTable.java
SWT
2,851
85,645
Bug 85645 Typeahead broken for Table and Tree
I20050215-2300 The native GTK+ typeahead feature is not working on Table and Tree, but is working for List. It seems that either the order of the columns in our model, or the number of columns, is causing GTK+ to be unable to tell which is the correct column to use. The fix is to use gtk_tree_view_set_search_column() ourselves to indicate which column should be searched. The attached patch works but there are some open issues: 1. Will the column number I am using always be correct? Could this constant be stored somewhere better? 2. The documentation indicates that this function has been there forever, but that it "turns on interactive searching". Should we not set this value for GTK+ versions before 2.6, where interactive searching was not on by default?
2005-02-16 22:33:20
1,108,610,000
resolved fixed
7a5eebc
1,117,030,000
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
2,852
95,890
Bug 95890 [Perspectives] MenuManager.update() causes menu to be redrawn too often
When I change perspective 9 times, MenuManager.updateAll() is called 9 times. MenuManager.update(force,recursive) ends up being called 78 times. While removing the included obsolete menu items, mi[i].dispose() causes a redraw of the menu for each dispose, happening 162 times. MenuItem.dispose -> MenuItem.releaseChild -> Menu.destroyItem -> Menu.redraw. Menu.redraw is called 162 time and 4.1% of perspective switching is spent here. MenuManager.updateAll should contain code to say menu.setRedraw(false), do all the removals, and then do menu.setRedraw(true); As an aside, WorkbenchWindow.updateActionBars() uses 16.5% of CPU. Of that, MenuManager.updateAll() uses 15.1% and CoolbarManager.update() only 1.3%
2005-05-19 00:10:26
1,116,480,000
resolved fixed
41d2a85
1,116,990,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
SWT
2,853
96,411
Bug 96411 TreeColumn causes vertical scroll to appear
Adding a TreeColumn to a Tree control causes the vertical scrollbar to appear even when not needed. The following code is an extract of a ViewPart extension: public void createPartControl(Composite parent) { tree = new Tree(parent, SWT.SINGLE); tree.setLinesVisible(false); tree.setHeaderVisible(true); // The following line causes the vertical scrollbar to appear TreeColumn treeColumn = new TreeColumn(tree, SWT.LEFT); }
2005-05-24 07:08:03
1,116,930,000
resolved fixed
bba14a1
1,116,990,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,854
95,756
Bug 95756 Tables don't repaint
3.1 M7, GTK+ 2.6.4, KDE 3.3.2, X.org 6.8.2, Linux 2.6.11 If a table becomes obscured, it may not repaint properly when it becomes visible again. STEPS TO REPRODUCE: ------------------ 1.) Open the keys preference page 2.) Move the dialog off the screen. 3.) Move back on the screen. With these steps, the table headers will sometimes not appear, or only paint partially. If the table is enabled, moving the mouse over a table column header will cause that table column header to repaint. If the table is disabled, the table headers will remain unpainted or partially painted.
2005-05-18 10:17:09
1,116,430,000
resolved fixed
ea63341
1,116,970,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
SWT
2,855
95,648
Bug 95648 GP on Motif Table with PNG image
The following code GPs for me every time with: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 73 (X_GetImage) Serial number of failed request: 7824 Current serial number in output stream: 7824 The image is a PNG file which I will attach. public static void main(String[] args) { Display display = new Display(); Image image = new Image(display, Test.class.getResourceAsStream("a.png")); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); TabFolder tf = new TabFolder(shell, SWT.NONE); TabItem ti = new TabItem(tf, SWT.NONE); ; Table table = new Table (shell, SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION); String[] titles = {" ", "C", "!", "Description", "Resource", "In Folder", "Location"}; for (int i=0; i<titles.length; i++) { TableColumn column = new TableColumn (table, SWT.NULL); column.setText (titles [i]); } int count = 128; for (int i=0; i<count; i++) { TableItem titem = new TableItem (table, SWT.NULL); titem.setText (0, "x"); titem.setText (1, "y"); titem.setText (2, "!"); titem.setText (3, "this stuff behaves the way I expect"); titem.setText (4, "almost everywhere"); titem.setText (5, "some.folder"); titem.setText (6, "line " + i + " in nowhere"); titem.setImage(image); } for (int i=0; i<titles.length; i++) { table.getColumn (i).pack (); } table.setSize (table.computeSize (SWT.DEFAULT, 200)); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2005-05-17 16:06:55
1,116,360,000
resolved fixed
f9ca8b1
1,116,960,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java
SWT
2,856
76,823
Bug 76823 [doc] Display.asyncExec example needs to check for isDisposed
The example cited in the online SWT documentation should add a test: // do time-intensive computations ... // now update the UI. We don't depend on the result, // so use async. display.asyncExec (new Runnable () { public void run () { if (myWindow.isDisposed()) // check if still around return; myWindow.redraw (); } }); // now do more computations In some products, I've noticed .log files littered with exceptions because the asyncExec is processed after the window has already closed. It wouldn't be a bad idea to integrate this check into the SWT API, e.g.: myWindow.asyncUpdate(new Runnable...); This in turn would check if the widget still exists before executing the runnable.
2004-10-22 12:12:08
1,098,460,000
resolved fixed
280dfd2
1,116,950,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
SWT
2,857
94,946
Bug 94946 FileDialog should inherit image from parent shell
Hi, I noticed that the FileDialog comes with a default icon instead to inherit the icon from the parent shell. And as I can see there is no way to change the icon. So, I think to inherit the icon should be the default behaviour. The behaviour occurs with the GTK 3134 build. And also occurs in the Eclipse IDE 3.1M6(GTK) with "Open external file...".
2005-05-12 08:56:47
1,115,900,000
resolved fixed
3d2513f
1,116,630,000
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/ColorDialog.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java
SWT
2,858
94,598
Bug 94598 DBCS3.1:Eclipse hangs when activate IIMF input in search scope of Help
OS: <RHEL 4.0> Language: <Traditional Chinese> Build level: <Eclipse SDK 3.1 M6 - I20050506-1600> JDK version: <IBM JDK 1.4.2 SP1a> Test case #: <5.3 Search scope with NLS name(Help)> Summary: DBCS3.1:Eclipse hangs when activate IIMF input in search scope of Help Steps to recreate problem: 1- Install Eclipse SDK and NL pack 2- Click "Help" from menu -> select "Help Content" -> Click "Search Scope", a Search Scope dialog pop up. 3- Select "Search all topics", Click "New", the New Search List dialog pop up. 4- Then try to active IIMF input method by "CTRL+SPACE" key in order to input DBCS characters, but Eclipse hangs. No response from Eclipse. Error: Eclipse hangs and can't switch or change any input method. Expected Result: IIMF input should be working properly for inputing/key in DBCS characters.
2005-05-11 00:01:14
1,115,780,000
closed fixed
7e57b36
1,116,630,000
bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/Browser.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
SWT
2,859
95,018
Bug 95018 Cheese in TreeItem checkbox
Version: 3.1.0 Build id: I20050512-1200 Select Run -> Run... make a new Eclipse Application Select eclipse application and go to plugins tab Select "Choose plug-ins and fragments to launch from list" Check and uncheck items from tree Notice that the top right tip of the check mark sometimes gets left behind as cheese. Don't see this happening in ControlExample.
2005-05-12 14:46:12
1,115,920,000
resolved fixed
29682f2
1,116,630,000
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
2,860
96,080
Bug 96080 [OpenModes] click on selected line no longer goes to match
N20050520-0010 Clicking on an already selected line in 'Flat Layout' no longer goes to match. This is quite a pain. Worked in M7. 0. set open mode to 'Single click' 1. JUnit setup 2. search for references to 'Test' 3. open one of the matches 4. in the file place the caret somewhere else 5. click on the same match again ==> nothing happens 6. open another file 7. click on the same match again ==> nothing happens
2005-05-20 07:31:18
1,116,590,000
verified fixed
810a097
1,116,630,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT