Skip to main content

Run a method in a new thread of the plugin

Comments

1 comment

  • Richard Moir

    Normally this is achieved by implementing a DocumentOperation which will handle running the performOperation method in a background thread with an appropriate progress dialog to keep the user informed. If you are executing code elsewhere then you should be able to use standard Java thread calls like below. If this is not working for you, can you describe the behaviour you see in more detail?

    new Thread(() -> {
    //perform work
    }).start();
    0

Please sign in to leave a comment.