Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » The tableViewer select the wrong row when invoke tableViewer.remove(obj)(rap tableViewer select remove)
The tableViewer select the wrong row when invoke tableViewer.remove(obj) [message #555298] Thu, 26 August 2010 09:16 Go to next message
lyp  is currently offline lyp Friend
Messages: 17
Registered: July 2010
Junior Member
Hi all experts,

The tableViewer select the wrong row when invoke tableViewer.remove(obj);

I Write a example rap appication that create a table contains tree records.
such as:
ID=1 NAME=name1
ID=2 NAME=name2
ID=3 NAME=name3

Then I can reproduce the problem by the following steps.
1、select the second record (ID=2 NAME=name2)
2、delete the first record (ID=1 NAME=name1)

Then the table will select the wrong record (The third recode: ID=3 NAME=name3)

But the right selection must be the record I selected last time.(That is ID=2 NAME=name2)

The problem exists in the RAP version of 1.2 and 1.3 release.

Best Regards.
Re: The tableViewer select the wrong row when invoke tableViewer.remove(obj) [message #555330 is a reply to message #555298] Thu, 26 August 2010 10:37 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi lyp,

sounds like a bug. If your code works in RCP, but not in RAP please feel
free to open a bugzilla with a snippet to reproduce the problem.

Best,
Ivan

On 08/26/2010 12:16 PM, lyp wrote:
> Hi all experts,
>
> The tableViewer select the wrong row when invoke tableViewer.remove(obj);
>
> I Write a example rap appication that create a table contains tree
> records.
> such as:
> ID=1 NAME=name1
> ID=2 NAME=name2
> ID=3 NAME=name3
>
> Then I can reproduce the problem by the following steps.
> 1、select the second record (ID=2 NAME=name2)
> 2、delete the first record (ID=1 NAME=name1)
>
> Then the table will select the wrong record (The third recode: ID=3
> NAME=name3)
>
> But the right selection must be the record I selected last time.(That
> is ID=2 NAME=name2)
>
> The problem exists in the RAP version of 1.2 and 1.3 release.
>
> Best Regards.
Re: The tableViewer select the wrong row when invoke tableViewer.remove(obj) [message #555337 is a reply to message #555330] Thu, 26 August 2010 11:32 Go to previous messageGo to next message
lyp  is currently offline lyp Friend
Messages: 17
Registered: July 2010
Junior Member
Hi Ivan,
My code works fine in RCP, but works wrong in RAP 1.2.
And I found that in RAP1.3 it works fine.

For some reasons, I cannot update to RAP1.3 recently.
So how to fix the bug in RAP1.2, is there some patch to solve the problem in RAP1.2?

Thanks a lot.
Re: The tableViewer select the wrong row when invoke tableViewer.remove(obj) [message #555341 is a reply to message #555337] Thu, 26 August 2010 11:43 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi lyp,

I will suggest to look in RAP bugzilla for a similar issues, fixed in
1.3. If you are lucky, there will be a patch for it. Something like this
bug:
280891: [Table] Row selection stay in empty table in some case
https://bugs.eclipse.org/bugs/show_bug.cgi?id=280891

Best,
Ivan

On 08/26/2010 2:32 PM, lyp wrote:
> Hi Ivan,
> My code works fine in RCP, but works wrong in RAP 1.2.
> And I found that in RAP1.3 it works fine.
>
> For some reasons, I cannot update to RAP1.3 recently.
> So how to fix the bug in RAP1.2, is there some patch to solve the
> problem in RAP1.2?
>
> Thanks a lot.
Previous Topic:Custom Table Paint
Next Topic:line break in button text and image under button text
Goto Forum:
  


Current Time: Mon Feb 26 22:30:04 GMT 2024

Powered by FUDForum. Page generated in 0.03843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top