Questions tagged [progressmonitor]
45 questions
6
votes
1 answer
IProgressMonitor as a parameter in eclipse plugin programming
I see a lot of eclipse plugin APIs that have IProgressMonitor as one of its parameters.
void setRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor)
throws JavaModelException;
What is this IProgressMonitor for? Do you have any…

prosseek
- 182,215
- 215
- 566
- 871
5
votes
0 answers
ProgressMonitor redundant constructor ?
ProgressMonitor has two constructors:
public ProgressMonitor(Component parentComponent,
Object message,
String note,
int min,
int max) {
…

c0der
- 18,467
- 6
- 33
- 65
5
votes
2 answers
getting the cancel event of Java ProgressMonitor
I have a ProgressMonitor pm and a SwingWorker sw. I want to cancel the SwingWorker when I press the cancel-button on pm. I guess this shouldnt be too hard, and I read some tutorials about SwingWorker and ProgressMonitor, but I can't get this to…

AntiqueZamba
- 155
- 2
- 4
- 11
4
votes
2 answers
How to use ProgressMonitorInputStream
I know I must be missing something very obvious, but whenever I try to use the ProgressMonitorInputStream when copying a file, I never get the ProgressDialog popup.
The examples I see don't seem to do much other than wrap their input stream within…

nullByteMe
- 6,141
- 13
- 62
- 99
3
votes
1 answer
Eclipse Jobs API: how to track progress for job scheduled by another job?
What is the proper way to use progress monitors for an Eclipse Job that schedules and joins on another Eclipse job? I'd like the subtask to be associated with the main task.
Ideally, I'd like to be able to tell the subtask to run with a…

Todd Schiller
- 476
- 7
- 17
2
votes
1 answer
How to use ProgressMonitor window without losing focus on the main JFrame?
I don't know how to do that, because ProgressMonitor window is self-invoked (after 2 seconds, if necessary) and I don't have any control when and if it will open. Therefore I don't have a clue how to make it open in background, so the focus stays on…

Wojtek
- 2,514
- 5
- 26
- 31
2
votes
1 answer
Java ProgressMonitorInputStream using existing JProgressBar
I'm just playing about with Java's ProgressMonitorInputStream to monitor data as it flows through a BufferedInputStream. Here is the code I'm currently trying:
InputStream in = new BufferedInputStream(
new ProgressMonitorInputStream(
new…

Tony
- 3,587
- 8
- 44
- 77
2
votes
1 answer
java - Progress Bar while download with FileUtils
I'm trying to download a large file from URL with commons.io Apache library.
This is my code:
InputStream stream = new URL(CLIENT_URL).openStream();
ProgressMonitorInputStream pmis = new ProgressMonitorInputStream(null, "Downloading...",…

luca89pe
- 97
- 1
- 14
2
votes
2 answers
How can I change the title of a ProgressMonitor in Java?
ProgressMonitor progressMonitor = new ProgressMonitor(frame, "", "", 0, 100);
progressMonitor.setProgress(0);
...
progressMonitor.setProgress(100);
This works fine for me, but now I want to change the title of this progress monitor. Currently its…

Brundlefly
- 25
- 4
2
votes
1 answer
Progress Monitor:Progress interval
As shown in below code, I have 4 functions in it and I manually set each of the progress interval of the progress monitor = 25%.
But my approach will more be impractical to set the progress interval manually if I have like 20 or more functions. …

user2935569
- 347
- 2
- 7
- 15
2
votes
0 answers
Bring back the Progress Monitor dialog after click on "run in background"
I have a user Job like this:
Job job = new Job("bla1") {
@Override
protected IStatus run(IProgressMonitor monitor) {
monitor.beginTask("Dummy 2", 100);
for (int i = 0; i <…

cioclut ioan
- 21
- 2
1
vote
0 answers
How to show JProgressBar for InputStream while reading data from a SerialPort?
I'm trying to show a JProgressBar in a Swing application used for communicating with a device using a SerialPort connection.
Sometimes the data that the device sends is large so it can take some time(5-10 seconds) to receive the data. Because of…

Danilo Djurovic
- 59
- 7
1
vote
2 answers
Parallel Stream with Progressmonitor opens multiple dialogs
I have a strange behavior I cannot explain.
Please have a look at this minimal example:
public class ParallelStreamProgressMonitor
{
public static void main(String[] args)
{
List belege = IntStream.range(1,…

HarleyDavidson
- 559
- 6
- 17
1
vote
0 answers
JGit ProgressMonitor reports wrong number of tasks
I am using JGit libs to implement basic git operations.
Javadoc for ProgressMonitor:
http://archive.eclipse.org/jgit/docs/jgit-2.0.0.201206130900-r/apidocs/org/eclipse/jgit/lib/ProgressMonitor.html
Here, you can see the log when I use a…

psova
- 192
- 2
- 11
1
vote
0 answers
How to create SubMonitor children for cuncurrent / parallel / asynchronous execution?
I can use the methods split or newChild to create a child for a SubMonitor [1]:
SubMonitor firstChild = parentMonitor.split(50);
SubMonitor secondChild = parentMonitor.split(50);
The creation of the second child automatically finishes the first…

Stefan
- 10,010
- 7
- 61
- 117