How to run Task without project?

I'm using ProgressManager.runProcessWithProgressSynchronously in an application-level configuration. As the settings dialog can be invoked without an open project I'm simply passing null instead of a project.
Now after runProcessWithProgressSynchronously being deprecated I would like to replace it with a modal Task. But the project parameter is annotated with @NotNull in the constructor of Task. So then how can I run a task with no open project?

3 comments
Comment actions Permalink

For now it's not possible with the Task class. We will make changes to
api very soon.

On 2007-02-09 04:58:57 +0300, Martin Fuhrer <mf@fuhrer.com> said:

I'm using ProgressManager.runProcessWithProgressSynchronously in an
application-level configuration. As the settings dialog can be invoked
without an open project I'm simply passing null instead of a project.
Now after runProcessWithProgressSynchronously being deprecated I would
like to replace it with a modal Task. But the project parameter is
annotated with @NotNull in the constructor of Task. So then how can I
run a task with no open project?



--
Kirill Kalishev
JetBrains, Inc.
http://jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

OK, I wait... ;)

0
Comment actions Permalink

On 2007-02-12 01:53:29 +0300, Martin Fuhrer <mf@fuhrer.com> said:

OK, I wait... ;)


The project argument in the Task class is now @Nullable.
--
Kirill Kalishev
JetBrains, Inc.
http://jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.