|
View:
New views
14 Messages
—
Rating Filter:
Alert me
|
|
|
SWT tabe selection problemHi,
for some reason selection in my swt table doesn't work properly unter windows (under linux everything's fine): I have a SelectionAdapter for my SWT Table which looks like this: private class TArticlesClicked extends SelectionAdapter { public void widgetSelected(SelectionEvent event) { Article article = this.articleTableViewer.getSelected().iterator().next(); if (article != null) { // do something with article } } } Under Win32 "article" is null when I click in the table. When I click a second time on the same entry the article is selected internally. when I don't click a second time on the _same_ article but on another, the first article is selected internally. any ideas? fabian |
|
|
Re: SWT tabe selection problemanother swt incident: when I use table.setHeaderVisible(false) after new EventTableViewer... the data doesn't get displayed. it appears as if the tableformat isn't read cause I have rows of data with no content...
|
|
|
|
|
|
Re: SWT tabe selection problemHi,
I did it in another way. IssueBrowser listens for changes in the selection-eventlist. I listened for changes on the swt table. It appears that the changes in the selection-eventlist appear after all listeners for the swt tables are run. Everything runs fine now that I do it the same way like IssueBrowser. thanks! fabian
|
|
|
Re: SWT tabe selection problemI accidentially mixed up to things: the setHeaderVisible option has no fault, but when I build an swt table with both SWT.CHECK and SWT.VIRTUAL, the data doesn't get displayed. there are five checkboxes for five objects in my sourcelist, but the format isn't read. when I remove SWT.VIRTUAL it works.
Any idea? fabian
|
|
|
|
|
|
|
|
|
Re: SWT tabe selection problemI tested the issue under Windows, and there it works, so I just got the problem under linux.
I do nothing but creating a Table with SWT.CHECK vs SWT.CHECK|SWT.VIRTUAL and then a EventTableViewer on it. I added screenshots for demonstration. fabian ![]() ![]()
|
|
|
|
|
|
Re: SWT tabe selection problemshould I add it to the issues-list / bugtracker?
|
|
|
Re: SWT tabe selection problemYes, we don't want to lose track of this until we can prove it does or does not exist.
On 10/4/07, fab|an <fabian@...> wrote:
|
|
|
Re: SWT tabe selection problemI just digged through the code and figured out what's happening:
When using SWT.CHECK in an SWT.VIRTUAL table, the SetData listener isn't called anymore, so the items aren't populated with data (the checkboxes get rendered because they are generated at the moment you call setItemCount on the table). Somehow TableCheckFilterList is causing this behaviour, cause when I comment out: table.getItem(i).setChecked(checked); in TableCheckFilterList.TableChecker everything works. I guess the setChecked is somehow "touching" and generating the TableItems without SetData to be called. I cannot really say how to fix this, any idea? fabian
|
|
|
Re: SWT tabe selection problemIs this a Linux-only problem or can you reproduce it on Windows, too?
As we use no plattform-specific code, it looks like SWT on Linux is buggy. Can you reproduce this behaviour with a pure SWT virtual table example without using Glazed Lists? Holger > > > I just digged through the code and figured out what's happening: > > When using SWT.CHECK in an SWT.VIRTUAL table, the SetData listener isn't > called anymore, so the items aren't populated with data (the checkboxes get > rendered because they are generated at the moment you call setItemCount on > the table). > > Somehow TableCheckFilterList is causing this behaviour, cause when I comment > out: > > table.getItem(i).setChecked(checked); > > in TableCheckFilterList.TableChecker everything works. I guess the > setChecked is somehow "touching" and generating the TableItems without > SetData to be called. I cannot really say how to fix this, any idea? > > fabian > > > James Lemieux wrote: > > > > Yes, we don't want to lose track of this until we can prove it does or > > does > > not exist. > > > > On 10/4/07, fab|an <fabian@...> wrote: > >> > >> > >> should I add it to the issues-list / bugtracker? > >> > >> > >> Holger Brands wrote: > >> > > >> > Unfortunately, I've no access to a linux box, > >> > so any other volunteer to tackle this? > >> > > >> > Holger > >> > > >> >> > >> >> > >> >> I tested the issue under Windows, and there it works, so I just got > >> the > >> >> problem under linux. > >> >> I do nothing but creating a Table with SWT.CHECK vs > >> SWT.CHECK|SWT.VIRTUAL > >> >> and then a EventTableViewer on it. > >> >> > >> >> I added screenshots for demonstration. > >> >> > >> >> fabian > >> >> > >> >> http://www.nabble.com/file/p12856797/noSWTVIRTUAL.png > >> >> http://www.nabble.com/file/p12856797/SWTVIRTUAL.png > >> >> > >> >> > >> >> Holger Brands wrote: > >> >> > > >> >> > I just modified SWT IssueBrowser and added SWT.CHECK flag to table > >> >> > creation > >> >> > and it worked for me using the latest GL build. > >> >> > Please post an example that demonstrates the problem. > >> >> > > >> >> > Thanks, > >> >> > Holger > >> >> > > >> >> >> > >> >> >> > >> >> >> I accidentially mixed up to things: the setHeaderVisible option has > >> no > >> >> >> fault, > >> >> >> but when I build an swt table with both SWT.CHECK and SWT.VIRTUAL, > >> the > >> >> >> data > >> >> >> doesn't get displayed. there are five checkboxes for five objects > >> in > >> >> my > >> >> >> sourcelist, but the format isn't read. when I remove SWT.VIRTUAL it > >> >> >> works. > >> >> >> > >> >> >> Any idea? > >> >> >> fabian > >> >> >> > >> >> >> > >> >> >> fab|an wrote: > >> >> >> > > >> >> >> > another swt incident: when I use table.setHeaderVisible(false) > >> after > >> >> >> new > >> >> >> > EventTableViewer... the data doesn't get displayed. it appears as > >> if > >> >> >> the > >> >> >> > tableformat isn't read cause I have rows of data with no > >> content... > >> >> >> > > >> >> >> > > >> >> >> > fab|an wrote: > >> >> >> >> > >> >> >> >> Hi, > >> >> >> >> > >> >> >> >> for some reason selection in my swt table doesn't work properly > >> >> unter > >> >> >> >> windows (under linux everything's fine): > >> >> >> >> I have a SelectionAdapter for my SWT Table which looks like > >> this: > >> >> >> >> > >> >> >> >> private class TArticlesClicked extends SelectionAdapter > >> >> >> >> { > >> >> >> >> public void widgetSelected(SelectionEvent event) > >> >> >> >> { > >> >> >> >> Article article = > >> >> >> >> this.articleTableViewer.getSelected().iterator().next(); > >> >> >> >> if (article != null) > >> >> >> >> { > >> >> >> >> // do something with article > >> >> >> >> } > >> >> >> >> } > >> >> >> >> } > >> >> >> >> > >> >> >> >> Under Win32 "article" is null when I click in the table. When I > >> >> click > >> >> >> a > >> >> >> >> second time on the same entry the article is selected > >> internally. > >> >> when > >> >> >> I > >> >> >> >> don't click a second time on the _same_ article but on another, > >> the > >> >> >> first > >> >> >> >> article is selected internally. > >> >> >> >> > >> >> >> >> any ideas? > >> >> >> >> fabian > >> >> >> >> > >> >> >> > > >> >> >> > > >> >> >> > >> >> >> -- > >> >> >> View this message in context: > >> >> >> > >> >> > >> http://www.nabble.com/SWT-tabe-selection-problem-tf4474925.html#a12777130 > >> >> >> Sent from the GlazedLists - Dev mailing list archive at Nabble.com. > >> >> >> > >> >> >> > >> --------------------------------------------------------------------- > >> >> >> To unsubscribe, e-mail: dev-unsubscribe@... > >> >> >> For additional commands, e-mail: dev-help@... > >> >> >> > >> >> >> > >> >> > > >> >> > > >> >> > > >> >> > >> __________________________________________________________________________ > >> >> > Erweitern Sie FreeMail zu einem noch leistungsstärkeren > >> >> E-Mail-Postfach! > >> >> > Mehr Infos unter http://produkte.web.de/club/?mc=021131 > >> >> > > >> >> > > >> --------------------------------------------------------------------- > >> >> > To unsubscribe, e-mail: dev-unsubscribe@... > >> >> > For additional commands, e-mail: dev-help@... > >> >> > > >> >> > > >> >> > > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> http://www.nabble.com/SWT-tabe-selection-problem-tf4474925.html#a12856797 > >> >> Sent from the GlazedLists - Dev mailing list archive at Nabble.com. > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: dev-unsubscribe@... > >> >> For additional commands, e-mail: dev-help@... > >> >> > >> >> > >> > > >> > > >> > _______________________________________________________________________ > >> > Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate > >> > kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220 > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: dev-unsubscribe@... > >> > For additional commands, e-mail: dev-help@... > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/SWT-tabe-selection-problem-tf4474925.html#a13042100 > >> Sent from the GlazedLists - Dev mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: dev-unsubscribe@... > >> For additional commands, e-mail: dev-help@... > >> > >> > > > > > > -- > View this message in context: http://www.nabble.com/SWT-tabe-selection-problem-tf4474925.html#a13413984 > Sent from the GlazedLists - Dev mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@... > For additional commands, e-mail: dev-help@... > > _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: SWT tabe selection problemIt's an swt bug, but it affects both platforms: When the initial check-state of an item is true, the TableItem isn't rendered on Windows or Linux. When it is false, just Linux doesn't render it.
I filed an swt-bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=207662 fabian
|
| Free embeddable forum powered by Nabble | Forum Help |