Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Grid cell selection
Grid cell selection [message #755414] Tue, 08 November 2011 12:07 Go to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Hello,

i'm searching for a way to select and edit a single cell more effectively in a large grid. At the moment i use the standard snippet.

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet3.java

Is there an API availabe to restrict the search area to the visible grid in the canvas to speed up the search for the selected cell?

Any help is appreciated!
Re: Grid cell selection [message #755428 is a reply to message #755414] Tue, 08 November 2011 13:23 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I'm not sure what you are aiming at. Are you trying to say that
selection in Nebula Grid is to slow - please note Nebula-Grid natively
supports cells.

Tom

Am 08.11.11 13:07, schrieb Marcel:
> Hello,
>
> i'm searching for a way to select and edit a single cell more
> effectively in a large grid. At the moment i use the standard snippet.
>
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet3.java
>
>
> Is there an API availabe to restrict the search area to the visible grid
> in the canvas to speed up the search for the selected cell?
>
> Any help is appreciated!
Re: Grid cell selection [message #755433 is a reply to message #755428] Tue, 08 November 2011 13:49 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Hello Tom,

sorry, but i sent the wrong link. At the moment i use a varied method based on this snippet (not the afore mentioned!):

http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/editacellinaSWTtableinplacefancy.htm

If i have a large grid, e.g. 1000*1000 than it takes some time before i can edit the cell. So my question is this the best way to find and edit a cell in the grid component.

I addition the full selection (of all cells) also works very slow.

Maybee my Nebula grid version is to old (Nov. 2009)?
Re: Grid cell selection [message #755435 is a reply to message #755433] Tue, 08 November 2011 13:55 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well 1000 columns is a whole lot you can certainly turn of full
selection putting Grid into a cell selection mode.

I guess there nothing else beside reducing the amount of columns who are
the performance killer because 1000 rows is no problem at all.

Tom

Am 08.11.11 14:49, schrieb Marcel:
> Hello Tom,
>
> sorry, but i sent the wrong link. At the moment i use a varied method
> based on this snippet (not the afore mentioned!):
> http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/editacellinaSWTtableinplacefancy.htm
>
>
> If i have a large grid, e.g. 1000*1000 than it takes some time before i
> can edit the cell. So my question is this the best way to find and edit
> a cell in the grid component.
>
> I addition the full selection (of all cells) also works very slow.
>
> Maybee my Nebula grid version is to old (Nov. 2009)?
Re: Grid cell selection [message #755440 is a reply to message #755435] Tue, 08 November 2011 14:21 Go to previous message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Hello Tom,

thanks for the answer.

Regards,

Marcel
Previous Topic:[Grid] Smooth scrolling
Next Topic:acessing swt tree object from GridTreeViewer
Goto Forum:
  


Current Time: Thu Mar 28 13:56:15 GMT 2024

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

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

Back to the top