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,461
113,019
Bug 113019 Browser.setText() sometimes appends dust characters after html
In DocumentComplete event handling block, Browser allocates memory with size of UTF8BOM and html, but does not care for stream size. GlobalAlloc rounds its size, so allocated memory size is different from required size. Without GMEM_ZEROINIT, memory will be rough. IStream eats them unrequired garbage. It should be allocated with GMEM_ZEROINIT. Or stream size should be set by IStream.SetSize (this is better but not implemented now).
2005-10-18 18:49:44
1,129,680,000
resolved fixed
51c921b
1,142,880,000
bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Browser.java
SWT
2,462
127,373
Bug 127373 Hyperlinks covered by a table widget receives a linkActivated event when double click on the table
A hyperlink widget is getting activated wrongly when one double click on a table (SelectionDialog) wich covers the hyperlink. This behaviour can be easily reproduced at the plugin.xml editor page. Choose the "Browse..." button and move the upcomming dialog over a hyperlink widget and double click onto an element within the dialogs table. The underlying hyperlink will get activated.
2006-02-11 10:44:34
1,139,670,000
resolved fixed
75a7307
1,142,630,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
SWT
2,463
128,750
Bug 128750 Error occurs when delete text in StyledText
null
2006-02-21 01:08:53
1,140,500,000
resolved fixed
f6d78f0
1,142,630,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
SWT
2,464
131,906
Bug 131906 StackOverflowError in StyledText
I20060314-1200 I had to kill the Workbench because of this. java.lang.StackOverflowError at org.eclipse.jface.text.projection.ProjectionMapping.getImageLength(ProjectionMapping.java:571) at org.eclipse.jface.text.projection.ProjectionTextStore.getLength(ProjectionTextStore.java:121) at org.eclipse.jface.text.AbstractDocument.getLength(AbstractDocument.java:800) at org.eclipse.jface.text.AbstractDocument.computeIndexInCategory(AbstractDocument.java:495) at org.eclipse.jface.text.projection.ProjectionMapping.findSegmentIndex(ProjectionMapping.java:107) at org.eclipse.jface.text.projection.ProjectionMapping.toExactOriginRegions(ProjectionMapping.java:537) at org.eclipse.jface.text.projection.ProjectionTextStore.get(ProjectionTextStore.java:144) at org.eclipse.jface.text.AbstractDocument.get(AbstractDocument.java:997) at org.eclipse.jface.text.DefaultDocumentAdapter.doGetLine(DefaultDocumentAdapter.java:145) at org.eclipse.jface.text.DefaultDocumentAdapter.getLine(DefaultDocumentAdapter.java:168) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:727) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:673) at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:4728) at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:6612) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:892) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:673) at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:4728) at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:6612) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:892) at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:673) at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:4728) at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:6612) ...
2006-03-15 06:44:35
1,142,420,000
resolved fixed
b5d3c82
1,142,550,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java
SWT
2,465
131,727
Bug 131727 SWT_AWT frames in task bar
On switching between windows there are SWT panels disposed with embedded AWT (with SWT_AWT.newFrame). On this actions I got empty windows appearing in taskbar (windows). It could be acceptable for 1 but when I see appearing 5 in a time and disappearing, it doesn't look nice. Perhaps, instead of the "invokeLater" on disposing frame, should be used some kind of "invokeAndWait"
2006-03-14 11:11:15
1,142,350,000
resolved fixed
5b3222d
1,142,540,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
SWT
2,466
132,089
Bug 132089 Tree: Text corruption in cells after moving column 0 and resizing column
SWT CVS Win32 This problem only occurs if TreeColumn 0 is moved and resized. Setting it as the sort column doesn't seem to matter, but it highlights the problem in this snippet. 1. Move column 0 (drag and drop). 2. Resize that same selected column thinner and then wider. The text in all cells in that column becomes corrupted. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final Tree tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); for (int i = 0; i < columns; i++) { TreeColumn tc = new TreeColumn(tree, SWT.LEFT); tc.setWidth(75); tc.setMoveable(true); } tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); tree.setItemCount(10); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; String text = String.valueOf(event.index) + "MMMMMMMMMMMMMMMMMMMMMMMM"; for (int i = 0; i <= columns; i++) { item.setText(i, text); } } }); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-16 00:18:12
1,142,490,000
resolved fixed
0c70daa
1,142,530,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,467
131,724
Bug 131724 adding PaintItemListener to Table causes NPE
- run the snippet below and you'll get the NPE shown at the bottom public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,200,250); final Table table = new Table(shell, SWT.CHECK); table.setBounds(10,10,150,140); new TableItem(table, SWT.NONE).setText("item one"); table.addListener(SWT.PaintItem, new Listener() { public void handleEvent(Event event) { } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } Exception in thread "main" java.lang.NullPointerException at org.eclipse.swt.widgets.Table.rendererRenderProc(Table.java:2397) at org.eclipse.swt.widgets.Display.rendererRenderProc(Display.java:1221) at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5233) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1128) at org.eclipse.swt.internal.gtk.OS._gdk_window_process_updates(Native Method) at org.eclipse.swt.internal.gtk.OS.gdk_window_process_updates(OS.java:3379) at org.eclipse.swt.widgets.Control.update(Control.java:3667) at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1441) at org.eclipse.swt.widgets.Shell.open(Shell.java:988) at win32.Main.main(Main.java:25
2006-03-14 10:56:04
1,142,350,000
resolved fixed
95a4750
1,142,440,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,468
129,999
Bug 129999 EraseItem event's gc does not have the item's colours or font set
- run the snippet below - on all other platforms the snippet does not spew any "...didn't match..." messages public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setBounds(10,10,200,200); final Table table = new Table(shell, SWT.NONE); table.setBounds(10,10,150,150); new TableColumn(table, SWT.NONE).setWidth(100); FontData data = table.getFont().getFontData()[0]; data.setHeight(data.getHeight() - 2); final Font otherFont = new Font(display, data); final Color[] colours = new Color[] { display.getSystemColor(SWT.COLOR_BLUE), display.getSystemColor(SWT.COLOR_CYAN), display.getSystemColor(SWT.COLOR_GRAY), }; for (int i = 0; i < 2; i++) { TableItem item = new TableItem(table, SWT.NONE); item.setText("item " + i); item.setForeground(colours[i]); item.setBackground(colours[i+1]); item.setFont(otherFont); } table.addListener(SWT.EraseItem, new Listener() { public void handleEvent(Event event) { int index = table.indexOf((TableItem)event.item); if (!event.gc.getFont().equals(otherFont)) { System.out.println("the font didn't match for item " + index); } /* custom colurs do not apply if item is selected because selection colours are used */ if (table.isSelected(index)) return; if (!event.gc.getForeground().equals(colours[index])) { System.out.println("the foreground didn't match for item " + index); } if (!event.gc.getBackground().equals(colours[index + 1])) { System.out.println("the background didn't match for item " + index); } } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } otherFont.dispose(); display.dispose(); }
2006-03-01 12:50:31
1,141,240,000
resolved fixed
44bd6ed
1,142,440,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,469
127,827
Bug 127827 implement background image in Table and Tree
null
2006-02-14 13:44:37
1,139,940,000
resolved fixed
c2e5c64
1,142,440,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/TableItem.java bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Tree.java bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/TreeItem.java
SWT
2,470
131,805
Bug 131805 Tree: Sorted background column colour does not move with movable columns
SWT Win32 CVS Drag a Tree column header to a different location. The sorted background colour does not move with the column. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final Tree tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); for (int i = 0; i < columns; i++) { TreeColumn tc = new TreeColumn(tree, SWT.LEFT); tc.setWidth(75); tc.setMoveable(true); } tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); tree.setItemCount(10); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; String text = String.valueOf(event.index); for (int i = 0; i <= columns; i++) { item.setText(i, text); } } }); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-14 15:37:33
1,142,370,000
resolved fixed
1c53659
1,142,380,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,471
131,739
Bug 131739 adding EraseItem listener to Tree causes major drawing problem
- run the snippet below - an image with the Tree that this shows is attached public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,200,200); final Tree tree = new Tree(shell, SWT.NONE); tree.setBounds(10,10,150,150); new TreeItem(tree, SWT.NONE).setText("item 0"); new TreeItem(tree, SWT.NONE).setText("item 1"); tree.addListener(SWT.EraseItem, new Listener() { public void handleEvent(Event event) { } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-14 12:00:32
1,142,360,000
resolved fixed
249534e
1,142,370,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java
SWT
2,472
130,605
Bug 130605 CBanner needs to use both the left and right sides to compute its height
The CBanner currently calculates its height based on the height of the left hand side. The new trim work needs it to be capable of checking both sides and basing its height on the max of the two areas. (Soory for the delay in opening this; I guess I coulda/shoulda opened it right after my meeting with Veronika)
2006-03-06 13:56:23
1,141,670,000
resolved fixed
f66a4a7
1,142,360,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBannerLayout.java
SWT
2,473
128,400
Bug 128400 class ST misuses javadoc comments as category headers
I20060216-2000 Class org.eclipse.swt.custom.ST misuses javadoc comments as category headers. The generated javadoc looks strange, since only a few apparently random constants have a javadoc. Either each constant should get its own javadoc, or the javadocs should be converted back to non-javadoc comments.
2006-02-17 08:39:07
1,140,180,000
resolved fixed
812ce2c
1,142,360,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ST.java
SWT
2,474
131,654
Bug 131654 Decorations.computeTrim can cause program to hang
SWT-win32, v3228 - Run the snippet below - The while loop in Decorations.computeTrim never terminates, causing the test case to hang --- import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; public class ShellHangTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setMenuBar(new Menu(shell, SWT.BAR)); shell.setVisible(true); shell.setMinimized(true); shell.setVisible(false); System.out.println("Before shell.computeTrim"); shell.computeTrim(0, 0, 100, 100); System.out.println("After shell.computeTrim"); display.dispose(); } }
2006-03-13 23:57:15
1,142,310,000
resolved fixed
a088931
1,142,350,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java
SWT
2,475
131,393
Bug 131393 adding TableColumn at index 0 makes cell disappear
- run the snippet below - press the button, which creates a TableColumn at index 0 with width 60 - note that when this column is created that item 0's column 0 text disappears public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,300,300); final Table table = new Table(shell, SWT.NONE); table.setBounds(10,10,200,200); table.setLinesVisible(true); table.setHeaderVisible(true); for (int i = 0; i < 2; i++) { TableColumn column = new TableColumn(table, SWT.NONE); column.setWidth(60); column.setText("col" + i); } new TableItem(table, SWT.NONE).setText(new String[] {"item0col0", "item0col1"}); shell.open(); Button button = new Button(shell, SWT.PUSH); button.setBounds(10,230,70,30); button.setText("Push"); button.addListener(SWT.Selection, new Listener() { public void handleEvent(Event event) { new TableColumn(table, SWT.NONE, 0).setWidth(60); // <-- } }); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-10 15:52:59
1,142,020,000
resolved fixed
f5e57c3
1,142,350,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java
SWT
2,476
128,719
Bug 128719 [StyledText] A lot of cheese displaying Japaneese and Chinese
I am not sure wether this is a known issue, but the new StyledText seems to have some problems rendering Japanese and Chinese. I can reproduce with M4 and M5. See the attached images. Ben
2006-02-20 15:41:53
1,140,470,000
resolved fixed
b6c6479
1,142,350,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java
SWT
2,477
131,625
Bug 131625 Tree adds useless vertical scrollbar
SWT CVS win32 The tree adds a vertical scrollbar that is useless, the table does not. I'm also not sure why the clientArea() of the tree is negative(0,-20...). TREE CLIENT AREA: Rectangle {0, -20, 392, 562} BOUNDS: Rectangle {0, 0, 396, 566} TABLE CLIENT AREA: Rectangle {0, 0, 392, 562} BOUNDS: Rectangle {396, 0, 396, 566} public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final int itemCount = 15; final Tree tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); tree.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TreeColumn(tree, SWT.LEFT).setWidth(75); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; int index = event.index; TreeItem parentItem = item.getParentItem(); String text = null; if (parentItem == null) { text = "node " + tree.indexOf(item); } else { text = parentItem.getText() + " - " + parentItem.indexOf(item); } for (int i = 0; i < columns; i++) { item.setText(i, text); } if (index % 2 == 0) { Color c = display.getSystemColor(SWT.COLOR_DARK_YELLOW); item.setBackground(c); } item.setItemCount(itemCount); } }); final Table table = new Table(shell, SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); table.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TableColumn(table, SWT.LEFT).setWidth(75); table.setLinesVisible(true); table.setHeaderVisible(true); table.setSortDirection(SWT.DOWN); table.setSortColumn(table.getColumn(0)); table.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TableItem item = (TableItem) event.item; int index = event.index; String text = null; text = "node " + index; for (int i = 0; i < columns; i++) { item.setText(i, text); } if (index % 2 == 0) { Color c = display.getSystemColor(SWT.COLOR_DARK_YELLOW); item.setBackground(c); } } }); final int timerDelay = 1250; final Runnable r = new Runnable() { public void run() { if (c++ >= columns - 1) c = 0; int dir = table.getSortDirection() == SWT.DOWN ? SWT.UP : SWT.DOWN; tree.setItemCount(itemCount); table.setItemCount(itemCount); table.setSortDirection(dir); table.setSortColumn(table.getColumn(c)); tree.setSortColumn(tree.getColumn(c)); tree.setSortDirection(dir); display.timerExec(timerDelay, this); } }; display.timerExec(timerDelay, r); shell.setSize(800, 600); shell.open(); System.err.println("TREE CLIENT AREA: " + tree.getClientArea() + "\tBOUNDS: " + tree.getBounds()); System.err.println("TABLE CLIENT AREA: " + table.getClientArea() + "\tBOUNDS: " + table.getBounds()); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-13 19:43:02
1,142,300,000
resolved fixed
8a56e0c
1,142,300,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,478
131,623
Bug 131623 Tree selected column bgcolour does not draw on empty rows when setting a tree background colour
SWT Win32 CVS Without the call to tree.setBackground(), the selected column background color fills in all empty rows at the bottom of the tree. With it, the rows are not filled in with the select column background colour. The table widget fills it in properly. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final int itemCount = 15; final Tree tree = new Tree(shell, SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); tree.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TreeColumn(tree, SWT.LEFT).setWidth(75); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; int index = event.index; TreeItem parentItem = item.getParentItem(); String text = null; if (parentItem == null) { text = "node " + tree.indexOf(item); } else { text = parentItem.getText() + " - " + parentItem.indexOf(item); } for (int i = 0; i < columns; i++) { item.setText(i, text); } if (index % 2 == 0) { Color c = display.getSystemColor(SWT.COLOR_DARK_YELLOW); item.setBackground(c); } item.setItemCount(itemCount); } }); final Table table = new Table(shell, SWT.H_SCROLL | SWT.V_SCROLL | SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); table.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TableColumn(table, SWT.LEFT).setWidth(75); table.setLinesVisible(true); table.setHeaderVisible(true); table.setSortDirection(SWT.DOWN); table.setSortColumn(table.getColumn(0)); table.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TableItem item = (TableItem) event.item; int index = event.index; String text = null; text = "node " + index; for (int i = 0; i < columns; i++) { item.setText(i, text); } if (index % 2 == 0) { Color c = display.getSystemColor(SWT.COLOR_DARK_YELLOW); item.setBackground(c); } } }); final int timerDelay = 1250; final Runnable r = new Runnable() { public void run() { if (c++ >= columns - 1) c = 0; int dir = table.getSortDirection() == SWT.DOWN ? SWT.UP : SWT.DOWN; tree.setItemCount(itemCount); table.setItemCount(itemCount); table.setSortDirection(dir); table.setSortColumn(table.getColumn(c)); tree.setSortColumn(tree.getColumn(c)); tree.setSortDirection(dir); display.timerExec(timerDelay, this); } }; display.timerExec(timerDelay, r); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-13 19:39:25
1,142,300,000
resolved fixed
d9e0480
1,142,300,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,479
131,627
Bug 131627 Tree: Empty tree does not show selected column background colour, unlike Table
SWT win32 CVS The empty tree has a selected column, but even when no background colour is set, the column is not drawn with the selected column. The table does have the selected column colour. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final int columns = 5; final Tree tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI); // tree.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TreeColumn(tree, SWT.LEFT).setWidth(75); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setSortDirection(SWT.DOWN); tree.setSortColumn(tree.getColumn(0)); final Table table = new Table(shell, SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); // table.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); for (int i = 0; i < columns; i++) new TableColumn(table, SWT.LEFT).setWidth(75); table.setLinesVisible(true); table.setHeaderVisible(true); table.setSortDirection(SWT.DOWN); table.setSortColumn(table.getColumn(0)); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-13 19:50:25
1,142,300,000
resolved fixed
667736f
1,142,300,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java
SWT
2,480
83,133
Bug 83133 Expose causes dialog to move behind shell.
1) Switch to "CVS Repositories" perspective 2) Right click in CVS Repositories view and select New -> Repository Location... 3) When the dialog opens, activate Expose (usually F9) 4) Now click on the main window (i.e. not on the dialog) Notice that the dialog window moves behind the main window, although the main window does not become active.
2005-01-18 14:33:43
1,106,080,000
resolved fixed
9e19a2c
1,142,290,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/widgets/Shell.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Widget.java
SWT
2,481
130,756
Bug 130756 Tree does not use the OSs selected column background color
The Table sets a selected column background color on Win32 using the .manifest file. (Hopefully a configurable option in the future) An option to use this same color on a Tree's selected columns is not available, nor is this color available from Display.getSystemColor() so that it could be emulated by the app for consistency between Trees and Tables.
2006-03-07 12:01:52
1,141,750,000
resolved fixed
dab9408
1,142,280,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java
SWT
2,482
125,656
Bug 125656 Eclipse freezes dismissing popup windows (Quick Fix, Spell Check, etc)
I'm a CS professor and have been programming and teaching Java since it came out. But I've always used BBEDIT+ javac for my development on MAC & UNIX. Now I'm learning about Eclipse with simple examples like "Hello world" but I find often that Eclipse stops responding and I have to use the FINDER "FORCE QUIT". I'm using Eclipse 3.1 and Mac OSX 10.4.4. What more can I say. Mainly it occurs when I'm editing source code. Today I've been doing JUNIT Tutorials. So I download examples off the Internet and do cut and paste of code from the browser window. Wish I could be more helpful but my code examples are quite simple and generally they work but then the application stops responding.... and it's the only application of the many I use that does this. So I'll go back to BBEDIT and javac.
2006-01-29 18:36:33
1,138,580,000
resolved fixed
58de877
1,142,280,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java
SWT
2,483
131,585
Bug 131585 notifed is not a word
This is really minor, but I frequently see this phrase in SWT doc: "Adds the listener to the collection of listeners who will be notifed... " Where "notifed" should be spelled "notified". Trivial, but a quick search found 45 references to the non-word "notifed" in the SWT javadoc.
2006-03-13 14:20:32
1,142,280,000
resolved fixed
0d28468
1,142,280,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java
SWT
2,484
129,526
Bug 129526 Proposal for new snippet : Non-rectangular Shell using transparent images
null
2006-02-27 03:25:10
1,141,030,000
resolved fixed
aee5bcc
1,142,270,000
examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet219.java
SWT
2,485
123,188
Bug 123188 Snippet 212 has error, embedded image overlapped with text
null
2006-01-09 22:43:16
1,136,860,000
resolved fixed
333eb2d
1,142,030,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
SWT
2,486
131,160
Bug 131160 background color problems in tree with columns
I20060309-1000 The background color in tree columns gets corrupted when a window is moved to the background and then brought back to the foreground. The background color is extended to the "non-existant n+1" column in the tree (i.e. if a tree has 2 columns, the 3rd column takes on the background color of the 2nd column). Example code: import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.ShellAdapter; import org.eclipse.swt.events.ShellEvent; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.graphics.RGB; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.TreeColumn; import org.eclipse.swt.widgets.TreeItem; public class TreeExample implements Listener { private static boolean done = false; int counter = 0; public Color red; public static void main(String[] args) { TreeExample example = new TreeExample(); Shell shell = example.openShell(); shell.addShellListener(new ShellAdapter() { public void shellClosed(ShellEvent e) { done = true; super.shellClosed(e); } }); example.createTree(shell); example.waitForClose(); } public Shell openShell() { Shell shell = new Shell(Display.getCurrent(), SWT.CLOSE | SWT.RESIZE | SWT.TITLE); shell.open(); return shell; } public void waitForClose() { while (!done) { Display.getCurrent().readAndDispatch(); } } public void createTree(Shell shell) { GridLayout layout = new GridLayout(1, true); shell.setLayout(layout); Button button = new Button(shell, SWT.PUSH); button.setText("Next"); final Tree tree = new Tree(shell, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER | SWT.VIRTUAL); GridData gd = new GridData(GridData.FILL_BOTH); tree.setLayoutData(gd); tree.addListener(SWT.SetData, this); TreeColumn column = new TreeColumn(tree, SWT.NONE); column.setText("ONE"); column = new TreeColumn(tree, SWT.NONE); column.setText("TWO"); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.setItemCount(10); red = new Color(tree.getDisplay(), new RGB(255, 0, 0)); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { TreeItem[] items = tree.getItems(); if (counter > items.length) { counter = 0; } for (int i = 0; i < items.length; i++) { TreeItem item = items[i]; if (counter == i) { for (int j = 0; j < tree.getColumnCount(); j++) { item.setBackground(j, red); } } else { for (int j = 0; j < tree.getColumnCount(); j++) { item.setBackground(j, null); } } } counter++; } }); } /* (non-Javadoc) * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ public void handleEvent(Event event) { final int index = event.index; final TreeItem item = (TreeItem) event.item; Integer integer = new Integer(index); item.setData(integer); item.getDisplay().asyncExec(new Runnable() { public void run() { item.setText(new String[]{Integer.toHexString(index + 34), Integer.toHexString(index + 34)}); item.setItemCount(1); } }); } }
2006-03-09 14:00:46
1,141,930,000
resolved fixed
70797a0
1,142,030,000
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,487
92,548
Bug 92548 GB18030: Part of Uigur characters(4-bytes) cause whole line sinkage to 1/3.
OS: SLES9 with SP1 Language: Simplified Chinese Build level: 20050418 JDK version: J2RE 1.4.2 IBM build cxia32142sr1a-20050209 (JIT enabled: jitc) Summary: GB18030: Part of Uigur characters(4-bytes) cause whole line sinkage to 1/3. Steps to recreate problem: 1. Create a simple project. 2. Create a file. 3. Enter [unicode (Uigur set) 06B0 and 06BC] in the editor. --> Problem: The Uigur characters can't be displayed correctly. Expected Result: Uigur characters(4-bytes) could correctly displayed with other characters. Remark: 1. The normal(without Uigur char) and incorrect screen capture is attached. (normal_snapshot.JPG & incorrect_snapshot.JPG) 2. No such problem in Windows & RedHat platform. 3. Other 4-bytes and DBCS character haven't found this problem. 4. Uigur character range. CharSet GB18030 Range Unicode -------------------------------------------------------- Uigur 0x81318132-0x81319934 0x060C-0x06FE 5. Before executing above steps, all the fonts have been set to GB18030 character set from menu Windows -> Preference -> General -> Appearance -> Colors & Fonts.
2005-04-24 23:21:46
1,114,400,000
resolved fixed
f125628
1,142,020,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java
SWT
2,488
108,996
Bug 108996 Support gradient backgrounds for StyledText widgets
The StyledText widget should support gradient backgrounds.
2005-09-07 17:16:51
1,126,130,000
resolved fixed
3c8cfdb
1,141,940,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Canvas.java
SWT
2,489
123,384
Bug 123384 Embedded control in StyledText has some problem with scrolling
Run below snippet. Try to drag scroll bar up and down, will find the button's location sometimes goes wrong. But the image is ok when scrolling. My system is Windows XP Chinese version. public class Snippet { class StyleObject { public static final int IMAGE = 0; public static final int CONTROL = 1; public int objectType; public Object object; public StyleObject(int ot, Object obj) { objectType = ot; object = obj; } public Rectangle getBounds() { switch(objectType) { case IMAGE: return ((Image)object).getBounds(); case CONTROL: return ((Control)object).getBounds(); default: return new Rectangle(0, 0, 0, 0); } } public boolean isDisposed() { switch(objectType) { case IMAGE: return ((Image)object).isDisposed(); case CONTROL: return ((Control)object).isDisposed(); default: return false; } } public void dispose() { switch(objectType) { case IMAGE: ((Image)object).dispose(); break; case CONTROL: ((Control)object).dispose(); break; } } } StyledText styledText; String text = "Embedded images:\u0014 works fine when scrolling\n" + "Embeded control:\u0014 has some problem with scrolling\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n" + "new line\n"; int[] offsets; private StyleObject[] objects; void addObject(StyleObject so, int offset) { StyleRange style = new StyleRange(); style.start = offset; style.length = 1; Rectangle rect = so.getBounds(); style.metrics = new GlyphMetrics(rect.height, 0, rect.width); styledText.setStyleRange(style); } public static void main(String[] args) { Snippet t = new Snippet(); t.run(); } public void run() { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new GridLayout()); styledText = new StyledText(shell, SWT.WRAP | SWT.BORDER | SWT.V_SCROLL); styledText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); styledText.setText(text); Button button = new Button(styledText, SWT.PUSH); button.setText("Button"); button.setCursor(display.getSystemCursor(SWT.CURSOR_ARROW)); button.setSize(button.computeSize(SWT.DEFAULT, SWT.DEFAULT)); objects = new StyleObject[] { new StyleObject(StyleObject.IMAGE, display.getSystemImage(SWT.ICON_QUESTION)), new StyleObject(StyleObject.CONTROL, button) }; offsets = new int[objects.length]; int lastOffset = 0; for(int i = 0; i < objects.length; i++) { int offset = text.indexOf("\u0014", lastOffset); offsets[i] = offset; addObject(objects[i], offset); lastOffset = offset + 1; } styledText.addPaintObjectListener(new PaintObjectListener() { public void paintObject(PaintObjectEvent event) { GC gc = event.gc; StyleRange style = event.style; int start = style.start; for(int i = 0; i < offsets.length; i++) { int offset = offsets[i]; if(start == offset) { switch(objects[i].objectType) { case StyleObject.IMAGE: Image image = (Image)objects[i].object; int x = event.x; int y = event.y + event.ascent - style.metrics.ascent; gc.drawImage(image, x, y); break; case StyleObject.CONTROL: Control control = (Control)objects[i].object; control.setLocation(event.x, event.y + event.ascent - objects[i].getBounds().height); break; } } } } }); shell.setSize(400, 200); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } for(int i = 0; i < objects.length; i++) { if(objects[i] != null && !objects[i].isDisposed()) { objects[i].dispose(); } } display.dispose(); } }
2006-01-11 01:23:20
1,136,960,000
resolved fixed
400a47e
1,141,940,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
SWT
2,490
131,198
Bug 131198 ExpandBar leaves space for scrollbar when not required
Run the following example. The top item should fill as much space as is available. When the shell first opens and when expanding and collapsing the bottom item sometimes there is space left for a scrollbar when none is needed or showing. Also, sometimes the top item does not grow when collapsing the bottom item. Not sure why. public static void main(String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final ExpandBar expandBar = new ExpandBar(shell, SWT.NONE); expandBar.setSpacing(3); ExpandItem item = new ExpandItem(expandBar, SWT.NONE); item.setText("Folders"); item.setExpanded(true); Text label = new Text(expandBar, SWT.BORDER); label.setText("item 1"); item.setControl(label); item = new ExpandItem(expandBar, SWT.NONE); item.setText("Search"); item.setHeight(100); item.setExpanded(false); label = new Text(expandBar, SWT.BORDER); label.setText("item 2"); item.setControl(label); Listener listener = new Listener() { public void handleEvent(Event e) { ExpandItem[] items = expandBar.getItems(); Rectangle area = expandBar.getClientArea(); int spacing = expandBar.getSpacing(); int header0 = 24; //items[0].getHeaderHeight(); int header1 = 24; //items[1].getHeaderHeight(); area.height -= (items.length + 1)*spacing + header0 + header1; boolean expanded1 = items[1].getExpanded(); if (e.type == SWT.Expand || e.type == SWT.Collapse) { ExpandItem item = (ExpandItem)e.item; if (item == items[1]) { expanded1 = !expanded1; } } if (expanded1) area.height -= items[1].getHeight(); items[0].setHeight(area.height); } }; expandBar.addListener(SWT.Resize, listener); expandBar.addListener(SWT.Expand, listener); expandBar.addListener(SWT.Collapse, listener); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-09 15:56:18
1,141,940,000
resolved fixed
1dc1a8b
1,141,940,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
SWT
2,491
130,971
Bug 130971 TreeItem not showing text
I20060317-1315 I don't have a simple SWT test case for this yet, but the behavior can be seen using the folloing test case in the debugger (works on GTK, does not work on XP). Debug the following program (breakpoint on first line) public class NowYouSeeIt { public static void main(String[] args) { for (int i = 0; i < 10; i ++) { Integer integer = new Integer(i); System.out.println(integer); } } } * Step over the declaration of "integer" (it appears in variables view) * Step over, step over (println, then "integer" disappears - out of scope) * Step over, step over (integer is back in scope, but its label does not appear) The "data" of the item appears to be set, cause selecting does show the proper 'toString()' in the details area.
2006-03-08 15:04:58
1,141,850,000
resolved fixed
ab3ecaf
1,141,860,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,492
130,991
Bug 130991 Table: Sort indicator appears on newly-created column
SWT-win32, v3227 In the snippet below, a sort indicator appears in the column header even though the column in question has not been set as the sort column. Apparently, the arrow icon is somehow "inherited" from a previous sort column which was disposed of earlier. --- import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class TableSortIndicatorTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Table tbl = new Table(shell, SWT.NONE); tbl.setHeaderVisible(true); tbl.setSortDirection(SWT.UP); TableColumn col = new TableColumn(tbl, SWT.NONE); tbl.setSortColumn(col); col.dispose(); col = new TableColumn(tbl, SWT.NONE); col.setText("Column"); col.setWidth(100); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2006-03-08 16:41:36
1,141,850,000
resolved fixed
161705a
1,141,860,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,493
130,876
Bug 130876 Background Image not inherited running w/o manifest
Tested with 3.2 M5a and latest IBuild. The following snippet is problematic running it without the manifest. The buttons dont inherit the background image: public class Main { static Image oldImage; public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBackgroundMode(SWT.INHERIT_DEFAULT); FillLayout layout1 = new FillLayout(SWT.VERTICAL); layout1.marginWidth = layout1.marginHeight = 10; shell.setLayout(layout1); Group group = new Group(shell, SWT.NONE); group.setText("Group "); RowLayout layout2 = new RowLayout(SWT.VERTICAL); layout2.marginWidth = layout2.marginHeight = layout2.spacing = 10; group.setLayout(layout2); for (int i = 0; i < 8; i++) { Button button = new Button(group, SWT.RADIO); button.setText("Button " + i); } shell.addListener(SWT.Resize, new Listener() { public void handleEvent(Event event) { Rectangle rect = shell.getClientArea(); Image newImage = new Image(display, Math.max(1, rect.width), 1); GC gc = new GC(newImage); gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE)); gc.setBackground(display.getSystemColor(SWT.COLOR_BLUE)); gc.fillGradientRectangle(rect.x, rect.y, rect.width, 1, false); gc.dispose(); shell.setBackgroundImage(newImage); if (oldImage != null) oldImage.dispose(); oldImage = newImage; } }); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } if (oldImage != null) oldImage.dispose(); display.dispose(); } } Snippet was taken from 3.2 M4 N&N btw. Ben
2006-03-08 05:00:32
1,141,810,000
resolved fixed
4104b9f
1,141,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/Label.java
SWT
2,494
130,792
Bug 130792 Table: Disposing sort column should update background
SWT-win32, v3227 When the sort column is disposed of, the "selected column" needs to be cleared in the OS. Currently, the next column to appear at the index of the disposed column just inherits the internal selection status. For this reason the background is not updated. --- import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class TableSortDisposeTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout(SWT.VERTICAL)); final Table tbl = new Table(shell, SWT.NONE); tbl.setHeaderVisible(true); tbl.setSortDirection(SWT.UP); final TableColumn col0 = new TableColumn(tbl, SWT.LEFT); col0.setText("Column 0"); col0.setWidth(100); tbl.setSortColumn(col0); TableColumn col1 = new TableColumn(tbl, SWT.LEFT); col1.setText("Column 1"); col1.setWidth(100); final Button btn = new Button(shell, SWT.PUSH); btn.setText("Click me"); btn.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { col0.dispose(); System.out.println(tbl.getSortColumn()); btn.setEnabled(false); } }); shell.setSize(300, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2006-03-07 15:00:27
1,141,760,000
resolved fixed
97869b7
1,141,850,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,495
130,113
Bug 130113 eclipse (64-bit) crashes as soon as code complete is invoke (ctrl-space) in java files
OS: Fedora Core 4, 64 bit, (updated to latest version) GUI: gnome JDK: 1.5 release 6 (64 bit), AND 1.6.0-beta (64 bit) Eclipse: 3.2 m5 (x86_64/GTK 2) AND 3.2 m5a (x86_64/GTK 2) Steps to Reproduce: 1. Open a Java File 2. Press CTRL-SPACE to invoke Code Complete. 3. The Eclipse crashes instantly.
2006-03-02 08:20:46
1,141,310,000
resolved fixed
bd0b030
1,141,840,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
SWT
2,496
129,908
Bug 129908 BIDI: Output text have contextual order layout
Scenario: 1. Create a java project 2. Create a java class. Make sure that you enter the com.ibm.dbcstesting.javatest for the package name and you select the inclusion of main() in the wizard. 3. In Main method on the Editor, type the following code line: System.out.println(" ABCabc "); where capitals are Hebrew characters. 4. Run as Java application. Result: The string is displayed on console as: "abcABC" Expected result: The output of the string should be as shown in the editor and shouldn't have contextual ordering.
2006-03-01 05:00:19
1,141,210,000
closed fixed
be936f9
1,141,770,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
SWT
2,497
130,260
Bug 130260 Regression: table viewer cannot edit cell without text
The attached sample view used to work with 3.2 M5, stopped working in the more recent integration builds. To reproduce: 1) Import the attached archive as a project into the workspace 2) Launch second Eclipse and show 'Sample View' 3) Click on one of the images in the first table column. Expected behaviour (as in M5): combo box cell editor should show up allowing you to change from 'Low', 'Medium' and 'High'. When leaving the edit mode, image in the first column should switch. Current behaviour: nothing happens when clicking on the image cell. Some debugging points at strange value returned by getBounds for the cell when reacting to the mouse down event (looks like the cell didn't take image width into acount, just text).
2006-03-02 21:43:46
1,141,350,000
verified fixed
d612b7b
1,141,770,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java
SWT
2,498
128,891
Bug 128891 3.2 M5 - ExpandItem does not work on WinCE
I got the following error message; on Win Mobile 2003 (not 05 -yet-, Steve, no worries). ExpandBar/Item would be great on WinCE ;-) UnsatisfiedLinkError:SystemParametersInfoW java.lang.UnsatisfiedLinkError: SystemParametersInfoW at org.eclipse.swt.internal.win32.OS.SystemParametersInfo() at org.eclipse.swt.widgets.ExpandItem.drawItem() at org.eclipse.swt.widgets.ExpandBar.WM_PAINT() at org.eclipse.swt.widgets.Control.windowProc() at org.eclipse.swt.widgets.Display.windowProc() at org.eclipse.swt.widgets.Decorations.setVisible() at org.eclipse.swt.widgets.Shell.setVisible() at org.eclipse.swt.widgets.Shell.open() at mcMain.main()
2006-02-21 16:35:46
1,140,560,000
resolved fixed
1ee514c
1,141,750,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java
SWT
2,499
130,346
Bug 130346 Adding MeasureItem listener on Table can lead to divide by 0 in getItem()
- run the snippet below, which tries to come up but hits a divide by 0 in Table.getItem(Point): public static void main (String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout (new FillLayout ()); final Table table = new Table (shell, SWT.NONE); for (int i=0; i<2; i++) { new TableColumn (table, SWT.NONE); } table.setSortColumn (table.getColumns()[1]); table.setSortDirection (SWT.DOWN); table.setRedraw (false); for (int i=0; i<2; i++) { new TableItem (table, SWT.NONE).setText ("Long TableItem " + i); } table.setRedraw (true); Listener paintListener = new Listener () { public void handleEvent (Event event) { } }; table.addListener (SWT.MeasureItem, paintListener); for (int i=0; i<2; i++) { table.getColumn (i).pack (); } shell.open (); table.getItem (new Point (100, 100)); // <--- while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } Exception in thread "main" java.lang.ArithmeticException: / by zero at org.eclipse.swt.widgets.Table.getItem(Table.java:1417) at steve.OwnerDrawTableA.main(OwnerDrawTableA.java:39)
2006-03-03 11:59:31
1,141,410,000
resolved fixed
700b9da
1,141,750,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableItem.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TreeItem.java
SWT
2,500
130,363
Bug 130363 packed TableColumns are much too wide
- run the OwnerDrawTableA example with all of the static booleans at the top set to false except for "extraImage" and "enabled" - note that only the first column appears to be the right width, and the other columns are much wider than is needed, even though their sizes were set in the example using TableColumn.pack()
2006-03-03 12:53:37
1,141,410,000
resolved fixed
57c7ab7
1,141,750,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableItem.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TreeItem.java
SWT
2,501
129,974
Bug 129974 Hooking MeasureItemListener to Table with no columns spews warnings
null
2006-03-01 11:32:02
1,141,230,000
resolved fixed
b92ab26
1,141,750,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
SWT
2,502
130,696
Bug 130696 Table: Setting sort column to null does not update background
SWT-win32, v3227 - Run the test case below - Click the button once; the first column is set as the sort column, the column background changes to indicate "selected column" - Click the button again; the sort column is cleared by calling Table.setSortColumn(null) but the background is not updated --- import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class TableSortColumnTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout(SWT.VERTICAL)); final Table tbl = new Table(shell, SWT.NONE); tbl.setHeaderVisible(true); tbl.setSortDirection(SWT.UP); final TableColumn col = new TableColumn(tbl, SWT.LEFT); col.setText("Column"); col.setWidth(100); Button btn = new Button(shell, SWT.PUSH); btn.setText("Click me"); btn.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { tbl.setSortColumn((tbl.getSortColumn() == null) ? col : null); tbl.redraw(); } }); shell.setSize(300, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2006-03-07 00:50:02
1,141,710,000
resolved fixed
7d2a368
1,141,750,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java
SWT
2,503
130,614
Bug 130614 NPE with a background image in a non-virtual Table
null
2006-03-06 14:29:33
1,141,670,000
resolved fixed
6036eeb
1,141,680,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,504
127,168
Bug 127168 Spinner generates bogus ModifyText events
Spinner class generates lots of ModifyText events. This is happening on Windows XP. These event are generated when either Spinner widget loses focus, or Eclipse window loses focus (another app becomes active). Below is a snippet from stack trace. MyClass.modifyText( ModifyEvent event ) .... Spinner.setSelection(int, boolean, boolean, boolean) line: 948 Spinner.wmKillFocus(int, int, int) line: 1246 ....
2006-02-09 16:45:47
1,139,520,000
resolved fixed
8d90143
1,141,670,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
SWT
2,505
130,375
Bug 130375 Background Inheritance Incorrect in Composite Hierarchies
Opened by Brian Farn 2006.03.03 Eclipse Version: 3.2.0 M5a, Build id: I20060223-1656 Description ----------- A top composite with an image background has a background mode of INHERIT_DEFAULT. A label parented by the top composite correctly inherits the top composite's background. The top composite has a child composite with a background mode of INHERIT_DEFAULT. A label parented by the child composite inherits the top composite's background, but seems to inherit an incorrect region of the top composite background (possible pixel mapping error). Sample UI Hierarchy ------------------- Shell Composite: Has a background image, background mode is INHERIT_DEFAULT Label: Correctly displays background of parent composite Text: Displayed correctly Composite: Background mode is INHERIT_DEFAULT, correctly displays background of parent composite Label: Incorrectly displays background of top composite Text: Displayed correctly Sample code ----------- package tc; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.GC; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.ImageData; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Canvas; import org.eclipse.swt.widgets.Composite; 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 TransparentMain { protected TransparentCompositeBackground _transparentBackground = null; public static void main( String[] args ) { new TransparentMain(); } public TransparentMain(){ Shell _shell = new Shell(); _shell.setSize( 500, 250 ); _shell.setText( "Transparent Main" ); FillLayout layout = new FillLayout(); _shell.setLayout( layout ); _transparentBackground = new TransparentCompositeBackground( _shell ); Display display = Display.getDefault(); _shell.setLocation( 300, 300 ); _shell.open(); while( _shell.isDisposed() == false ){ if( display.readAndDispatch() == false ) display.sleep(); } } public class TransparentCompositeBackground extends Canvas { protected ImageData _imageData = null; /** * */ public TransparentCompositeBackground( Composite compositeParent) { super( compositeParent, SWT.NULL ); this.setBackgroundMode( SWT.INHERIT_DEFAULT ); Image image = createImage(); this.setBackgroundImage( image ); GridLayout layout = new GridLayout( 1, false ); setLayout( layout ); Label label = new Label( this, SWT.NULL ); GridData gridData = new GridData( GridData.FILL_HORIZONTAL ); label.setLayoutData( gridData ); label.setText( "A label and text on a composite" ); Text text = new Text( this, SWT.BORDER ); gridData = new GridData( GridData.FILL_HORIZONTAL ); text.setLayoutData( gridData ); Composite composite1 = new Composite( this, SWT.BORDER ); composite1.setBackgroundMode( SWT.INHERIT_DEFAULT ); gridData = new GridData( GridData.FILL_HORIZONTAL ); composite1.setLayoutData( gridData ); layout = new GridLayout( 1, false ); layout.marginHeight = 20; layout.marginWidth = 20; composite1.setLayout( layout ); Label label2 = new Label( composite1, SWT.NULL ); gridData = new GridData( GridData.FILL_HORIZONTAL ); label2.setLayoutData( gridData ); label2.setText( "A label and text on a sub-composite" ); Text text2 = new Text( composite1, SWT.BORDER ); gridData = new GridData( GridData.FILL_HORIZONTAL ); text2.setLayoutData( gridData ); } public Image createImage(){ Image image = null; GC gc = null; Rectangle rect = getBounds(); if( rect.isEmpty() ){ rect.width = 400; rect.height = 400; } image = new Image( Display.getCurrent(), rect.width, rect.height ); gc = new GC( image ); _imageData = image.getImageData(); paintImageData( rect ); if( image != null ) image.dispose(); image = new Image( Display.getCurrent(), _imageData ); if( gc != null ) gc.dispose(); return image; } public void paintImageData( Rectangle rect ){ for( int i=0; i<rect.width; ++i ){ for( int j=0; j<rect.height; ++j ){ int r = (255 - ( i % 255 )) << 8; int g = (255 - ( j % 255 )) << 16; int b = ((i + j)%255) << 24; _imageData.setPixel( i, j, r + g + b ); } } } } }
2006-03-03 14:08:24
1,141,410,000
resolved fixed
bfc7082
1,141,420,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
SWT
2,506
114,662
Bug 114662 Spinner setSelection prints X warning
200511011204 Spinner setSelection can give the following X warning: Warning: Name: _TF Class: XmTextField XmNposition out of range; maximum XmNposition used. To replicate: - run ControlExample, go to Spinner tab - decrease the maximum scale to about half - now increase the selection scale - you will see X Warnings in the Console
2005-11-01 17:04:00
1,130,880,000
resolved fixed
8c774c8
1,141,410,000
bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Spinner.java
SWT
2,507
130,050
Bug 130050 Tree doesn't repaint items properly, and flashes as it updates TreeItem.setItemCount
SWT Win32 CVS 1. The Tree doesn't repaint the items at the bottom after 3 iterations of the timer. Some cell border lines are there but not all, and you can select the items with the mouse and they will paint, but they are initially missing. 2. Setting the TreeItem.setItemCount to a larger number (15 in this case) is very "flashy" since the user can visually see all the cell lines being drawn as it expands downwards. Example: ---- public static boolean toggle; public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Tree tree = new Tree(shell, SWT.H_SCROLL | SWT.V_SCROLL | SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); final int columns = 20; for (int i = 0; i < columns; i++) new TreeColumn(tree, SWT.LEFT).setWidth(150); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; Tree tree = (Tree) event.widget; int index = tree.indexOf(item); String text = String.valueOf(index); for (int i = 0; i <= columns; i++) { if (!item.getText(i).equals(text)) item.setText(i, text); } if (index == -1) { Color c = display.getSystemColor(SWT.COLOR_CYAN); item.setBackground(c); } else if (index == 0) { int nc = 2; toggle = !toggle; if (toggle) nc = 25; item.setItemCount(nc); item.setExpanded(true); } } }); tree.setItemCount(60); final int timerDelay = 2000; final Runnable r = new Runnable() { public void run() { int nc = 15; if (toggle) nc = 2; tree.setItemCount(nc); for (int i = 0; i < nc; i++) { tree.clear(i, true); } display.timerExec(timerDelay, this); } }; display.timerExec(timerDelay, r); shell.setSize(600, 800); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-01 19:03:28
1,141,260,000
resolved fixed
d7427ce
1,141,400,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,508
130,101
Bug 130101 SWT.HIDE_SELECTION always hides selection
In M5 SWT.HIDE_SELECTION makes table selection completely invisible, that is the selection does not even show up if the table has focus.
2006-03-02 06:13:22
1,141,300,000
resolved fixed
e608aec
1,141,340,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,509
130,159
Bug 130159 ImageLoader.save(filename, format) should close the OutputStream.
null
2006-03-02 12:30:41
1,141,320,000
resolved fixed
d5b03cd
1,141,340,000
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoader.java
SWT
2,510
130,120
Bug 130120 cell custom background colour appears in adjacent cells
- run the snippet below, which creates a table with four columns and one item - the item's background is set for the second column to green - but the item's background shows as green in the second through fourth columns - removing the EraseItem listener makes the problem go away public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setBounds(10,10,250,200); final Table table = new Table(shell, SWT.FULL_SELECTION); table.setBounds(10,10,220,150); table.setLinesVisible(true); new TableColumn(table, SWT.NONE).setWidth(50); new TableColumn(table, SWT.NONE).setWidth(50); new TableColumn(table, SWT.NONE).setWidth(50); new TableColumn(table, SWT.NONE).setWidth(50); new TableItem(table, SWT.NONE).setBackground(1, display.getSystemColor(SWT.COLOR_BLUE)); table.addListener(SWT.EraseItem, new Listener() { public void handleEvent(Event event) { } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-03-02 09:17:46
1,141,310,000
resolved fixed
d94d01b
1,141,330,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,511
129,732
Bug 129732 [JavaDoc] The API setBackgroundImage() should mention pattern
I think it would be good to mention, that the background-image set via "setBackgroundImage()" is applied as Pattern if not fitting the controls size. Ben
2006-02-28 04:09:55
1,141,120,000
resolved fixed
dc4fffc
1,141,260,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
SWT
2,512
77,106
Bug 77106 Setting table selection does not update anchor index
SWT v3.1.0.9, Win32 In the testcase below, there is a multi-selection table with ten items. The item at index 4 is selected programmatically. Shift+Click on, let's say, item 6 or press Shift+ArrowDown twice. Expected result: Items 4-6 should be selected. Actual result: Items 0-6 are selected. What seems to be happening here is that (programmatically) setting the table selection does not update the anchor index that is used as the starting point when a range selection is performed. Instead, the table uses whatever item the user has selected previously or the item at index 0 if the user has not yet selected anything. This is problematic; in the testcase, item 4 is the only selected item initially and it has the focus rectangle too, so the user can reasonably expect that extending the selection range will begin at that item. And it does, but only if the user has selected the item manually, not when it's done via a Table.setSelection(...) call. Programmatic and manual selection should, where possible, result in the same adjustment of the anchor index/item. === import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class TableAnchorTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Table tbl = new Table(shell, SWT.MULTI); for (int idx = 0; idx < 10; idx++) { new TableItem(tbl, SWT.NONE).setText("Item " + idx); } shell.pack(); shell.open(); tbl.setSelection(4); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } }
2004-10-27 09:44:00
1,098,880,000
resolved fixed
6dd7232
1,141,250,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,513
123,827
Bug 123827 Outline "crazy-scrolls" when it gets focus
null
2006-01-13 15:46:34
1,137,190,000
resolved fixed
e185ea5
1,141,230,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,514
129,745
Bug 129745 Tree displays selected lines in wrong color
sun sdk 1.5.0_05, swt from eclipse 3.2M5. In Tree, select several multiple rows (blue color), press another control (button in my example), tree loses focus and rows are painted in gray color. Further, try to add rows to selection (as I do, press Ctrl + mouse key on tree). Only the last one selected row and newly selected row will be repainted in green, other rows will remain in gray. Using: org.eclipse.equinox.common_1.0.0.v20060215a.jar org.eclipse.jface_3.2.0I20060216-1600.jar org.eclipse.swt_3.2.0.v3224m.jar org.eclipse.swt.win32.win32.x86_3.2.0.v3224.jar org.eclipse.core.commands_3.2.0.v3224m.jar Example attached: import org.eclipse.jface.viewers.IStructuredContentProvider; import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclipse.jface.viewers.Viewer; public class TestTreeProvider implements ITreeContentProvider, IStructuredContentProvider { Integer[] level1 = new Integer[] { 1, 2 }; String[] level2 = new String[] { "a", "b", "c", "d", "e" }; public Object[] getElements(Object inputElement) { return level1; } public Object[] getChildren(Object parentElement) { if (parentElement instanceof Integer) { return level2; } else return null; } public Object getParent(Object element) { return null; } public boolean hasChildren(Object element) { return (element instanceof Integer); } public void dispose() {} public void inputChanged(Viewer v, Object a, Object b) {} } import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class Test { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); TreeViewer tv = new TreeViewer(shell, SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION | SWT.VIRTUAL); TestTreeProvider ttp = new TestTreeProvider(); tv.setContentProvider(ttp); tv.setInput(""); Button b = new Button(shell, SWT.PUSH); b.setText("simply press"); shell.pack(); shell.setSize(400, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2006-02-28 04:56:34
1,141,120,000
resolved fixed
795a796
1,141,220,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,515
129,833
Bug 129833 Tree [+] not repainted
SWT CVS Win32 The [+] is not redrawn on item[4], but is redrawn on item[10] after the timer and setItemCount call in the SetData handler. If you scroll right and left, it is then repainted properly. --- public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Tree tree = new Tree(shell, SWT.H_SCROLL | SWT.V_SCROLL | SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); final int columns = 20; for (int i = 0; i < columns; i++) new TreeColumn(tree, SWT.LEFT).setWidth(150); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; Tree tree = (Tree) event.widget; String text = "X"; for (int i = 0; i <= columns; i++) { if (!item.getText(i).equals(text)) item.setText(i, text); } int index = tree.indexOf(item); if (index == 1 || index == 10) { System.err.println("Set count to 4"); item.setItemCount(4); } } }); tree.setItemCount(60); final int timerDelay = 2000; final Runnable r = new Runnable() { public void run() { TreeItem[] items = tree.getItems(); for (int i = 0; i < items.length; i++) { items[i].setItemCount(0); tree.clear(i, true); } } }; display.timerExec(timerDelay, r); shell.setSize(400, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-02-28 14:21:37
1,141,150,000
resolved fixed
d4ba4ba
1,141,160,000
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,516
129,495
Bug 129495 [Table] TableColumn#pack() no longer respects TableItem's Font
The following snippet puts an "..." next to the TableItem's content. It uses bold Font which requires a bit more space than normal Font, but a pack on the TableColumn does not respect that. The snippet works with M4 and before: public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); FontData def[] = display.getSystemFont().getFontData(); Table t = new Table(shell, SWT.NONE); t.setHeaderVisible(true); TableColumn col = new TableColumn(t, SWT.NONE); col.setText("Hello"); TableItem item = new TableItem(t, SWT.NONE); item.setText("Hello World"); item.setFont(new Font(display, def[0].getName(), def[0].getHeight(), SWT.BOLD)); col.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } } This currently blocks my next release unfortunately. I hoped being able to run with M5. A workaround is to set the bold Font on the entire Table. However, that would show any TableColumn in Bold as well. Ben
2006-02-26 12:16:29
1,140,970,000
resolved fixed
6110f99
1,141,080,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/Table.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,517
129,501
Bug 129501 Tree FULL_SELECTION doesn't redraw item background in selection color
null
2006-02-26 16:30:55
1,140,990,000
resolved fixed
8bbf9a5
1,141,060,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,518
129,535
Bug 129535 GridData/GridLayout is showing abnormal layout
I20060221-1300 1. File > new > Other...> Plug-in Development > Target Definition 2. In the wizard, enter any name. Accept Defaults. Finish. The file will open in a form-based editor. 3. Go to the second page of the editor. Observe how the Environment section are not properly aligned. Note that if I run the exact same PDE code against SWT v3221 restores good layout. so something must have happened to GridLayout/GridData recently to break it.
2006-02-27 04:28:45
1,141,030,000
resolved fixed
b537a20
1,141,060,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
SWT
2,519
129,347
Bug 129347 Tree.clearAll flashes (redraws whole tree) while Table.clearAll doesn't.
3.2M5 WinXP The Tree flashes at each clearAll call, but the Table doesn't. Is there any way to fix the full redraw flashing on the virtual Tree? public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Table table = new Table(shell, SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); new TableColumn(table, SWT.LEFT).setWidth(150); new TableColumn(table, SWT.LEFT).setWidth(150); table.setLinesVisible(true); table.setHeaderVisible(true); table.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TableItem item = (TableItem) event.item; String text = null; text = "node " + table.indexOf(item); item.setText(text); } }); table.setItemCount(60); final Tree tree = new Tree(shell, SWT.VIRTUAL | SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION); new TreeColumn(tree, SWT.LEFT).setWidth(150); new TreeColumn(tree, SWT.LEFT).setWidth(150); tree.setHeaderVisible(true); tree.setLinesVisible(true); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { TreeItem item = (TreeItem) event.item; TreeItem parentItem = item.getParentItem(); String text = null; if (parentItem == null) { text = "node " + tree.indexOf(item); } else { text = parentItem.getText() + " - " + parentItem.indexOf(item); } item.setText(text); } }); tree.setItemCount(60); final int timerDelay = 250; final Runnable r = new Runnable() { public void run() { System.err.println("clear"); table.clearAll(); tree.clearAll(true); /*tableItem[] items = table.getItems(); for (int i =0; i < items.length; ++i) items[i].setExpanded(true); System.err.println("SELECTED: " + tree.getSelectionCount()); */ display.timerExec(timerDelay, this); } }; display.timerExec(timerDelay, r); shell.setSize(400, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
2006-02-24 10:17:02
1,140,790,000
resolved fixed
0c0ef10
1,141,060,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,520
126,818
Bug 126818 Horizontal ScrollBar not ReSized When Table Contents Changed
The following snippet demonstrates the problem. Run the snippet, then re-size the window until there is a horizontal and vertical scrollbar. Select "Now" from "ReFill" menu. The vertical scrollbar is refreshed correctly, the horizontal retains it's previous size. I have verified this behaviour on Windows XP and a Pocket PC. Cheers, Eddie import org.eclipse.swt.*; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.*; public class HelloWorld { private Table tDirs; public void doMain() { Display display = new Display (); Shell shell = new Shell (display); GridLayout gridLayout = new GridLayout(); shell.setLayout(gridLayout); GridData gridData = new GridData(GridData.FILL_BOTH); shell.setLayoutData(gridData); tDirs = new Table(shell, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); gridData = new GridData(GridData.FILL_BOTH); tDirs.setLayoutData(gridData); for (int ii = 0; ii < 40; ii++) { TableItem item = new TableItem (tDirs, 0); item.setText("This is a very long item to fill the width of the table, and make it very wide indeed"); } Menu mb = new Menu(shell, SWT.BAR); shell.setMenuBar(mb); MenuItem fileItem = new MenuItem(mb,SWT.CASCADE); fileItem.setText("ReFill"); Menu fileMenu = new Menu(shell, SWT.DROP_DOWN); fileItem.setMenu(fileMenu); MenuItem exitItem = new MenuItem(fileMenu, SWT.PUSH); exitItem.setText("Now"); exitItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { refillTable(); } }); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } public void refillTable() { tDirs.removeAll(); for (int ii = 0; ii < 4; ii++) { TableItem item = new TableItem (tDirs, 0); item.setText("Tiny item."); } } public static void main (String [] args) { HelloWorld snippet = new HelloWorld(); snippet.doMain(); } }
2006-02-07 16:53:37
1,139,350,000
resolved fixed
c673419
1,140,830,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,521
129,054
Bug 129054 Text widget VerifyListener causes characters to be inserted backwards if you change them
I have a small program with a Text widget whose VerifyListener actually replaces the characters being entered. Newer 3.2 milestones on Linux cause it to go backwards. Here is a piece of the code so you can see what I'm doing that's triggering this bug, and I'll attach the whole program. thoughts.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { if (e.character == '\b') e.doit = false; else { e.text = str.charAt(count.value() % str.length()) + ""; count.increment();}}});
2006-02-22 16:07:14
1,140,640,000
verified fixed
8909534
1,140,820,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,522
128,845
Bug 128845 ExpandBar Widget not painting controls
null
2006-02-21 12:02:50
1,140,540,000
resolved fixed
b69d0ba
1,140,820,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scale.java
SWT
2,523
127,776
Bug 127776 ControlExample Scale does not lose background image
Feb. 14th 8:00am build - run the ControlExample, go to the Slider/Scale tab - check the Background Image checkbox, and both example widgets are given a background image - now uncheck the Background Image checkbox and note that the example Scale widget does not lose its background image -> attempting to damage it with another window does not make the background image go away either, but clicking on it does
2006-02-14 11:43:13
1,139,940,000
resolved fixed
51e7a32
1,140,820,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scale.java
SWT
2,524
129,126
Bug 129126 When VerifyListener is added in org.eclipse.swt.widgets.Text, StringIndexOutOfBoundsException might be occurred by UNDO operation.
When VerifyListener is added in org.eclipse.swt.widgets.Text, StringIndexOutOfBoundsException might be occurred by UNDO operation. java.lang.StringIndexOutOfBoundsException: String index out of range: 10 at java.lang.String.<init>(String.java:220) at org.eclipse.swt.internal.win32.TCHAR.toString(TCHAR.java:115) at org.eclipse.swt.widgets.Text.wmClipboard(Text.java:2004) at org.eclipse.swt.widgets.Text.windowProc(Text.java:1772) When a new text is taken out, it processes it within the range of the selection of the previous state of UNDO. Therefore, the exception is generated. if (length != 0 && start [0] != end [0]) { ==================== TCHAR buffer = new TCHAR (getCodePage (), length + 1); OS.GetWindowText (handle, buffer, length + 1); newText = buffer.toString (start [0], end [0] - start [0]); ============================== } else { newText = ""; } It is necessary to keep the following. int [] newStart = new int [1], newEnd = new int [1]; OS.SendMessage (handle, OS.EM_GETSEL, newStart, newEnd); if (length != 0 && newStart [0] != newEnd [0]) { ========================== TCHAR buffer = new TCHAR (getCodePage (), length + 1); OS.GetWindowText (handle, buffer, length + 1); newText = buffer.toString (newStart [0], newEnd [0] - newStart [0]); ======================================= } else { newText = ""; }
2006-02-23 04:38:16
1,140,690,000
resolved fixed
b84ffff
1,140,800,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/Spinner.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
SWT
2,525
128,378
Bug 128378 TreeItem and TableItem constructors should state precondition on index
null
2006-02-17 05:57:43
1,140,170,000
resolved fixed
05d38a4
1,140,740,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Item.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.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/TabItem.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.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/ToolItem.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java
SWT
2,526
127,960
Bug 127960 Native crash in SWT when brower JavaScript closes the window
null
2006-02-14 23:39:04
1,139,980,000
resolved fixed
281808d
1,140,450,000
bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Browser.java
SWT
2,527
128,476
Bug 128476 Regression: Tree with columns does not reset horizontal scroll bar
SWT-win32, v3224 When the width of a tree column is first increased, then decreased again (either programmatically or by dragging), the horizontal scroll bar of the tree will not be adjusted to reflect the change. This is a recent regression. --- import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class TreeColumnScrollBarTest { 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.NONE); tree.setHeaderVisible(true); TreeColumn col = new TreeColumn(tree, SWT.LEFT); col.setText("Column"); col.setWidth(1000); col.setWidth(100); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2006-02-17 16:24:27
1,140,210,000
resolved fixed
ffeafc0
1,140,330,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,528
127,095
Bug 127095 NPE when trying to dispose columns
Memory View allows user to change the number of columns in a table. This is done by disposing the columns and recreating them. Got the following NPE when trying to reformat. java.lang.NullPointerException at org.eclipse.swt.widgets.TableItem.removeColumn(TableItem.java:1155) at org.eclipse.swt.widgets.Table.destroyItem(Table.java:612) at org.eclipse.swt.widgets.TableColumn.dispose(TableColumn.java:267) at org.eclipse.swt.widgets.TableColumn.dispose(TableColumn.java:244) at org.eclipse.debug.internal.ui.views.memory.renderings.AsyncVirtualContentTableViewer.disposeColumns(AsyncVirtualContentTableViewer.java:98) at org.eclipse.debug.internal.ui.views.memory.renderings.AbstractAsyncTableRendering.formatViewer(AbstractAsyncTableRendering.java:1258) at org.eclipse.debug.internal.ui.views.memory.renderings.AbstractAsyncTableRendering.format(AbstractAsyncTableRendering.java:1014) at org.eclipse.debug.internal.ui.views.memory.renderings.FormatTableRenderingAction.run(FormatTableRenderingAction.java:44) at org.eclipse.jface.action.Action.runWithEvent(Action.java:492) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:530) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:480) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:392) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:775) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3059) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2748) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1793) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1757) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:402) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:109) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)
2006-02-09 11:19:21
1,139,500,000
resolved fixed
6e21e5d
1,140,210,000
bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/TableItem.java bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/TreeItem.java
SWT
2,529
13,969
Bug 13969 Accessibility : No visual focus is provided in Table
Env. : Red Hat 7.2 No visual focus is provided in Table widget when Table has focus. Focus same as List widget's one is expected. - Focus rect is shown just inside widget when no item exists - Focus rect is shown around selected/first item when item exist.
2002-04-17 00:58:58
1,019,020,000
resolved fixed
18b3f79
1,140,210,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,530
128,267
Bug 128267 No longer possible to capture screen with new GC(display)
I think this is a regression. I do as follows: GC gc = new GC(display); Image image = new Image(display, shell.getSize().x, shell.getSize().y); gc.copyArea(image, shell.getLocation().x, shell.getLocation().y); to copy the contents of the Screen into an Image. This is working on Windows but not on Mac. I remember a recent change for Mac that improved performance of creating a new GC on the Display. Maybe this is a regression? I can confirm that it worked before. Ben
2006-02-16 13:14:07
1,140,110,000
resolved fixed
b07b15d
1,140,190,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java
SWT
2,531
128,408
Bug 128408 JPEGQuantizationTable precision=8 values can be negative
DQT values should be non-negative, either 0..255 or 0..65535 depending on the sample precision. Bug: When precision=8 JPEGQuantizationTable is loaded with signed bytes. (When precision=16, unsigned values are loaded as expected.) This bug can have dramatic effects, but probably hasn't been noticed because the default Q tables contain only a couple values larger than 127... Fix: public int[][] getQuantizationTablesValues() { qk[i] = reference[ofs + i + 1]; => qk[i] = reference[ofs + i + 1] & 0xFF;
2006-02-17 09:29:58
1,140,190,000
resolved fixed
b3c1706
1,140,190,000
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/JPEGQuantizationTable.java
SWT
2,532
128,244
Bug 128244 Table Row Overdraws Table Headers
I20060214-0800 While scrolling tasks view one of the rows began overdrawing the headers. It stopped when I scrolled in the other direction and I can no longer reproduce. The headers remain cheesy, however. Screencap forthcoming.
2006-02-16 11:45:39
1,140,110,000
resolved fixed
3a9efe9
1,140,120,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,533
127,734
Bug 127734 Cannot open Launch Config dialog
I clicked on the Run> arrow to open the launch config dialog, and got a Unhandled event loop exception instead. eclipse.buildId=I20060214-0800 java.version=1.4.2_09 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=solaris, ARCH=sparc, WS=motif, NL=en_CA Command-line arguments: -os solaris -ws motif -arch sparc -data /opt/users/pwebster/workspaces/test320 java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.swt.widgets.Tree.redrawItems(Tree.java:3004) at org.eclipse.swt.widgets.Tree.redrawItem(Tree.java:2979) at org.eclipse.swt.widgets.Tree.deselectAll(Tree.java:507) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.refreshFilteringLabel(LaunchConfigurationsDialog.java:757) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.createLaunchConfigurationSelectionArea(LaunchConfigurationsDialog.java:696) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.addContent(LaunchConfigurationsDialog.java:371) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.createDialogArea(LaunchConfigurationsDialog.java:576) at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:156) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.createContents(LaunchConfigurationsDialog.java:565) at org.eclipse.jface.window.Window.create(Window.java:420) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.create(LaunchConfigurationsDialog.java:474) at org.eclipse.jface.window.Window.open(Window.java:778) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1321) at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:375) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:379) at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:321) at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:80) at org.eclipse.jface.action.Action.runWithEvent(Action.java:492) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:530) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:480) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:392) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:775) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3059) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2748) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:99) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)
2006-02-14 10:46:48
1,139,930,000
resolved fixed
b42f2fe
1,140,120,000
bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Tree.java
SWT
2,534
127,755
Bug 127755 NPE in Tree.callPaintEventHandler
While doing an inspect in the debugger I got the following exception. Note that the inspect popup contains a VariablesView (and therefore a VIRTUAL Tree) eclipse.buildId=I20060214-0800 java.version=1.4.2_09 java.vendor=Apple Computer, Inc. BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US Framework arguments: -keyring /Users/kevinbarnes/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws carbon -arch ppc -keyring /Users/kevinbarnes/.eclipse_keyring -consoleLog -showlocation java.lang.NullPointerException at org.eclipse.swt.widgets.Tree.callPaintEventHandler(Tree.java:318) at org.eclipse.swt.widgets.Widget.kEventControlDraw(Widget.java:971) at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:349) at org.eclipse.swt.widgets.Display.controlProc(Display.java:827) at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2861) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:99) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)
2006-02-14 11:15:10
1,139,930,000
resolved fixed
0e0cce9
1,140,110,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,535
123,466
Bug 123466 [Viewers] Strange dots in table item labels
I20060110-1026 I can no longer click some elements in the Packages view and suddenly the label gets corrupted into: "org.ec...". Test Case: 1. start attached workspace 2. select project 'Foo' in the Package Explorer 3. select 'org.eclipse.jface.text' in the Packages view 3. expand 'Foo' in the Package Explorer 4. select 'src' ==> strange label "org.ec...". This works with I200605-0800 plus JDT's build input for I20060110-1026
2006-01-11 12:06:51
1,137,000,000
verified fixed
4d75e53
1,140,060,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,536
127,751
Bug 127751 VIRTUAL Table does not paint with snippet 144
Feb. 14th 8:00am build - run snippet 144 and press its Add Items button - the message "Items: 1000000, Time: 15 (ms)" is shown below immediately, but the Table contents do not actually appear until much later
2006-02-14 11:09:08
1,139,930,000
resolved fixed
696d4c6
1,139,980,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
SWT
2,537
127,266
Bug 127266 Text.getCaretLocation() on GTK with style = SWT.SINGLE
On GTK, SWT is hardcoded to always return "new Point(0,0)" if the SWT.SINGLE style bit is turned on. This requires platform specific code as in the following work-around: if(gtk) { Point strSize = event.gc.textExtent(text.getText(0,text.getCaretPosition()-1)); event.gc.drawLine(strSize.x+1, 2, strSize.x+1, strSize.y + 1); } else { Point strLoc = text.getCaretLocation(); int height = text.getLineHeight(); event.gc.drawLine(strLoc.x, strLoc.y, strLoc.x, strLoc.y+height-1); } if there is a platform specific work-around required, it should be done in the text widget so that application code can remain consistent (like the in the win32 version)
2006-02-10 10:21:11
1,139,580,000
resolved fixed
d1ff486
1,139,870,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/Text.java
SWT
2,538
104,892
Bug 104892 Macintel: Resize NS Cursor is flipped
3.1 on Macintel: For the Resize NS Cursor both bytes of everz row are swapped.
2005-07-22 17:30:07
1,122,070,000
resolved fixed
f19c964
1,139,860,000
bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/Cursor.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Cursor.java
SWT
2,539
104,902
Bug 104902 Macintel: Password text fields don't show echo character
3.1 on Macintel: Password fields don't show echo characters. It seems that the UniChar passed to OS.TXNEchoMode is interpreted as a 2-byte string! On big endian systems (PPC) the default value of '\245' results in the string '\245' '\0' which works fine. On small endian systems (Intel) the default value results in the string '\0' '\245' Since the first character '\0' is treated as a string terminator, no echo character is shown. The following experiment proves this: if I use this declaration: static final char PASSWORD = ('a' << 8) + 'b'; then the first echo character will be 'b' and the second 'a' The workaround for this problem is the following declaration: static final char PASSWORD = ('\245' << 8) + '\245';
2005-07-22 18:28:34
1,122,070,000
resolved fixed
3d0271d
1,139,860,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/widgets/Text.java
SWT
2,540
54,426
Bug 54426 Implement RichText editor for SWT
The RCP will be a great platform for many different products. Some products will need an richtext editor (e.g. Email client, CRM products, Helpdesk systems, ...). The best way would be, if the eclipse project provided an richtext editor. The Look&Feel of the products would be similar and the machine resources would be less used. Needed Features: -> Multiline editor -> Different Fonts (include: Bold, Underline, Italic) -> Different colors (Foreground, Background) -> The text could contain Bullets (and enumeration) -> The text could contain Tables -> The text could contain Images -> The text could contain Attachments Data API: -> Get and set HTML -> Get and set MIME multipart (including HTML, Images and Attachments)
2004-03-11 04:10:51
1,079,000,000
resolved fixed
caefa6e
1,139,860,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/Bullet.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/LineStyleEvent.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/PaintObjectEvent.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ST.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextEvent.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java
SWT
2,541
80,913
Bug 80913 TabFolder no longer sets focus to tab when mnemonic pressed
I20041208-1200. This worked as expected up to at least I200411170800. TabFolder no longer sets focus to tab when the frontmost tab's mnemonic is pressed. Steps: public class C { void method(Object o) {} } - set caret into "method" - Refactor > Change Method Signature - press Alt+R => Expected: parameters list gets focus => Was: nothing happens This is also easily reproducable with the ControlExample (must first set mnemonics for Tab 0, Tab 1, and Tab 2).
2004-12-14 05:38:22
1,103,020,000
resolved fixed
1757498
1,139,610,000
bundles/org.eclipse.swt/Eclipse SWT/emulated/tabfolder/org/eclipse/swt/widgets/TabFolder.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.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/TabFolder.java
SWT
2,542
126,996
Bug 126996 Can't asyncExec setting of text in virtual Tree
Run the following example. Items in tree don't appear unless you move the mouse over them. CellDataProc is not firing for the async setText(). public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout (new FillLayout()); final Tree tree = new Tree(shell, SWT.VIRTUAL | SWT.BORDER); tree.addListener(SWT.SetData, new Listener() { public void handleEvent(Event event) { final TreeItem item = (TreeItem)event.item; display.asyncExec(new Runnable() { public void run() { TreeItem parentItem = item.getParentItem(); String text = null; if (parentItem == null) { text = "node "+tree.indexOf(item); } else { text = parentItem.getText()+" - "+parentItem.indexOf(item); } item.setText(text); } }); } }); tree.setItemCount(29); shell.setSize(400, 300); shell.open(); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }
2006-02-08 17:37:32
1,139,440,000
resolved fixed
32e3be4
1,139,520,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
SWT
2,543
126,995
Bug 126995 AIOOB exception for Tree
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at org.eclipse.swt.widgets.Tree.setItemCount(Tree.java:2392) at org.eclipse.swt.widgets.Tree.setItemCount(Tree.java:2402) at veronika.Newsgroup.main(Newsgroup.java:18) public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout (new FillLayout()); final Tree tree = new Tree(shell, /*SWT.VIRTUAL |*/ SWT.BORDER); tree.setItemCount(20); shell.setSize(400, 300); shell.open(); for (int i = 0; i < 10; i++) { final TreeItem item = tree.getItem(i); display.asyncExec(new Runnable() { public void run() { TreeItem parentItem = item.getParentItem(); String text = null; if (parentItem == null) { text = "node "+tree.indexOf(item); } else { text = parentItem.getText()+" - "+parentItem.indexOf(item); } item.setText(text); } }); } while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }
2006-02-08 17:34:02
1,139,440,000
resolved fixed
5b14baa
1,139,500,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
SWT
2,544
126,864
Bug 126864 Regression: Drop target has incorrect DND cursor
SWT-win32, v3223 In the example below, there is a somewhat uncooperative drop target that does not accept any kind of transfer. Expected result when attempting to drag objects over the shell: No drop cursors should be visible (except for the "veto sign") Actual result: Cursors such as COPY or LINK appear, depending on the drag source The problem is not limited to an empty transfer list. For example, if the drop target accepts only file transfers, non-veto cursors will appear even when a piece of text is dragged. This bug is not reproducible with v3218 and earlier. --- import org.eclipse.swt.dnd.*; import org.eclipse.swt.widgets.*; public class DropTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); DropTarget target = new DropTarget( shell, DND.DROP_DEFAULT | DND.DROP_COPY); target.setTransfer(new Transfer[] {}); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2006-02-08 00:27:13
1,139,380,000
resolved fixed
39d61b5
1,139,430,000
bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
SWT
2,545
126,299
Bug 126299 After clearAll(), GTK virtual Tree forgets old TreeItem objects and creates new ones
The attached snippet repeatedly calls clearAll() on the tree and prints out the length of the "items" array of the tree instance. Apparently, the existing TreeItem objects are forgotten and new ones are created after you call clearAll() and then cause the callback to happen. (Confirmed by putting a breakpoint in the constructor of TreeItem.) This is the main part of the snippet: for (int i = 0; i < 5; i++) { tree.clearAll(true); while (display.readAndDispatch()); System.out.println("items.length: " + ((Object[])field.get(tree)).length); } This is what it prints: items.length: 12 items.length: 20 items.length: 32 items.length: 40 items.length: 52 items.length: 60 I would expect the length of the array to remain constant, and that no TreeItem objects are created after you call clearAll().
2006-02-02 21:24:45
1,138,930,000
resolved fixed
2f93230
1,139,330,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
SWT
2,546
105,028
Bug 105028 WinCE: Menu Image Problem
Hi, When l try to add an image to a menu (top-level on the menu bar), the other menu items get pushed down, and there is a space between the bottom of the screen and the menu with the image (image is pushed up). I tested this on a PDA running the Windows Mobile 2003 Second Edition OS, using the IBM J9 VM (5.6 version of the WSDD IDE), using SWT 3.1 (R3 release). Here is the code that can reproduce this problem: ------------------------------------------------ Display display = new Display (); Shell shell = new Shell (display); Menu bar = new Menu (shell, SWT.BAR); shell.setMenuBar (bar); /* * */ int size = 15; int half = size/2; Image imageTick = new Image(display, size, size); GC gc = new GC(imageTick); gc.setBackground(display.getSystemColor(SWT.COLOR_GRAY)); gc.setForeground(display.getSystemColor (SWT.COLOR_BLACK)); gc.fillRectangle(0, 0, size, size); gc.drawPolyline(new int[]{1, half, half - 1, size - 2, size - 2, 0}); gc.setForeground(display.getSystemColor(SWT.COLOR_DARK_GRAY)); gc.drawRectangle(0, 0, size - 1, size - 1); gc.dispose(); /* * */ MenuItem fileItem = new MenuItem (bar, SWT.CASCADE); fileItem.setText ("File"); Menu fileMenu = new Menu (shell, SWT.DROP_DOWN); fileItem.setMenu (fileMenu); MenuItem helpItem = new MenuItem(bar, SWT.CASCADE); Menu helpMenu = new Menu(shell, SWT.DROP_DOWN); helpItem.setMenu(helpMenu); helpItem.setImage(imageTick); MenuItem viewItem = new MenuItem (bar, SWT.CASCADE); viewItem.setText ("View"); Menu viewMenu = new Menu (shell, SWT.DROP_DOWN); viewItem.setMenu (viewMenu); /* * */ shell.open (); while (!shell.isDisposed()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); cheers, Patrik
2005-07-25 11:29:06
1,122,310,000
resolved fixed
5aeb734
1,139,260,000
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
SWT
2,547
125,255
Bug 125255 Checkbox tree selection makes checkbox hard to see
build I20060119 - edit a launch config - on the plugins tab, select Choose Plug-ins... - select an item and toggle its checkbox - the change is very hard to see due to low contrast between the selection and checkbox (black over dark blue) I'm using the Windows Standard appearance settings on Win2K.
2006-01-25 16:36:58
1,138,230,000
resolved fixed
56cde47
1,139,250,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,548
125,621
Bug 125621 virtual tree returns null item in multi-selection from different branches
Using build I20060125-0800. Debug simple following test case with "one two three" as program arguments: public class Test { public static void main(String[] args) { int[] values = new int[] { 1, 2, 3 }; for (int i=0; i<values.length; i++) { System.out.println("value="+values[i]); } } } after having put a breakpoint on for... line. In Variables view expand both local variables args and values. Select first item in args array and one item in values array. Look at displayed values in details pane: one <unknown> In fact as soon as you select one of the arrays item, you have an <unknown> which appears in detail pane if you select an item in the other array...
2006-01-28 11:49:26
1,138,470,000
resolved fixed
a1d7e22
1,138,920,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
SWT
2,549
125,849
Bug 125849 Wrong colors with gradient pattern
The code below should show a window filled with a gradient from light blue to white. In the current SWT build it shows a gradient all right but with an orange tint at the center. Sorry, I don't know how to submit code. I think the following patch should fix this: ### Eclipse Workspace Patch 1.0 #P org.eclipse.swt Index: Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java =================================================================== RCS file: /home/eclipse/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java,v retrieving revision 1.7 diff -u -r1.7 Pattern.java --- Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java 8 Jul 2005 17:43:12 -0000 1.7 +++ Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java 31 Jan 2006 15:54:43 -0000 @@ -160,7 +160,7 @@ int a = (int)((alpha1 & 0xFF) * 0.5f + (alpha2 & 0xFF) * 0.5f); int r = (int)(((colorRef1 & 0xFF) >> 0) * 0.5f + ((colorRef2 & 0xFF) >> 0) * 0.5f); int g = (int)(((colorRef1 & 0xFF00) >> 8) * 0.5f + ((colorRef2 & 0xFF00) >> 8) * 0.5f); - int b = (int)(((colorRef1 & 0xFF000) >> 16) * 0.5f + ((colorRef2 & 0xFF0000) >> 16) * 0.5f); + int b = (int)(((colorRef1 & 0xFF0000) >> 16) * 0.5f + ((colorRef2 & 0xFF0000) >> 16) * 0.5f); int midColor = Gdip.Color_new(a << 24 | r << 16 | g << 8 | b); Gdip.LinearGradientBrush_SetInterpolationColors(handle, new int[]{foreColor, midColor, backColor}, new float[]{0, 0.5f, 1}, 3); Gdip.Color_delete(midColor); import org.eclipse.swt.SWT; import org.eclipse.swt.events.PaintEvent; import org.eclipse.swt.events.PaintListener; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.graphics.Pattern; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Canvas; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class GradientPatternTest { public static void main(String[] args) { Shell shell; Canvas canvas; Display display; display = Display.getDefault(); shell = new Shell(display); shell.setLayout(new FillLayout()); canvas = new Canvas(shell, SWT.NORMAL); canvas.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { Pattern pattern; Color color; e.gc.setBackground(e.display.getSystemColor(SWT.COLOR_WHITE)); e.gc.fillRectangle(0, 0, ((Control) e.widget).getSize().x, ((Control) e.widget).getSize().y); color = new Color(e.display, 191, 191, 255); pattern = new Pattern(e.display, 0, 0, ((Control) e.widget).getSize().x, 0, color, 63, e.display .getSystemColor(SWT.COLOR_WHITE), 63); e.gc.setBackgroundPattern(pattern); e.gc.fillRectangle(0, 0, ((Control) e.widget).getSize().x, ((Control) e.widget).getSize().y); pattern.dispose(); color.dispose(); } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } }
2006-01-31 10:53:43
1,138,720,000
resolved fixed
a57e2bc
1,138,810,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java
SWT
2,550
125,725
Bug 125725 Mistake in FormLayout.layout(Composite, boolean)
Found minor coding mistake in FormLayout.layout(Composite, boolean) method: int width = Math.max (0, rect.width - marginLeft - 2 * marginWidth - marginRight); int height = Math.max (0, rect.height - marginLeft - 2 * marginHeight - marginBottom); The height line subtracts marginLeft, but it should subtract marginTop.
2006-01-30 12:41:13
1,138,640,000
resolved fixed
b07e2a5
1,138,750,000
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/FormLayout.java
SWT
2,551
64,686
Bug 64686 ScrollBar does not receive SWT.Selection messages
This problem was noticed when using the Tree widget. I noticed that if the Tree contains a horizontal or vertical ScrollBar, scrolling the composite does not redraw the tree. I tried adding a selection listener to the horizontal and vertical scrollbars of the tree and the program never receives notification of this event when you scroll the tree.
2004-05-29 19:55:29
1,085,870,000
resolved fixed
be3531e
1,138,300,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/widgets/ScrollBar.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scrollable.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Tree.java
SWT
2,552
115,209
Bug 115209 SWT OSX 3.2M does not display labels on raw background
I use a raw main shell that I hand position items on for my main pgm screen. (Visual therapists program and I need that level of control rather than use a layout manager.) Pgm creates very large 'Labels' of constrasting color and uses them as 'bars' where needed to pull a stroke victim's eyes in the direction they would otherwise tend not to see (e.g. bar/Label full height of screen and an inch wide not uncommon). This used to work on OSX and has always worked Win/Linux-gtk. It no longer works in 3.2M3 on OSX (just downloaded and tested) though same code works Win/Lin-gtk works fine Win/Lin-gtk w/ 3.2M3. Problem behavior is the Label "Bar" does not show at all ... I just see the background color of the main window. Providing the code snippet used to place a vertical bar on the left edge of the screen. If someone wants to email me I'll provide more code. ___ Label barLeft = new Label(shell, SWT.NONE); barVerticalSize = new Point(barVerticalWidthPixels, shellSize.y - buttonSize.y - buttonBorder.y - 5); barLeft.setLocation(new Point(0, 0)); barLeft.setSize(barVerticalSize); barLeft.setBackground(settings.barBackground);
2005-11-05 08:22:46
1,131,200,000
resolved fixed
f0eb5b4
1,138,140,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Label.java
SWT
2,553
124,414
Bug 124414 SIGSEGV from swt-3.2M4-gtk-linux-x86_64.zip
SWT 3.2M4 3218 In an app that uses SWT, which works fine on all other platforms, the x86_64 version crashes the JVM: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00002aaaaae500f5, pid=8352, tid=46912501819088 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode) # Problematic frame: # C [libc.so.6+0x740f5] memmove+0x35 # --------------- T H R E A D --------------- Current thread (0x00000000401156e0): JavaThread "main" [_thread_in_native, id=8352] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000fff90f54 Registers: RAX=0x00002aa9f052d1dc, RBX=0x00007ffffff901b8, RCX=0x00002aaaf04be130, RDX=0x00002aaaf04be134 RSP=0x00007ffffff900b0, RBP=0x00002aaaf04be130, RSI=0x00000000fff90f54, RDI=0x00002aaaf04be130 R8 =0x00002aaaab868840, R9 =0x0000000040117848, R10=0x00002aaaab86c070, R11=0x00002aaaab5d95c0 R12=0x00002aaaf04be130, R13=0x0000000000000004, R14=0x00000000fff90f54, R15=0x00000000401156e0 RIP=0x00002aaaaae500f5, EFL=0x0000000000010202, CSGSFS=0x000000000000fd28, ERR=0x0000000000000004 TRAPNO=0x000000000000000e Instructions: (pc=0x00002aaaaae500f5) 0x00002aaaaae500e5: 00 00 00 48 85 d2 74 18 48 8d 54 15 00 48 89 e9 0x00002aaaaae500f5: 0f b6 06 48 ff c6 88 01 48 ff c1 48 39 ca 75 f0 Stack: [0x00007fffffd95000,0x00007ffffff95000), sp=0x00007ffffff900b0, free space=2028k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x740f5] memmove+0x35 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.eclipse.swt.internal.gtk.OS.memmove([IJJ)V+0 j org.eclipse.swt.widgets.Spinner.gtk_insert_text(JJJJ)J+59 j org.eclipse.swt.widgets.Widget.windowProc(JJJJJ)J+65 j org.eclipse.swt.widgets.Display.windowProc(JJJJJ)J+24 v ~StubRoutines::call_stub j org.eclipse.swt.internal.gtk.OS._gtk_spin_button_set_value(JD)V+0 j org.eclipse.swt.internal.gtk.OS.gtk_spin_button_set_value(JD)V+9 j org.eclipse.swt.widgets.Spinner.setSelection(I)V+60
2006-01-18 18:05:12
1,137,630,000
resolved fixed
bc390e5
1,138,120,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/Text.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
SWT
2,554
124,591
Bug 124591 ScrolledComposite.computeSize returns wrong value when alwaysShowScrollBars==true
SWT v3220 When calling computeSize on a ScrolledComposite that has the alwaysShowScrollBars flag set to true, the space needed for the scroll bar(s) is added twice: a) once in ScrolledCompositeLayout.computeSize and b) again in Scrollable.computeTrim, called by Composite.computeSize In the testcase below this results in the size being reported as (332, 332) instead of the expected (316, 316). Older versions that did not yet have the separate layout class (2.1, 3.0) return the correct result. --- import org.eclipse.swt.*; import org.eclipse.swt.custom.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class ScrolledCompositeSizeTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); ScrolledComposite sc = new ScrolledComposite( shell, SWT.H_SCROLL | SWT.V_SCROLL); sc.setAlwaysShowScrollBars(true); Canvas c = new Canvas(sc, SWT.NONE) { public Point computeSize(int wHint, int hHint, boolean changed) { return new Point(300, 300); } }; c.setBackground(display.getSystemColor(SWT.COLOR_RED)); c.setSize(c.computeSize(SWT.DEFAULT, SWT.DEFAULT)); sc.setContent(c); System.out.println(sc.computeSize(SWT.DEFAULT, SWT.DEFAULT)); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
2006-01-19 23:52:57
1,137,730,000
resolved fixed
5f58431
1,137,770,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ScrolledCompositeLayout.java
SWT
2,555
124,400
Bug 124400 Please expose minHeight, minWidth, expandHorizontal, expandVertical in ScrolledComposite
For testing purposes I'm needing to retrieve the following attributes from ScrolledComposite: * minWidth * minHeight * expandHorizontal * expandVertical Can these please be exposed? I think I can get around them not being visible but it would be easier if I could just call a method.
2006-01-18 17:10:16
1,137,620,000
resolved fixed
cbc2f19
1,137,770,000
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ScrolledComposite.java
SWT
2,556
68,255
Bug 68255 a Tab is not 4 spaces
null
2004-06-22 19:32:09
1,087,950,000
resolved wontfix
36cb89a
1,137,690,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/TextLayout.java
SWT
2,557
121,506
Bug 121506 GC.drawImage() selects wrong source region
When the source and destination areas are of differing sizes, the method does not select the source region at srcX, srcY. Thus, the wrong source region is placed in the receiver. I have created a simple test case to demonstrate this, and will also attach screenshots using SWT.getVersion()=3139 and SWT.getVersion()=3212. The earlier version works properly, so I think we're dealing with a regression bug. Interestingly, the same problem occurs in 3212 whether I use GC.setAdvanced(true) GC.or setAdvanced(false).
2005-12-19 22:42:49
1,135,050,000
resolved fixed
9bb3168
1,137,620,000
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,558
91,364
Bug 91364 SWT_AWT.new_Shell() in GTK version blocks forever on RedHat 9
We are using SWT in our Application and also providing the facility to plugin the application in various IDEs. I have been successfully embedding our UI in NetBeans on Windows and Linux (with motif version of SWT). Embedding did not work with other Swing IDEs (I have reported that problem previously). Recently we switched from motif to GTK on Linux. After this our plugin has stopped working in NetBeans. To debug the problem I used a sample application (taken from one of the bug reports) that embedds a SWT widget in JFrame. This application works fine on Windows with JDK 1.4 & 1.5. On Linux it works fine with motif and JDK 1.5 (with 1.4 application crashes). When I try the same application with GTK, the main UI (JFrame) comes up but SWT widget is not displayed. On adding debug statements I found that the application blocks on SWT_AWT.new_Shell() method call. It never returns and I have to kill the process. I am using SWT jars from the Eclipse 3.0.1. I have tried changing the Theam from Bluecurve to Mist as suggested in one of the bug report. But that also did not work. -Sudhan
2005-04-14 01:42:38
1,113,460,000
resolved fixed
fa01e29
1,137,620,000
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
SWT
2,559
38,528
Bug 38528 Two full screen redraws creating a GC on Display
I20030604 MacOS 10.2.6 - open some Java source in Java text editor - start Quartz Debug and turn on "Flash screen updates" - switch back to Eclipse and wait until all yellow flashing has stopped - move the mouse pointer over a Java type that has some Java doc - wait for the hover window to appear Observe: two full screen redraws before hover window opens
2003-06-05 11:54:59
1,054,830,000
resolved fixed
80ff7e4
1,137,610,000
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java
SWT
2,560
123,675
Bug 123675 fillGradientRectangle() in gc doesn't use gDip clipping when foreground and background are the same.
fillGradientRectangle()tests for foreground and background color being the same and uses OS.PatBlt() when they are. However, if a clipping region has been set with anti aliasing turned on OS.PatBlt() won't clip. Either fillRectangle() should be called in place of OS.PatBlt() or the foreground == background optimization should be removed. Here's an example paint listener: addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { GC gc = e.gc; gc.setAntialias(SWT.ON); Rectangle rect = getClientArea(); Region region = new Region(); region.add(rect); // Clip a 5 x 5 rect in the top left corner. (Assuming client area is bigger than 5 x 5 region.subtract(rect.x, rect.y, 5, 5); gc.setClipping(region); gc.setForeground(getDisplay().getSystemColor(SWT.COLOR_RED)); gc.setBackground(getDisplay().getSystemColor(SWT.COLOR_RED)); gc.fillGradientRectangle(rect.x, rect.y, rect.width, rect.height, true); gc.setClipping((Region)null); region.dispose(); } });
2006-01-12 16:43:01
1,137,100,000
resolved fixed
910c8ad
1,137,610,000
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
SWT