Home » Eclipse Projects » Nebula » [Grid] An editing issue in macosx
| | | |
Re: [Grid] An editing issue in macosx [message #62981 is a reply to message #62979] |
Thu, 09 April 2009 12:34   |
Eclipse User |
|
|
|
Hi Frank,
I think I found your problem. Is it possible that you are creating the
TextCellEditor with a style of SWT.BORDER, without it you don't get the
focus rectangle and the whole space is used for editing purpose.
Tom
Frank Du schrieb:
> Hi Tom,
>
> Thank you for answering my question again. If it's a SWT issue, is there
> a way to workaround it? We really wish to have a macosx version.
>
> Thanks,
> Frank Du
>
>
>
> Tom Schindl wrote:
>
>> Hi,
>
>> This nothing Grid and JFace can control because this is native SWT
>> behaviour marking the text field as then one with the input focus.
>
>> Tom
>
>> Frank Du schrieb:
>>> Dear, All,
>>>
>>> I encountered an issue with editing Grid cell in macosx. There is a blue
>>> glow effect around the edit text box. Therefore, the text box is
>>> squeezed that it's too small for editing.
>>>
>>> For the screen shot, please click
>>> http://picasaweb.google.com/Qixing.Du/EclipseMisc#5321682683 770861810
>>>
>>> Thank you so much! Have a nice day!
>>>
>>> Frank
>>>
>
>
|
|
| |
Re: [Grid] An editing issue in macosx [message #62994 is a reply to message #62981] |
Tue, 14 April 2009 10:50   |
Eclipse User |
|
|
|
Hi Tom,
No, the RowCellEditor is a Text control. It is created with a style
SWT.NONE:
final Text text = new Text(grid, SWT.NONE);
As you ask, I assume that you have a workaround at least. Could you please
take a look at my code, or show me your code? Thank you so much!
The related grid editor code is as follow:
// set up the editor control
GridEditor editor = new GridEditor(grid);
editor.horizontalAlignment = SWT.LEFT;
editor.grabHorizontal = true;
grid.addListener(SWT.MouseUp, new EditingListener(......))
Have a nice day!
Best Regards,
Frank
Tom Schindl wrote:
> Hi Frank,
> I think I found your problem. Is it possible that you are creating the
> TextCellEditor with a style of SWT.BORDER, without it you don't get the
> focus rectangle and the whole space is used for editing purpose.
> Tom
|
|
|
Re: [Grid] An editing issue in macosx [message #62998 is a reply to message #62994] |
Tue, 14 April 2009 11:14   |
Eclipse User |
|
|
|
Hi,
I'm using the GridViewer and the TextCellEditor so you should take a
look how the GridEditor is setup there.
Tom
Frank Du schrieb:
> Hi Tom,
>
> No, the RowCellEditor is a Text control. It is created with a style
> SWT.NONE:
>
> final Text text = new Text(grid, SWT.NONE);
>
> As you ask, I assume that you have a workaround at least. Could you
> please take a look at my code, or show me your code? Thank you so much!
>
> The related grid editor code is as follow:
>
> // set up the editor control
> GridEditor editor = new GridEditor(grid);
> editor.horizontalAlignment = SWT.LEFT;
> editor.grabHorizontal = true;
> grid.addListener(SWT.MouseUp, new EditingListener(......))
>
>
>
> Have a nice day!
>
> Best Regards,
> Frank
>
>
>
> Tom Schindl wrote:
>
>> Hi Frank,
>
>> I think I found your problem. Is it possible that you are creating the
>> TextCellEditor with a style of SWT.BORDER, without it you don't get the
>> focus rectangle and the whole space is used for editing purpose.
>
>> Tom
>
>
|
|
|
Re: [Grid] An editing issue in macosx [message #63036 is a reply to message #62998] |
Fri, 24 April 2009 11:55  |
Eclipse User |
|
|
|
Finally I changed all code to use GridTableViewer and TextCellEditor now.
It fixed the issue. Thanks so much for the great help!
Best Regards,
Frank Du
Tom Schindl wrote:
> Hi,
> I'm using the GridViewer and the TextCellEditor so you should take a
> look how the GridEditor is setup there.
> Tom
|
|
| |
Re: [Grid] An editing issue in macosx [message #594247 is a reply to message #62975] |
Tue, 07 April 2009 13:52  |
Eclipse User |
|
|
|
Hi Tom,
Knowing this issue, can it be possible to use larger bounds for inputs
on OSX ?
--
Nicolas
Tom Schindl a écrit :
> Hi,
>
> This nothing Grid and JFace can control because this is native SWT
> behaviour marking the text field as then one with the input focus.
>
> Tom
>
> Frank Du schrieb:
>> Dear, All,
>>
>> I encountered an issue with editing Grid cell in macosx. There is a blue
>> glow effect around the edit text box. Therefore, the text box is
>> squeezed that it's too small for editing.
>>
>> For the screen shot, please click
>> http://picasaweb.google.com/Qixing.Du/EclipseMisc#5321682683 770861810
>>
>> Thank you so much! Have a nice day!
>>
>> Frank
>>
|
|
|
Re: [Grid] An editing issue in macosx [message #594256 is a reply to message #62975] |
Thu, 09 April 2009 12:16  |
Eclipse User |
|
|
|
Hi Tom,
Thank you for answering my question again. If it's a SWT issue, is there a
way to workaround it? We really wish to have a macosx version.
Thanks,
Frank Du
Tom Schindl wrote:
> Hi,
> This nothing Grid and JFace can control because this is native SWT
> behaviour marking the text field as then one with the input focus.
> Tom
> Frank Du schrieb:
>> Dear, All,
>>
>> I encountered an issue with editing Grid cell in macosx. There is a blue
>> glow effect around the edit text box. Therefore, the text box is
>> squeezed that it's too small for editing.
>>
>> For the screen shot, please click
>> http://picasaweb.google.com/Qixing.Du/EclipseMisc#5321682683 770861810
>>
>> Thank you so much! Have a nice day!
>>
>> Frank
>>
|
|
|
Re: [Grid] An editing issue in macosx [message #594266 is a reply to message #62979] |
Thu, 09 April 2009 12:34  |
Eclipse User |
|
|
|
Hi Frank,
I think I found your problem. Is it possible that you are creating the
TextCellEditor with a style of SWT.BORDER, without it you don't get the
focus rectangle and the whole space is used for editing purpose.
Tom
Frank Du schrieb:
> Hi Tom,
>
> Thank you for answering my question again. If it's a SWT issue, is there
> a way to workaround it? We really wish to have a macosx version.
>
> Thanks,
> Frank Du
>
>
>
> Tom Schindl wrote:
>
>> Hi,
>
>> This nothing Grid and JFace can control because this is native SWT
>> behaviour marking the text field as then one with the input focus.
>
>> Tom
>
>> Frank Du schrieb:
>>> Dear, All,
>>>
>>> I encountered an issue with editing Grid cell in macosx. There is a blue
>>> glow effect around the edit text box. Therefore, the text box is
>>> squeezed that it's too small for editing.
>>>
>>> For the screen shot, please click
>>> http://picasaweb.google.com/Qixing.Du/EclipseMisc#5321682683 770861810
>>>
>>> Thank you so much! Have a nice day!
>>>
>>> Frank
>>>
>
>
|
|
|
Re: [Grid] An editing issue in macosx [message #594275 is a reply to message #62981] |
Fri, 10 April 2009 05:41  |
Eclipse User |
|
|
|
IC, I don't have my Mac with me, but I'd be happy to test that when I can.
Seems, both Eclipse and Java in General are still suffering on the Mac here
and there ;-/
I found a similar problem in Mozilla (affecting everything from Firefox to
other tools like CeltX) where Mac OS X still had a Y2K (!) problem on Mac
only.
I don't know if they fixed that, but it is a bit of a shame, but then not so
surprising, considering the iPhone is still lacking MMS and could not delete
more than one email at a time for years.
The Mac has become a consumer device. And many of the smaller devices lack
their initial quality due to being more on the standard and quality level of
a mixer, hair dryer or electronic toothbrush than a reliable computer ;-(
|
|
|
Re: [Grid] An editing issue in macosx [message #594336 is a reply to message #62981] |
Tue, 14 April 2009 10:50  |
Eclipse User |
|
|
|
Hi Tom,
No, the RowCellEditor is a Text control. It is created with a style
SWT.NONE:
final Text text = new Text(grid, SWT.NONE);
As you ask, I assume that you have a workaround at least. Could you please
take a look at my code, or show me your code? Thank you so much!
The related grid editor code is as follow:
// set up the editor control
GridEditor editor = new GridEditor(grid);
editor.horizontalAlignment = SWT.LEFT;
editor.grabHorizontal = true;
grid.addListener(SWT.MouseUp, new EditingListener(......))
Have a nice day!
Best Regards,
Frank
Tom Schindl wrote:
> Hi Frank,
> I think I found your problem. Is it possible that you are creating the
> TextCellEditor with a style of SWT.BORDER, without it you don't get the
> focus rectangle and the whole space is used for editing purpose.
> Tom
|
|
|
Re: [Grid] An editing issue in macosx [message #594354 is a reply to message #62994] |
Tue, 14 April 2009 11:14  |
Eclipse User |
|
|
|
Hi,
I'm using the GridViewer and the TextCellEditor so you should take a
look how the GridEditor is setup there.
Tom
Frank Du schrieb:
> Hi Tom,
>
> No, the RowCellEditor is a Text control. It is created with a style
> SWT.NONE:
>
> final Text text = new Text(grid, SWT.NONE);
>
> As you ask, I assume that you have a workaround at least. Could you
> please take a look at my code, or show me your code? Thank you so much!
>
> The related grid editor code is as follow:
>
> // set up the editor control
> GridEditor editor = new GridEditor(grid);
> editor.horizontalAlignment = SWT.LEFT;
> editor.grabHorizontal = true;
> grid.addListener(SWT.MouseUp, new EditingListener(......))
>
>
>
> Have a nice day!
>
> Best Regards,
> Frank
>
>
>
> Tom Schindl wrote:
>
>> Hi Frank,
>
>> I think I found your problem. Is it possible that you are creating the
>> TextCellEditor with a style of SWT.BORDER, without it you don't get the
>> focus rectangle and the whole space is used for editing purpose.
>
>> Tom
>
>
|
|
|
Re: [Grid] An editing issue in macosx [message #594544 is a reply to message #62998] |
Fri, 24 April 2009 11:55  |
Eclipse User |
|
|
|
Finally I changed all code to use GridTableViewer and TextCellEditor now.
It fixed the issue. Thanks so much for the great help!
Best Regards,
Frank Du
Tom Schindl wrote:
> Hi,
> I'm using the GridViewer and the TextCellEditor so you should take a
> look how the GridEditor is setup there.
> Tom
|
|
|
Goto Forum:
Current Time: Fri May 09 17:50:03 EDT 2025
Powered by FUDForum. Page generated in 0.04257 seconds
|