Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » New version problems
New version problems [message #66174] Thu, 13 December 2007 19:27 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:FormEditor addPage bug?
Next Topic:1. NullPointerException
Goto Forum:
  


Current Time: Fri Apr 26 20:17:49 GMT 2024

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

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

Back to the top