Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] how to start threads with monitor?

I know this is more a rcp question than  a udig, but I'm not able to add
progress tracking to my actions.
The tool extention point doesn't supply a monitor and whenever I try
somethin g like:
        IWorkbench wb = PlatformUI.getWorkbench();
        IProgressService ps = wb.getProgressService();

            ps.busyCursorWhile(new IRunnableWithProgress(){
                public void run( IProgressMonitor pm ) {

                    doMyCodeWithMonitorActivity()
                }
            });
I get an Invalid thread access exception.

Any hint?
Thanks in advance,
Andrea


Back to the top