提交 8049ddde 编写于 作者: J jurgen

Driver manager dialog fix

上级 82db00d3
......@@ -212,7 +212,9 @@ public class DriverManagerDialog extends HelpEnabledDialog implements ISelection
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.verticalIndent = 5;
gd.horizontalSpan = 2;
gd.grabExcessHorizontalSpace = true;
monitorPart.setLayoutData(gd);
monitorPart.setVisible(false);
//monitorPart.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
return group;
......@@ -346,17 +348,22 @@ public class DriverManagerDialog extends HelpEnabledDialog implements ISelection
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException
{
// Code copied from WizardDialog
if (monitorPart != null) {
monitorPart.setVisible(true);
monitorPart.layout();
monitorPart.attachToCancelComponent(null);
}
// The operation can only be canceled if it is executed in a separate
// thread.
// Otherwise the UI is blocked anyway.
try {
ModalContext.run(runnable, false, monitorPart, getShell().getDisplay());
ModalContext.run(runnable, true, monitorPart, getShell().getDisplay());
} finally {
// explicitly invoke done() on our progress monitor so that its
// label does not spill over to the next invocation, see bug 271530
if (monitorPart != null) {
monitorPart.done();
monitorPart.setVisible(false);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册