import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.handlers.HandlerUtil;
import org.eclipse.ui.progress.IProgressConstants;
final CdmMetaDataAwareDataSourceContainer container = getSelectedDataSourceContainer(event);
final Display display = Display.getCurrent();
- if(! MessageDialog.openConfirm(HandlerUtil.getActiveShell(event), "Update Datasource", "Are you sure you want to update the datasource?")){
+ if(! MessageDialog.open(MessageDialog.CONFIRM, HandlerUtil.getActiveShell(event), "Update Datasource", "WARNING!\n\n" +
+ "This will change your data base structure! Be sure you have an up-to-date backup of your data before running the update! \n\n " +
+ "Are you sure you want to update the datasource?", SWT.NONE)){
return false;
}
Job job = new Job("Updating datasource " + container.getDataSource().getName()){