transfer(dest, JDBC_FILE_NAME, dialog);
transfer(dest, CONFIG_FILE_NAME, dialog);
if(needUserCopy) {
while(!requiredPluginDir.exists()) {
Dialog dialog2 = new Dialog(shell) {
protected Control createDialogArea(Composite parent) {
Control comp;
try {
Browser browser = new Browser(parent, SWT.NONE);
String mainMessage = String.format(Messages.GetHTMLCopyPluginMsg,finalNewPlugin.getParentFile().getAbsolutePath(), finalNewPlugin.getAbsolutePath(), pluginsDir.getAbsolutePath());
browser.setText(mainMessage);
browser.addLocationListener(new LocationListener() {
@Override
public void changing(LocationEvent event) {
event.doit = false;
org.eclipse.swt.program.Program.launch(event.location);
}
@Override
public void changed(LocationEvent event) {
}
});
comp = browser;
} catch (SWTError e) {
Text text = new Text(parent, SWT.MULTI
| SWT.READ_ONLY | SWT.WRAP | SWT.BORDER
| SWT.SHADOW_IN);
String mainMessage = String.format(Messages.GetDriverMsg,finalNewPlugin.getAbsolutePath(), pluginsDir.getAbsolutePath());
text.setText(mainMessage);
comp = text;
}
GridDataFactory.fillDefaults().hint(500, 200).applyTo(comp);
return comp;
};
@Override
protected Button createButton(Composite parent,
int id, String label, boolean defaultButton) {
Button button = super.createButton(parent, id,label, defaultButton);
if (id == Window.OK) button.setText("Restart");
return button;
}
};
if(dialog2.open() == Window.CANCEL) return;
}
}
String cmd = buildCommandLine(shell);
if (cmd != null) {