A long task is a process that takes a long time to manipulate a data object. In this example, we will create two tasks, one of unknown length (the progress bar on the bottom right is active but shows no percentage of progress) and another one of known length (the progress bar on the bottom right is active and shows increasing progress). Both processes take 10 seconds and will be made accessible to the end-user from a contextual menu of a seismic layer.
Reviewing Dependencies
The creation of a menu item requires five INT modules that are part of the INTViewer platform:
See the list of INTViewer modules to load the INTViewer platform and for a description of each module.
The DemoLongTaskWithUnknownLength.java file is available from the attachments at the bottom of this page.
The DemoLongTaskWithKnownLength.java file is available from the attachments at the bottom of this page.
You can download the DemoRunLongTaskWithUnknownLengthAction.java file from the attachments at the bottom of this page.
You can download the DemoRunLongTaskWithKnownLengthAction.java file from the attachments at the bottom of this page.
A walkthrough about the customization of layer.xml for contextual menus is available.
You can download the layer.xml file from the attachments at the bottom of this page.
A progress bar is displayed on the bottom right of the screen. This progress bar has a percentage displayed.
A progress bar is displayed on the bottom right of the screen. This progress bar doesn't have a percentage displayed.
More information about long tasks is available in the references section.