how to create a progress bar that moves back and forth in jface

26 Views Asked by At

Eclipse Platform Version: 4.25 The code I am currently using is as follows

 ModalContext.run(new IRunnableWithProgress() {
                            @Override
                            public void run(IProgressMonitor monitor) {
                                pMonitor = monitor;
                            }

                        }, false, statusLine.getProgressMonitor(), Display.getCurrent());

enter image description here But I found that calling this method multiple times will cause the progress bar to get stuck.

I want to know how to create such a progress bar correctly

0

There are 0 best solutions below