Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [Grid] An editing issue in macosx
[Grid] An editing issue in macosx [message #62973] Mon, 06 April 2009 20:55 Go to next message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
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 #62975 is a reply to message #62973] Tue, 07 April 2009 09:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 #62977 is a reply to message #62975] Tue, 07 April 2009 17:52 Go to previous messageGo to next message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
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 #62979 is a reply to message #62975] Thu, 09 April 2009 16:16 Go to previous messageGo to next message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
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 #62981 is a reply to message #62979] Thu, 09 April 2009 16:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 #62983 is a reply to message #62981] Fri, 10 April 2009 09:41 Go to previous messageGo to next message
Werner Keil is currently offline Werner KeilFriend
Messages: 1087
Registered: July 2009
Senior Member
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 #62994 is a reply to message #62981] Tue, 14 April 2009 14:50 Go to previous messageGo to next message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
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 15:14 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 15:55 Go to previous message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
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 #594240 is a reply to message #62973] Tue, 07 April 2009 09:06 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 #594247 is a reply to message #62975] Tue, 07 April 2009 17:52 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
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 16:16 Go to previous message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
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 16:34 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 09:41 Go to previous message
Werner Keil is currently offline Werner KeilFriend
Messages: 1087
Registered: July 2009
Senior Member
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 14:50 Go to previous message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
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 15:14 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 15:55 Go to previous message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
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
Previous Topic:[Grid] setTopIndex without V_SCROLL
Next Topic:[Grid] setTopIndex without V_SCROLL
Goto Forum:
  


Current Time: Thu Mar 28 20:09:12 GMT 2024

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

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

Back to the top