org.netbeans.api.java.source.ui
Class ScanDialog
java.lang.Object
org.netbeans.api.java.source.ui.ScanDialog
public class ScanDialog
- extends Object
Support for notifying user about the background scan.
- Since:
- 1.2
Method Summary |
static boolean |
runWhenScanFinished(Runnable runnable,
String actionName)
This is a helper method to provide support for delaying invocations of actions
depending on java model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
runWhenScanFinished
public static boolean runWhenScanFinished(Runnable runnable,
String actionName)
- This is a helper method to provide support for delaying invocations of actions
depending on java model.
Behavior of this method is following:
If classpath scanning is not in progress, runnable's run() is called.
If classpath scanning is in progress, modal cancellable notification dialog with specified
tile is opened.
As soon as classpath scanning finishes, this dialog is closed and runnable's run() is called.
This method must be called in AWT EventQueue. Runnable is performed in AWT thread.
- Parameters:
runnable
- Runnable instance which will be called.actionName
- Title of wait dialog.
- Returns:
- true action was cancelled
false action was performed - See Also:
which provides delayed invocation
of action without UI notification.