Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » FilteredItemsSelectionDialog or UIJob
FilteredItemsSelectionDialog or UIJob [message #140176] Tue, 14 July 2009 11:23 Go to next message
Hasan Ceylan is currently offline Hasan CeylanFriend
Messages: 198
Registered: July 2009
Senior Member
Hello,

I am trying to tackle this problem as I am reliant on this dialog and
suffering from the same problem.

I think the reason it *sometimes* works is related to the UIJob
implementation.

Please can someone take a look into this bug report for my first comment and
and comment on my observation?

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=266832

Best Regards,
Hasan Ceylan
might be solved: FilteredItemsSelectionDialog or UIJob [message #140438 is a reply to message #140176] Wed, 15 July 2009 08:28 Go to previous message
Hasan Ceylan is currently offline Hasan CeylanFriend
Messages: 198
Registered: July 2009
Senior Member
Hasan Ceylan wrote:

> Hello,
>
> I am trying to tackle this problem as I am reliant on this dialog and
> suffering from the same problem.
>
> I think the reason it *sometimes* works is related to the UIJob
> implementation.
>
> Please can someone take a look into this bug report for my first comment
> and and comment on my observation?
>
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=266832
>
> Best Regards,
> Hasan Ceylan

This seems to workaround the problem. It puts about %10 CPU usage but at
least this is only while the dialog is open. Might be a worth using till the
bug fixed. What do the RAP gurus think?

Hasan

/*
* (non-Javadoc)
*
* @see org.eclipse.jface.window.Window#open()
*/
@SuppressWarnings("restriction")
@Override
public int open() {
this.policeJob = new UIJob("FS Police") { //$NON-NLS-1$

@Override
public IStatus runInUIThread(IProgressMonitor monitor) {
UICallBack.deactivate(this.toString());
if ( !monitor.isCanceled() ) {
SearchingFilteredSelectionDialog.this.refresh();
UICallBack.activate(this.toString());
this.schedule(500);
}

return Status.OK_STATUS;
}
};

this.policeJob.schedule();

UICallBack.activate(this.policeJob.toString());

return super.open();
}

/*
* (non-Javadoc)
*
* @see
* org.eclipse.ui.dialogs.FilteredItemsSelectionDialog#validate Item(java
* .lang.Object)
*/
@Override
protected IStatus validateItem(Object item) {
return Status.OK_STATUS;
}
Previous Topic:Table with multiline columns
Next Topic:Bug Votes
Goto Forum:
  


Current Time: Tue Dec 07 12:48:07 GMT 2021

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

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

Back to the top