Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » DateTime-BUG or Dialog-BUG?(DateTime-Widget in resizable dialog: opened DropDownCalendar unclosable)
DateTime-BUG or Dialog-BUG? [message #541926] Wed, 23 June 2010 08:56 Go to next message
Bassspieler  is currently offline Bassspieler Friend
Messages: 40
Registered: April 2010
Location: Germany
Member
Hi!

Conditions:
DateTime(SWT.DATE | SWT.DROP_DOWN | SWT.BORDER)-Widget in a resizable dialog. Try to select a date in the future (>2 months) via the drop-down-calendar.

Effect:
Sometimes (1of10) the opened calendar is unclosable. Usually it closes automatically, when you click a specific date.
It occurs more often, if you put two widgets inside the dialog.

Can someone reproduce it, too?
Used RAP: 1.3 RC2

Best regards,
Bassspieler

import org.eclipse.jface.dialogs.TrayDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Shell;

public class DateTimeDialog extends TrayDialog {

	public DateTimeDialog(Shell shell) {
		super(shell);
	}

	@Override
	protected Control createDialogArea(Composite parent) {

		DateTime dtDate = new DateTime(parent, SWT.DATE | SWT.DROP_DOWN | SWT.BORDER);
		dtDate.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
		dtDate.setDate(2010, 1, 2);

		DateTime dtDate1 = new DateTime(parent, SWT.DATE | SWT.DROP_DOWN | SWT.BORDER);
		dtDate1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
		dtDate1.setDate(2010, 1, 3);

		return parent;
	}

	@Override
	protected boolean isResizable() {
		return true;
	}

}
Re: DateTime-BUG or Dialog-BUG? [message #542207 is a reply to message #541926] Thu, 24 June 2010 08:56 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Lieber Bassspieler,

I can reproduce this problem. I'd suggest that you open a bug and
include your sample snippet, then we can sort it out.

Best, Ralf

Bassspieler wrote:
> Hi!
>
> Conditions:
> DateTime(SWT.DATE | SWT.DROP_DOWN | SWT.BORDER)-Widget in a resizable
> dialog. Try to select a date in the future (>2 months) via the
> drop-down-calendar.
>
> Effect:
> Sometimes (1of10) the opened calendar is unclosable. Usually it closes
> automatically, when you click a specific date.
> It occurs more often, if you put two widgets inside the dialog.
>
> Can someone reproduce it, too?
> Used RAP: 1.3 RC2
>
> Best regards,
> Bassspieler
>
> import org.eclipse.jface.dialogs.TrayDialog;
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.layout.GridData;
> import org.eclipse.swt.widgets.Composite;
> import org.eclipse.swt.widgets.Control;
> import org.eclipse.swt.widgets.DateTime;
> import org.eclipse.swt.widgets.Shell;
>
> public class DateTimeDialog extends TrayDialog {
>
> public DateTimeDialog(Shell shell) {
> super(shell);
> }
>
> @Override
> protected Control createDialogArea(Composite parent) {
>
> DateTime dtDate = new DateTime(parent, SWT.DATE | SWT.DROP_DOWN
> | SWT.BORDER);
> dtDate.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
> false));
> dtDate.setDate(2010, 1, 2);
>
> DateTime dtDate1 = new DateTime(parent, SWT.DATE | SWT.DROP_DOWN
> | SWT.BORDER);
> dtDate1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
> false));
> dtDate1.setDate(2010, 1, 3);
>
> return parent;
> }
>
> @Override
> protected boolean isResizable() {
> return true;
> }
>
> }
Re: DateTime-BUG or Dialog-BUG? [message #542244 is a reply to message #541926] Thu, 24 June 2010 10:41 Go to previous message
Bassspieler  is currently offline Bassspieler Friend
Messages: 40
Registered: April 2010
Location: Germany
Member
Ok, thx. I filed that bug.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=317800
Previous Topic:Complete RAP Javadoc
Next Topic:Website http://www.eclipse.org/rap/bugs/
Goto Forum:
  


Current Time: Mon Dec 06 03:31:11 GMT 2021

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

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

Back to the top