Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [CDateTime] Focus issue
[CDateTime] Focus issue [message #1652747] Fri, 06 March 2015 01:05 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
Hi all,
I've an E4 Part with three CDateTime widgets. These widgets are styled
by CSS. If I select one of them and then select another, the focus
marker isn't reset. This only occurs if I click on the drop down button
and select a date. If I only click into the text field all went ok. See
attached screenshot. How can I de-focus the widgets?

TIA/Regards,
Ralf.
Re: [CDateTime] Focus issue [message #1653437 is a reply to message #1652747] Fri, 06 March 2015 08:10 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

Hi Ralf,

Good catch. Please provide a minimal snippet in which the problem occurs and file a bug against nebula cdatetime [1]. Please post the bug number here.

It would be fantastic if you could provide a patch [2].

Cheers,

Wim

[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Nebula&component=CDateTime
[2] http://wiki.eclipse.org/Nebula/Contributions


Re: [CDateTime] Focus issue [message #1664730 is a reply to message #1653437] Wed, 11 March 2015 01:08 Go to previous messageGo to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Am 06.03.2015 um 09:10 schrieb Wim
Jongman:<br>
</div>
<blockquote cite="mid:mdbndo$v0k$1@xxxxxxxxe.org" type="cite">Hi
Ralf,
<br>
<br>
Good catch. Please provide a minimal snippet in which the problem
occurs and file a bug against nebula cdatetime [1]. Please post
the bug number here. <br>
It would be fantastic if you could provide a patch [2].
<br>
<br>
Cheers,
<br>
<br>
Wim
<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Nebula&amp;component=CDateTime">https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Nebula&amp;component=CDateTime</a><br>
[2] <a class="moz-txt-link-freetext" href="http://wiki.eclipse.org/Nebula/Contributions">http://wiki.eclipse.org/Nebula/Contributions</a>
<br>
<br>
  <br>
</blockquote>
<br>
Hi,<br>
while constructing a sample project I solved this partial problem.
It seems that I some nested Composites were not nested correctly.
But now I've another problem which is also related to this. I've put
three CDateTime widgets on a Part. If I select the dates on them
after a while the menu of the part disappears. Here's a picture of
it:<br>
<br>
<img src="https://www.eclipse.org/forums/index.php?t=getfile&amp;id=21122" alt=""><br>
<br>
Here's the source code of this part:<br>
<br>
<br>
import javax.annotation.PostConstruct;<br>
<br>
import org.eclipse.jface.layout.GridLayoutFactory;<br>
import org.eclipse.nebula.widgets.cdatetime.CDT;<br>
import org.eclipse.nebula.widgets.cdatetime.CDateTime;<br>
import org.eclipse.swt.SWT;<br>
import org.eclipse.swt.layout.GridLayout;<br>
import org.eclipse.swt.widgets.Composite;<br>
<br>
public class SamplePart {<br>
<br>
    private Composite top;<br>
    <br>
    @PostConstruct<br>
    public void createComposite(Composite parent) {<br>
        parent.setLayout(new GridLayout(1, true));<br>
        top = new Composite(parent, SWT.NONE ); <br>
        GridLayoutFactory.swtDefaults().numColumns(1).applyTo(top);<br>
<br>
        new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);<br>
        new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);<br>
        new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);<br>
    }<br>
}<br>
<br>
It is reproducible and I'll file a bug report. If possible I'll try
to provide a patch. For now, it seems that after selection of a date
the menu bar is moved to background. <br>
<br>
Regards,<br>
Ralf.<br>
</body>
</html>
  • Attachment: affhdece.png
    (Size: 4.21KB, Downloaded 244 times)
Re: [CDateTime] Focus issue [message #1692820 is a reply to message #1664730] Sun, 19 April 2015 23:03 Go to previous message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
Am 11.03.2015 um 02:08 schrieb Ralf Heydenreich:
> Am 06.03.2015 um 09:10 schrieb Wim Jongman:
>> Hi Ralf,
>>
>> Good catch. Please provide a minimal snippet in which the problem
>> occurs and file a bug against nebula cdatetime [1]. Please post the
>> bug number here.
>> It would be fantastic if you could provide a patch [2].
>>
>> Cheers,
>>
>> Wim
>>
>> [1]
>> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Nebula&component=CDateTime
>> [2] http://wiki.eclipse.org/Nebula/Contributions
>>
>>
>
> Hi,
> while constructing a sample project I solved this partial problem. It
> seems that I some nested Composites were not nested correctly. But now
> I've another problem which is also related to this. I've put three
> CDateTime widgets on a Part. If I select the dates on them after a while
> the menu of the part disappears. Here's a picture of it:
>
>
>
> Here's the source code of this part:
>
>
> import javax.annotation.PostConstruct;
>
> import org.eclipse.jface.layout.GridLayoutFactory;
> import org.eclipse.nebula.widgets.cdatetime.CDT;
> import org.eclipse.nebula.widgets.cdatetime.CDateTime;
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.layout.GridLayout;
> import org.eclipse.swt.widgets.Composite;
>
> public class SamplePart {
>
> private Composite top;
>
> @PostConstruct
> public void createComposite(Composite parent) {
> parent.setLayout(new GridLayout(1, true));
> top = new Composite(parent, SWT.NONE );
> GridLayoutFactory.swtDefaults().numColumns(1).applyTo(top);
>
> new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);
> new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);
> new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);
> }
> }
>
> It is reproducible and I'll file a bug report. If possible I'll try to
> provide a patch. For now, it seems that after selection of a date the
> menu bar is moved to background.
>
> Regards,
> Ralf.


Hi all,
the bug is already known as I see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=455260. Furthermore it
seems to depend also on
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198240. The last one
contains also a workaround for this problem. Perhaps someone from the
Nebula team could verify this workaround? Thanks in advance.

Ralf.
Previous Topic:XViewer Filter
Next Topic:Nebula Visalization Widgets API
Goto Forum:
  


Current Time: Fri Oct 04 15:20:50 GMT 2024

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

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

Back to the top