1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug # 201973 : Project conversion failed box when opening cdt3 project with cdt4

This commit is contained in:
Oleg Krasilnikov 2007-09-06 15:06:25 +00:00
parent 39180b7960
commit e069b7e8b4

View file

@ -260,9 +260,13 @@ public class ProjectConverter implements ICProjectConverter {
final boolean [] answer = new boolean[1];
shell.getDisplay().syncExec(new Runnable() {
public void run() {
if(multiple || PROPS.getProperty(rc, id) == null){
Object ob = PROPS.getProperty(rc, id);
if(multiple || ob == null){
PROPS.setProperty(rc, id, Boolean.TRUE);
answer[0] = MessageDialog.openQuestion(shell,title,message);
PROPS.setProperty(rc, id, answer[0] ? Boolean.TRUE : Boolean.FALSE);
} else {
answer[0] = ((Boolean)ob).booleanValue();
}
}
});