Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Not able to paste Ms-Excel column into SWT's Text widget (Not able to paste Ms-Excel column into SWT's Text widget )
icon9.gif  Not able to paste Ms-Excel column into SWT's Text widget [message #762481] Thu, 08 December 2011 01:42 Go to next message
Kumar  is currently offline Kumar
Messages: 1
Registered: December 2011
Junior Member
I have SWT Text widget which is created with SWT.SINGLE style
e.g. Text myTextControl = new Text(shell, SWT.SINGLE);

Now, when I try to copy column from Ms-Excel only first of that selected column gets pasted into Text widget and not entire column.
I do understand that when I create Text widget with SWT.MULTI then I am able to paste entire Ms-Excel column into widget but it will not be in single row.

Previously, I was using Swings JTextField and in that case whenever I used to paste MS-Excel column ( using CTRL-V ) the entire Ms-Excel column gets pasted as a row in JTextField. I am looking for same kind of feature for SWT Text widget.
Re: Not able to paste Ms-Excel column into SWT's Text widget [message #764650 is a reply to message #762481] Mon, 12 December 2011 10:32 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
Anyone wondering about this can see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=365984 .

Grant


On 12/8/2011 1:42 AM, Kumar wrote:
> I have SWT Text widget which is created with SWT.SINGLE style e.g. Text
> myTextControl = new Text(shell, SWT.SINGLE);
>
> Now, when I try to copy column from Ms-Excel only first of that selected
> column gets pasted into Text widget and not entire column.
> I do understand that when I create Text widget with SWT.MULTI then I am
> able to paste entire Ms-Excel column into widget but it will not be in
> single row.
>
> Previously, I was using Swings JTextField and in that case whenever I
> used to paste MS-Excel column ( using CTRL-V ) the entire Ms-Excel
> column gets pasted as a row in JTextField. I am looking for same kind of
> feature for SWT Text widget.
Previous Topic:MessageDialog default button
Next Topic:Lazy loading problem
Goto Forum:
  


Current Time: Tue Jul 29 13:07:41 EDT 2014

Powered by FUDForum. Page generated in 0.01905 seconds