Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kinzler2010-06-01 14:11:25 +0000
committerMatthias Sohn2010-06-02 14:17:59 +0000
commitaa6bdc0ec74561d6dfe4808b33a43f1c0b16cb97 (patch)
tree44a865e9605f7d3e1d5632ff119956321e1ff419
parent322122c5bfc6caeec9f473972f3e3f13e868cc8f (diff)
downloadegit-aa6bdc0ec74561d6dfe4808b33a43f1c0b16cb97.tar.gz
egit-aa6bdc0ec74561d6dfe4808b33a43f1c0b16cb97.tar.xz
egit-aa6bdc0ec74561d6dfe4808b33a43f1c0b16cb97.zip
Import wizard does not remember last wizard
The page asking for the wizard to use does not remember the "last used" wizard if it was the "New Project" wizard. After fixing this, another issue was found: when the "New Project" wizard is selected initially, the tree should be disabled. Change-Id: I366d177908d90a7f26c46805bc84b00b4cdad2dd Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitImportWithDirectoriesPage.java1
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectWizardPage.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitImportWithDirectoriesPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitImportWithDirectoriesPage.java
index 5db5551fd9..a0cdf562d3 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitImportWithDirectoriesPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitImportWithDirectoriesPage.java
@@ -92,6 +92,7 @@ public class GitImportWithDirectoriesPage extends GitSelectWizardPage {
}
});
+ tv.getTree().setEnabled(!newProjectWizard.getSelection());
checkPage();
setControl(main);
}
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectWizardPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectWizardPage.java
index 47aa5d75c0..ec4a1d30b4 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectWizardPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectWizardPage.java
@@ -150,7 +150,7 @@ public class GitSelectWizardPage extends WizardPage {
generalWizard.setSelection(true);
break;
case NEW_WIZARD:
- newProjectWizard.setEnabled(true);
+ newProjectWizard.setSelection(true);
break;
}

Back to the top