New version problems [message #66174] |
Thu, 13 December 2007 19:27 |
Eclipse User |
|
|
|
Originally posted by: joao.nuno.santos.silva.gmail.com
Hi,
Since we updated to the latest RAP version some problems arised:
None of this listeners work in Text
text.addFocusListener(new FocusAdapter() {
@Override
public void focusGained(final FocusEvent event) {
System.out.println("\n*** FOCUS GAINED!");
oldValue = text.getText();
currentTreeItem = tree.getSelection()[0];
}
});
text.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(final SelectionEvent e) {
System.out.println("\n*** SELECTED!");
oldValue = text.getText();
currentTreeItem = tree.getSelection()[0];
}
});
text.addListener(SWT.Selection, new Listener() {
public void handleEvent(final Event arg0) {
System.out.println("\nNormal listener with SWT.Selection!");
}
});
text.addListener(SWT.FocusIn, new Listener() {
public void handleEvent(final Event arg0) {
System.out.println("\\nFocus listener with SWT.Selection!");
}
});
Also on TreeItem the setForeground method stopped working.
Thanks!
Joao Nuno Silva
|
|
|
Re: New version problems [message #66409 is a reply to message #66174] |
Fri, 14 December 2007 11:19 |
Eclipse User |
|
|
|
Originally posted by: just4lists.nospammail.net
Please ignore this post.
This was related with a "patched/customized" version of the RAP.
Regards,
Joel Oliveira
"Joao Nuno Silva" <joao.nuno.santos.silva@gmail.com> escreveu na mensagem
news:fjs13s$ul1$1@build.eclipse.org...
> Hi,
>
> Since we updated to the latest RAP version some problems arised:
>
> None of this listeners work in Text
>
> text.addFocusListener(new FocusAdapter() {
> @Override
> public void focusGained(final FocusEvent event) {
> System.out.println("\n*** FOCUS GAINED!");
> oldValue = text.getText();
> currentTreeItem = tree.getSelection()[0];
> }
> });
> text.addSelectionListener(new SelectionAdapter() {
> @Override
> public void widgetSelected(final SelectionEvent e) {
> System.out.println("\n*** SELECTED!");
> oldValue = text.getText();
> currentTreeItem = tree.getSelection()[0];
> }
> });
> text.addListener(SWT.Selection, new Listener() {
> public void handleEvent(final Event arg0) {
> System.out.println("\nNormal listener with SWT.Selection!");
> }
> });
> text.addListener(SWT.FocusIn, new Listener() {
> public void handleEvent(final Event arg0) {
> System.out.println("\\nFocus listener with SWT.Selection!");
> }
> });
>
> Also on TreeItem the setForeground method stopped working.
>
> Thanks!
> Joao Nuno Silva
|
|
|
Powered by
FUDForum. Page generated in 0.02365 seconds