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?
Please sign in to leave a comment.
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:
--
Kirill Kalishev
JetBrains, Inc.
http://jetbrains.com
"Develop with pleasure!"
OK, I wait... ;)
On 2007-02-12 01:53:29 +0300, Martin Fuhrer <mf@fuhrer.com> said:
The project argument in the Task class is now @Nullable.
--
Kirill Kalishev
JetBrains, Inc.
http://jetbrains.com
"Develop with pleasure!"